# CVE-2026-52792: Algernon: Server-side script source disclosure on Windows via NTFS filename

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-02T20:46:42.000Z
- Modified: 2026-09-18T20:09:01.757Z
- Also known as: GHSA-mm6c-5j6x-hq8m, GO-2026-5903
- Weaknesses: CWE-69
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Algernon is a small self-contained pure-Go web server. Prior to 1.17.9, Algernon on Windows selects a file handler in engine/handlers.go by calling filepath.Ext() without first rejecting NTFS-equivalent names such as x.lua::$DATA, x.lua., and x.lua . An unauthenticated client can append one of these suffixes to a public server-side script using the .lua, .tl, .po2, .amber, or .frm extension. The request path passes through URL2filename in utils/files.go, skips the renderer and execution cases, and reaches FilePage, os.Open, ReadAndLogErrors, and ToClient, while NTFS resolves the alias to the underlying script. The server consequently returns raw script source and can expose database credentials, API keys, and the SetCookieSecret value, which may permit forged session cookies. Linux and macOS hosts are not affected by this issue. This issue is fixed in version 1.17.9.

(As written by CVE List.)

## Affected

- xyproto algernon: < 1.17.9
- github.com/xyproto/algernon (Go): before 1.17.9

## Every score

- GitHub_M: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/xyproto/algernon/security/advisories/GHSA-mm6c-5j6x-hq8m> (exploit, advisory, web)
- <https://github.com/xyproto/algernon/commit/a6b0724928a0c35a29640b18ad5bd547f5e2efa6>
- <https://github.com/xyproto/algernon/releases/tag/v1.17.9>
- <https://github.com/xyproto/algernon> (package)

## Sources

- CVE List: [CVE-2026-52792](https://www.cve.org/CVERecord?id=CVE-2026-52792), CVE Terms of Use, modified 2026-08-19
- GitHub Advisory Database: [GHSA-mm6c-5j6x-hq8m](https://github.com/advisories/GHSA-mm6c-5j6x-hq8m), CC-BY-4.0, modified 2026-07-07
- Go Vulnerability Database: [GO-2026-5903](https://pkg.go.dev/vuln/GO-2026-5903), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-52792](https://nvd.nist.gov/vuln/detail/CVE-2026-52792), Public domain, modified 2026-09-18

---

Page: https://cve.day/CVE-2026-52792 · Whole record: https://cve.day/CVE-2026-52792.json · Rebuilt by cve.day 2026-11-25T22:59:33.959Z
