VDB

CVE-2026-30852

CVE-2026-30852 PUBLISHED CVSS 5.5 MEDIUM

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.

EPSS 0.02% · 6.3th percentile

Risk Scores

CVSS v4.0
5.5
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
EPSS Score
0.02%
6.3th percentile

Affected Products

VendorProductVersions
github.comcaddyserver/caddy/v2/modules/caddyhttp2.7.5, 2.7.5
caddyservercaddy>= 2.7.5, < 2.11.2, 2.7.5, >= 2.7.5, < 2.11.2

Timeline

  • Mar 6, 2026 CVE Published
  • Mar 7, 2026 PoC Published
  • Mar 8, 2026 EPSS Score
  • Mar 9, 2026 CVE Updated
  • Mar 9, 2026 EPSS Score
  • Mar 10, 2026 EPSS Score
  • Mar 11, 2026 EPSS Score
  • Mar 12, 2026 EPSS Score
  • Mar 14, 2026 EPSS Score
  • Mar 15, 2026 EPSS Score
  • Mar 16, 2026 EPSS Score
  • Mar 17, 2026 EPSS Score
Open in Interactive Console →
$ Console Community · 100/wk Open console ›