
CVE catalog
CVE-2026-30852
Caddy is an extensible server platform that uses TLS by default. From version 2.7.5 to before version 2.11.2, the vars_regexp matcher in vars.go:337 double-expands user-controlled input through the Ca
- Severity
- Medium · CVSS 5.5
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.44% · Oct 25, 2026
Caddy is an extensible server platform that uses TLS by default. From version 2.7.5 to before version 2.11.2, the vars_regexp matcher in vars.go:337 double-expands user-controlled input through the Caddy replacer. When vars_regexp matches against a placeholder like {http.request.header.X-Input}, the header value gets resolved once (expected), then passed through repl.ReplaceAll() again (the bug). This means an attacker can put {env.DATABASE_URL} or {file./etc/passwd} in a request header and the server will evaluate it, leaking environment variables, file contents, and system info. This issue has been patched in version 2.11.2.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | caddy | sid | 2.11.4-1 | not affected |
| Debian | caddy | forky | 2.11.4-1 | not affected |
| Debian | caddy | trixie | 2.6.2-12+deb13u1 | not affected |
| Debian | caddy | trixie-security | 2.6.2-12+deb13u1 | not affected |
| Debian | caddy | bookworm | 2.6.2-5 | not affected |
| Debian | caddy | bookworm-security | 2.6.2-5+deb12u1 | not affected |
| Go | github.com/caddyserver/caddy/v2/modules/caddyhttp | Not reported | 2.11.2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | caddy | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | caddy | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | caddy | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | caddy | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| Go | github.com/caddyserver/caddy/v2/modules/caddyhttp | go | Not reported | 2.11.2 | Not reported | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [caddy]Not affected
Details (2)
2.6.2-5· amd64 · bookwormNot affected
nvd · caddy · debian · bookworm
2.6.2-5· arm64 · bookwormNot affected
nvd · caddy · debian · bookworm
Observed:
References
- [https://github.com/advisories/GHSA-m2w3-8f23-hxxf]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-30852]
- [https://security-tracker.debian.org/tracker/CVE-2026-30852]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-30852.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [Red Hat security advisories and VEX]