Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Algernon Lua upload endpoint
-
DeliveryCraft multipart upload with traversal directory
-
ExploitSubmit POST to vulnerable handler
-
Executionfilepath.Join resolves outside web root
-
PersistServer writes attacker file to arbitrary path
-
ImpactOverwritten file triggers code execution or persistence
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The Algernon instance must serve a Lua handler that invokes uploadedFileSaveIn() with a directory argument derived from untrusted request data; if every Lua script hard-codes the destination, the bug is not reachable from the network. When that condition is met, no authentication, user interaction, or special CVSS attack requirements apply (PR:N/UI:N/AT:N), and exploitation works against default builds prior to 1.17.6. Practical impact is further bounded by the filesystem permissions of the Algernon process - writes only succeed where that user has write access - and the bug yields file write rather than direct code execution, so weaponization depends on a writable sensitive path being present on the target host. |
| Impact | Signals are mixed and warrant a moderate rather than urgent priority. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) indicates a network-reachable, low-complexity, unauthenticated bug, and SSVC marks it automatable with partial technical impact - consistent with a scriptable file-write primitive. However, EPSS is 0.05% (14th percentile) and no public exploit has been identified, suggesting limited attacker interest so far. A key caveat: exploitation requires that a server-side Lua script actually invoke uploadedFileSaveIn() with attacker-influenced directory input, which is a deployment-specific condition the CVSS vector does not capture, so the practical attack surface is narrower than AV:N/PR:N alone implies. The vector also scores VI:H but VC:N/VA:N, correctly reflecting an integrity-only (arbitrary file write) impact rather than direct RCE or data disclosure. |
| Exploit ScenarioDerived | An attacker sends an HTTP upload request to an Algernon-hosted application whose Lua handler passes the user-supplied directory parameter into uploadedFileSaveIn(); by setting the directory to something like ../../../tmp or ../../etc/cron.d, the attacker writes attacker-controlled file contents to an arbitrary filesystem location writable by the server process. Depending on the target path, this can be escalated to code execution (e.g. dropping a cron job, overwriting a script loaded by another service, or planting a web shell in a sibling document root). No public PoC has been published, but the bug is straightforward to reproduce against any Lua endpoint that forwards client input as the destination directory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Path traversal in Algernon web server versions prior to 1.17.6 allows remote unauthenticated attackers to write uploaded files outside the intended directory by supplying a directory parameter containing ../ sequences. The flaw in uploadedFileSaveIn() within lua/upload/upload.go fails to validate the joined path after filepath.Join(), so a value like ../../../tmp resolves to /tmp on the host. No public exploit identified at time of analysis, and EPSS is very low (0.05%), but CISA SSVC flags the issue as automatable with partial technical impact.
RemediationAI
Upgrade to Algernon 1.17.6 or later, which is the vendor-released patch that adds boundary validation after the filepath.Join() in uploadedFileSaveIn(); see the advisory at https://github.com/xyproto/algernon/security/advisories/GHSA-2j2c-pv62-mmcp. Until the upgrade is deployed, audit any Lua handlers that call uploadedFileSaveIn() and hard-code or sanitize the directory argument so it cannot be influenced by request data - rejecting inputs containing '..' or non-ASCII path separators, or computing filepath.Rel against the intended root and refusing results that begin with '..'. As a deployment-level compensating control, run the Algernon process under a dedicated unprivileged user with a restricted filesystem view (chroot, containers with read-only mounts, or systemd ProtectSystem/ReadOnlyPaths), accepting the trade-off that legitimate upload targets outside the web root will also be blocked.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Algernon is a self-contained pure-Go web server developed by xyproto that embeds a Lua scripting environment for dynamic content. The vulnerable code path is the Lua-exposed uploadedFileSaveIn() helper in lua/upload/upload.go, which constructs a destination path using Go's filepath.Join(). filepath.Join() canonicalizes ../ segments but does not constrain the result to a base directory - a well-known CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) pitfall in Go file-handling code. Because no boundary check (e.g. comparing the cleaned path against a trusted prefix or using filepath.Rel) is performed before writing, a caller-controlled directory argument can escape the web root entirely.
Know when Algernon gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
Algernon web server versions below 1.17.6 contain an unauthenticated path traversal flaw that enables remote file writes outside the configured upload directory, creating exposure for code injection, malware deployment, or unauthorized system modification. The vulnerability requires no authentication and affects any exposed Algernon deployment. Organizations should prioritize upgrading to version 1.17.6 immediately to eliminate this attack vector.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Cross-site scripting in Algernon 1.17.4 allows an attacker who can control a filename that Algernon later renders into a
All versions of the package github.com/xyproto/algernon/engine; all versions of the package github.com/xyproto/algernon/
Unauthenticated attackers can bypass Algernon's /admin, /repo and /data authorization boundary on case-insensitive files
Path traversal in xyproto's Algernon web server prior to 1.17.8 lets unauthenticated remote attackers escape the documen
Denial of service in Algernon web server versions prior to 1.17.6 stems from a race condition in the Lua handler engine
EUVD-2026-31863
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB