CVE-2026-43982 Details
Description
Algernon is a small self-contained pure-Go web server. Prior to 1.17.6, uploadedFileSaveIn() in lua/upload/upload.go uses filepath.Join() with the caller-supplied directory but performs no boundary check after joining. A directory of ../../../tmp resolves cleanly to /tmp, outside the web root. This vulnerability is fixed in 1.17.6.
A path traversal vulnerability has been identified in Algernon versions prior to 1.17.6. The issue arises in the uploadedFileSaveIn() function within lua/upload/upload.go, where user-supplied directory inputs are joined using filepath.Join() without proper boundary checks. This flaw allows an attacker to manipulate the file path, potentially writing files outside the intended directory. For example, a directory input of '../../../tmp' would resolve to '/tmp', outside the web root. If Algernon is run as root and configured for file uploads without adequate safeguards in the user-provided Lua code, this vulnerability could be exploited to upload files to sensitive areas of the system.
Users are advised to upgrade to Algernon version 1.17.6 or later, where this vulnerability has been patched. For those using systemd to manage the Algernon service, it is recommended to implement a stricter service file that limits file upload capabilities. Additionally, reviewing and enhancing the safeguards in the Lua source code can help mitigate the risk of exploitation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 26, 2026CISA-ADP
Assessed May 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/xyproto/algernon/issues/172 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/xyproto/algernon/security/advisories/GHSA-2j2c-pv62-mmcp | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Algernon | < 1.17.6 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 26, 2026 | New CVE Received | [email protected] |
Volerion