# CVE-2026-48126: Algernon: Host header path traversal in --domain mode reads files and runs Lua from parent dir

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A: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.34%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-26T16:44:09.104Z
- Modified: 2026-07-24T11:10:00.170Z
- Also known as: GHSA-jc3j-x6pg-4hmv, GO-2026-5460
- Weaknesses: CWE-22, CWE-23, CWE-644
- 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.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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`

## References

- <https://github.com/xyproto/algernon/security/advisories/GHSA-jc3j-x6pg-4hmv> (exploit, advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48126> (advisory)
- <https://github.com/xyproto/algernon> (package)

## Sources

- CVE List: [CVE-2026-48126](https://www.cve.org/CVERecord?id=CVE-2026-48126), CVE Terms of Use, modified 2026-05-26
- GitHub Advisory Database: [GHSA-jc3j-x6pg-4hmv](https://github.com/advisories/GHSA-jc3j-x6pg-4hmv), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5460](https://pkg.go.dev/vuln/GO-2026-5460), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-48126](https://nvd.nist.gov/vuln/detail/CVE-2026-48126), Public domain, modified 2026-07-24

---

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