๐Ÿ›ก๏ธ CVE-2026-30852
๐ŸŸ  CVSS 7.5 โ€” High โš ๏ธ Exploit Public CWE-74 NVD
7.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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.

Details

Severity HIGH
CVSS Score 7.5
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE CWE-74
Public Exploit โš ๏ธ Yes
Source NVD
Published 2026-03-07
Updated 2026-06-02
Modified 2026-03-11

Affected Packages

Software From version Fixed in
caddy 2.7.5 2.11.2
github.com/caddyserver/caddy/v2 โ€” โ€”
github.com/caddyserver/caddy/v2/modules/caddyhttp โ€” โ€”

Similar Threats

Free Vulnerability Check

Is your WordPress site affected?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against known CVE records.

Scan My Site Free โ†’

No credit card required  ยท  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.