Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify internet-exposed Algernon with --domain/--letsencrypt
-
DeliverySend HTTP request with 'Host: ..' header
-
ExploitTrigger filepath.Join traversal above --dir
-
InstallEnumerate parent directory listing
-
C2Read sensitive files or locate .lua script
-
ExecuteRequest .lua to trigger server-side execution
-
ImpactAchieve code execution as Algernon process
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 | Exploitation requires that the Algernon instance be launched with the --domain flag, or equivalently with --letsencrypt (which silently enables --domain at engine/flags.go:372) - in any other startup mode the vulnerable Host-header-to-path join is not reached. The attacker needs only network reachability to the HTTP listener and the ability to set an arbitrary Host header (PR:N, UI:N per CVSS), with no credentials, no session, and no victim interaction. Limiting factors that reduce realistic risk: server-side Lua execution only occurs when a .lua file happens to exist in the traversed parent directory, and confidentiality impact is bounded by the filesystem permissions of the Algernon process user; deployments behind a reverse proxy that rewrites or validates the Host header are not exploitable. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N (8.2 High) is consistent with the description: network-reachable, no authentication, no user interaction, and trivial complexity since the attacker only needs to set a Host header. SSVC reinforces this with Exploitation=poc, Automatable=yes, Technical Impact=partial, and the Lua-execution side effect arguably understates true impact when Lua files are present. However, EPSS is only 0.07% (20th percentile) and the issue is not on CISA KEV, suggesting it is not yet seeing broad opportunistic abuse - likely because exploitation is gated on the server being launched with --domain/--letsencrypt and on Algernon's relatively small deployment footprint. Net assessment: real and easily weaponizable against affected deployments, but population-level risk is narrow; prioritize for any internet-exposed Algernon instance, deprioritize for internal-only or non-domain-mode use. |
| Exploit ScenarioDerived | An attacker sends an HTTP request to an internet-exposed Algernon instance started with --letsencrypt, setting 'Host: ..' (or a similar traversal value). The server joins '..' with --dir, resolving above the document root, and returns a directory listing or arbitrary file contents from the parent directory; if that directory contains a .lua file, the attacker requests it and Algernon executes the script server-side, yielding code execution in the server's context. SSVC rates this PoC-stage and automatable, so once weaponized it would be straightforward to mass-scan for. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Path traversal in xyproto's Algernon web server prior to 1.17.8 lets unauthenticated remote attackers escape the document root via a crafted Host header when the server runs with --domain or --letsencrypt. Beyond arbitrary file read and directory listing, any reachable .lua file in the parent directory will be executed server-side, escalating disclosure into code execution. No public exploit is identified at time of analysis, but SSVC marks the issue as automatable with PoC and EPSS sits at the 20th percentile (0.07%).
RemediationAI
Vendor-released patch: upgrade to Algernon 1.17.8 or later, per the GHSA-jc3j-x6pg-4hmv advisory at https://github.com/xyproto/algernon/security/advisories/GHSA-jc3j-x6pg-4hmv. If immediate upgrade is not possible, run Algernon without --domain and without --letsencrypt so the vulnerable Host-header-based path resolution is bypassed - note this disables virtual-host routing and automatic TLS certificate issuance, so you will need to front Algernon with a reverse proxy (nginx, Caddy) that terminates TLS and supplies a fixed, validated Host. As an additional compensating control, place Algernon's --dir parent directory off any path that contains .lua files, and configure the upstream proxy to reject or normalize Host headers containing '..' or path-separator characters, which closes the specific traversal vector with no impact on legitimate clients.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, 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 Go-based web server (CPE cpe:2.3:a:xyproto:algernon) that supports static content, Markdown, and embedded Lua scripting. When --domain is enabled (also implicitly via --letsencrypt at engine/flags.go:372), the request router constructs the on-disk path by passing the client-supplied Host header straight into filepath.Join with the configured --dir, with no normalization or containment check. filepath.Join cleans '..' segments but does not constrain the result to the base directory, which is the textbook CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) pattern. Because Algernon also resolves and executes .lua files it finds while serving, the same primitive that yields arbitrary file read becomes server-side script execution whenever the traversed directory contains Lua content.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Algernon is a small self-contained pure-Go web server. Prior to 1.17.8, when algernon is started with --domain (or --letsencrypt, which silently turns on --domain at engine/flags.go:372), the request handler resolves the served directory by joining the configured --dir with the value of the client-supplied Host header. The join is performed by filepath.Join with no validation, so a Host: .. header walks one level above the document root. Subsequent file resolution then exposes everything in that parent directory - arbitrary file read, full directory listing, and, if any .lua file is present, server-side Lua execution. This vulnerability is fixed in 1.17.8.
Executive ViewAI
Algernon web server versions prior to 1.17.8 contain a critical vulnerability allowing unauthenticated remote code execution when deployed with --domain or --letsencrypt flags. No public exploit has been identified at time of analysis, but affected servers face immediate risk of unauthorized file access and malicious code execution.
Apply vendor patch. If immediate upgrade is not feasible, disable --domain and --letsencrypt flags until patched.
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 Algernon web server versions prior to 1.17.6 allows remote unauthenticated attackers to write uploaded
Denial of service in Algernon web server versions prior to 1.17.6 stems from a race condition in the Lua handler engine
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-31881
GHSA-jc3j-x6pg-4hmv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB