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.
Description as published by the source, in English.
Key facts
Published
2026-05-26
Last modified
2026-07-24
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Scored by
security-advisories@github.com
Probability of exploitation
0.4 %
higher than 36 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.
The product makes files or directories accessible to unauthorized actors, even though they should not be.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK.
This shows which techniques the weakness class is historically used for.
It does not assert that this vulnerability has been exploited that way.
T1003: OS Credential Dumping credential-access
T1027: Obfuscated Files or Information stealth
T1036.001: Invalid Code Signature stealth
T1039: Data from Network Shared Drive collection
T1119: Automated Collection collection
T1213: Data from Information Repositories collection
T1530: Data from Cloud Storage collection
T1539: Steal Web Session Cookie credential-access
T1552.001: Credentials In Files credential-access
T1552.003: Shell History credential-access
T1552.004: Private Keys credential-access
T1552.006: Group Policy Preferences credential-access
T1553.002: Code Signing defense-impairment
T1555: Credentials from Password Stores credential-access