{"id":"CVE-2026-48126","published":"2026-05-26T16:44:09Z","modified":"2026-05-26T17:27:56Z","title":"Algernon: Host header path traversal in --domain mode reads files and runs Lua from parent dir","vendor":"xyproto","product":"algernon","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00502,"percentile":0.35912,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-23","name":"Relative Path Traversal"},{"id":"CWE-644","name":"Improper Neutralization of HTTP Headers for Scripting Syntax"}],"references":[{"url":"https://github.com/xyproto/algernon/security/advisories/GHSA-jc3j-x6pg-4hmv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.9,"factors":[{"name":"EPSS percentile","points":7.18},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"xyproto","affectedVersions":[{"vendor":"xyproto","product":"algernon","versions":["< 1.17.8"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-26T17:27:29.590530Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/xyproto/algernon","vulnerableRanges":["<1.17.8"],"patched":["1.17.8"],"from":["GHSA-jc3j-x6pg-4hmv","GO-2026-5460"],"provenance":"source"}],"summary":{"text":"Algernon, a self-contained pure-Go web server from xyproto, mishandles the client-supplied Host header in --domain mode (including --letsencrypt, which enables it): the served directory is built by joining the configured directory with the Host value without validation, enabling path traversal. An unauthenticated remote attacker can send a crafted Host header such as \"..\", with no user interaction or special configuration beyond the affected mode, to read files and list the directory one level above the document root, and to execute Lua scripts there if any are present.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:12Z"},"euvd":{"id":"EUVD-2026-31881","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-45728","published":"2026-05-26","fixed":"1.17.7","kev":false},{"cve":"CVE-2026-46430","published":"2026-05-26","fixed":"1.17.7","kev":false},{"cve":"CVE-2026-46431","published":"2026-05-26","fixed":"1.17.7","kev":false},{"cve":"CVE-2026-48126","published":"2026-05-26","fixed":"1.17.8","kev":false},{"cve":"CVE-2026-52792","published":"2026-08-19","fixed":"1.17.9","kev":false,"link":{"from":"CVE-2026-48126","to":"CVE-2026-52792","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/xyproto/algernon","fromFixed":"1.17.8","toFixed":"1.17.9","daysApart":85}]}}],"package":"Go:github.com/xyproto/algernon"}}