{"id":"EUVD-2026-31867","enisaUuid":"80f9c467-dd69-3c1f-b5d5-2b944aed4c77","description":"Algernon is a small self-contained pure-Go web server. Prior to 1.17.7, when Algernon is asked for any URL path that resolves to a directory without an index file, DirPage walks upward through parent directories — past the configured server root — looking for a file named handler.lua to execute as the request handler. The loop terminates only after 100 ancestor steps or when filepath.Dir returns ., so on any absolute server-root path the search reaches the filesystem root (/ on Unix, drive letter on Windows). The first handler.lua it finds is loaded into the Lua interpreter with the full Algernon API exposed — including run3(), httpclient, os.execute, io.popen, PQ, MSSQL, raw filesystem access, and the userstate database. Any process that can write handler.lua anywhere in a parent directory of the server root obtains pre-authenticated remote code execution on the next HTTP request. This is reachable without authentication — the lookup happens before the permission check returns a hit (the perm system only gates URL prefixes, not the handler-resolution step), and any URL pointing at a directory without an index triggers the walk. On a fresh stock Algernon install the request GET / is enough. This vulnerability is fixed in 1.17.7.","datePublished":"May 26, 2026, 4:34:49 PM","dateUpdated":"May 26, 2026, 5:15:34 PM","baseScore":9.0,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","references":"https://github.com/xyproto/algernon/security/advisories/GHSA-xwcr-wm99-g9jc\n","aliases":"CVE-2026-45721\nGHSA-xwcr-wm99-g9jc\n","assigner":"GitHub_M","epss":0.44,"enisaIdProduct":[{"id":"7bcd7791-2686-3e03-a2ba-2117f3c1e7cb","product":{"name":"algernon","vendor":{"name":"xyproto"}},"product_version":"\u003c 1.17.7"}],"enisaIdVendor":[{"id":"0ae3a247-96ba-35b7-a52e-d2e7a6db593e","vendor":{"name":"xyproto"}}],"enisaIdVulnerability":[{"id":"0c012923-5f18-345b-a553-a46deea67c83","vulnerability":{"id":"CVE-2026-45721","description":"Algernon is a small self-contained pure-Go web server. Prior to 1.17.7, when Algernon is asked for any URL path that resolves to a directory without an index file, DirPage walks upward through parent directories — past the configured server root — looking for a file named handler.lua to execute as the request handler. The loop terminates only after 100 ancestor steps or when filepath.Dir returns ., so on any absolute server-root path the search reaches the filesystem root (/ on Unix, drive letter on Windows). The first handler.lua it finds is loaded into the Lua interpreter with the full Algernon API exposed — including run3(), httpclient, os.execute, io.popen, PQ, MSSQL, raw filesystem access, and the userstate database. Any process that can write handler.lua anywhere in a parent directory of the server root obtains pre-authenticated remote code execution on the next HTTP request. This is reachable without authentication — the lookup happens before the permission check returns a hit (the perm system only gates URL prefixes, not the handler-resolution step), and any URL pointing at a directory without an index triggers the walk. On a fresh stock Algernon install the request GET / is enough. This vulnerability is fixed in 1.17.7.","datePublished":"May 26, 2026, 4:34:49 PM","dateUpdated":"May 26, 2026, 5:15:34 PM","status":"PUBLISHED","baseScore":9.0,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","references":"https://github.com/xyproto/algernon/security/advisories/GHSA-xwcr-wm99-g9jc\n","enisa_id":"EUVD-2026-31867\n","assigner":"GitHub_M","epss":0.44,"dataProcessed":"Nov 22, 2026, 5:25:07 AM","vulnerabilityProduct":[{"id":"ad8c7f1d-e2ef-35e1-9582-12fb1a86d497","product":{"name":"algernon","vendor":{"name":"xyproto"}},"product_version":"\u003c 1.17.7"}],"vulnerabilityVendor":[{"id":"8bfee6e5-b733-308c-a6f3-b6528ea81649","vendor":{"name":"xyproto"}}]}},{"id":"108771fa-d210-3b63-9e45-aae903d87016","vulnerability":{"id":"GHSA-xwcr-wm99-g9jc","description":"Algernon: handler.lua discovery walks parent directories above the server root","datePublished":"May 19, 2026, 2:36:18 PM","dateUpdated":"May 19, 2026, 2:36:18 PM","baseScore":0.0,"references":"https://github.com/xyproto/algernon/security/advisories/GHSA-xwcr-wm99-g9jc\nhttps://github.com/xyproto/algernon\n","enisa_id":"EUVD-2026-31867\n","aliases":"GHSA-xwcr-wm99-g9jc\nCVE-2026-45721\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:51:00 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}