CVE Explorer
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 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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-74","description":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0c4edafc647615231869270b2cec8d83d50e304c56ae6ce27c6a99c3a67c056f · sha256:d5a84b3b3c632b86… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-200","description":"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0c4edafc647615231869270b2cec8d83d50e304c56ae6ce27c6a99c3a67c056f · sha256:d5a84b3b3c632b86… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"caddy","vendor":"caddyserver","versions":[{"status":"affected","version":">= 2.7.5, < 2.11.2"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:0c4edafc647615231869270b2cec8d83d50e304c56ae6ce27c6a99c3a67c056f · sha256:d5a84b3b3c632b86… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.5,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:0c4edafc647615231869270b2cec8d83d50e304c56ae6ce27c6a99c3a67c056f · sha256:d5a84b3b3c632b86… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
2 source assertions{"cweId":"CWE-74","description":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0c4edafc647615231869270b2cec8d83d50e304c56ae6ce27c6a99c3a67c056f · sha256:d5a84b3b3c632b86… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-200","description":"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0c4edafc647615231869270b2cec8d83d50e304c56ae6ce27c6a99c3a67c056f · sha256:d5a84b3b3c632b86… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/caddyserver/caddy/pull/5408","tags":["x_refsource_MISC"],"url":"https://github.com/caddyserver/caddy/pull/5408"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0c4edafc647615231869270b2cec8d83d50e304c56ae6ce27c6a99c3a67c056f · sha256:d5a84b3b3c632b86… · /containers/cna/references/1
{"name":"https://github.com/caddyserver/caddy/releases/tag/v2.11.2","tags":["x_refsource_MISC"],"url":"https://github.com/caddyserver/caddy/releases/tag/v2.11.2"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0c4edafc647615231869270b2cec8d83d50e304c56ae6ce27c6a99c3a67c056f · sha256:d5a84b3b3c632b86… · /containers/cna/references/2
{"name":"https://github.com/caddyserver/caddy/security/advisories/GHSA-m2w3-8f23-hxxf","tags":["x_refsource_CONFIRM"],"url":"https://github.com/caddyserver/caddy/security/advisories/GHSA-m2w3-8f23-hxxf"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0c4edafc647615231869270b2cec8d83d50e304c56ae6ce27c6a99c3a67c056f · sha256:d5a84b3b3c632b86… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.