Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-43982: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in xyproto algernon

0
High
VulnerabilityCVE-2026-43982cvecve-2026-43982cwe-22
Published: Tue May 26 2026 (05/26/2026, 16:30:09 UTC)
Source: CVE Database V5
Vendor/Project: xyproto
Product: algernon

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.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/26/2026, 17:33:03 UTC

Technical Analysis

The vulnerability in xyproto algernon (before version 1.17.6) involves improper limitation of a pathname to a restricted directory (CWE-22). Specifically, the uploadedFileSaveIn() function in lua/upload/upload.go joins a user-supplied directory path without validating that the resulting path remains within the intended web root. This allows directory traversal attacks where an attacker can write files outside the web root, potentially leading to unauthorized file writes in arbitrary locations such as /tmp. The vulnerability has a CVSS 4.0 score of 8.7, indicating high severity, and was fixed in version 1.17.6.

Potential Impact

Successful exploitation allows an unauthenticated attacker to write files outside the designated web root directory by supplying crafted directory paths. This can lead to unauthorized file creation or overwriting in arbitrary filesystem locations, which may facilitate further attacks or system compromise. There are no known exploits in the wild at this time.

Mitigation Recommendations

Upgrade xyproto algernon to version 1.17.6 or later, where this path traversal vulnerability has been fixed. Since the vendor has released a fixed version, applying this official patch is the recommended remediation. Patch status is confirmed by the vendor advisory indicating the fix in version 1.17.6.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-04T20:24:31.916Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a15d22e891d628fdc600889

Added to database: 5/26/2026, 5:02:38 PM

Last enriched: 5/26/2026, 5:33:03 PM

Last updated: 5/26/2026, 9:50:19 PM

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses