GHSA-m2w3-8f23-hxxf · Severity: medium · Ecosystem: go — Caddy's vars_regexp double-expands user input, leaking env vars and files
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.
Conclusion & alert: CVE-2026-30852 is rated Exploit Available (50/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.02%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-22 | 0.06% | 0.02% | -0.04% |
| 2 | 2026-04-18 | 0.04% | 0.06% | +0.01% |
| 3 | 2026-03-08 | — | 0.04% | — |
Full EPSS history (3 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.5 | 4.0 | MEDIUM |
|
— | — | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-m2w3-8f23-hxxf · Severity: medium · Ecosystem: go — Caddy's vars_regexp double-expands user input, leaking env vars and files
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
— | CVE-2026-30852: 1 source package rows (caddy); 23 state rows across 2 repos (3.23-community, edge-community); fixed 2, open 21. | https://security.alpinelinux.org/vuln/CVE-2026-30852 |
debian
|
unimportant | CVE-2026-30852 unimportant priority: Debian including 1 source packages (caddy), 4 status rows across 4 suites (bookworm, forky, sid, trixie): resolved 4. | https://security-tracker.debian.org/tracker/CVE-2026-30852 |
ubuntu
|
medium | CVE-2026-30852 medium priority: Ubuntu including 1 source packages (caddy), 4 status rows across 4 suites (jammy, noble, questing, upstream): needs-triage 2, DNE 1, not-affected 1. | https://ubuntu.com/security/CVE-2026-30852 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| caddyserver | caddy | >= 2.7.5, < 2.11.2 | cpe:2.3:a:caddyserver:caddy:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/caddyserver/caddy/pull/5408 | Issue Tracking Patch |
| https://github.com/caddyserver/caddy/releases/tag/v2.11.2 | Product Release Notes |
| https://github.com/caddyserver/caddy/security/advisories/GHSA-m2w3-8f23-hxxf | Exploit Mitigation Vendor Advisory |