ID

VAR-202603-3635


CVE

CVE-2026-30852


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.

Trust: 1.0

sources: NVD: CVE-2026-30852

AFFECTED PRODUCTS

vendor:caddyservermodel:caddyscope:gteversion:2.7.5

Trust: 1.0

vendor:caddyservermodel:caddyscope:ltversion:2.11.2

Trust: 1.0

sources: NVD: CVE-2026-30852

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2026-30852
value: HIGH

Trust: 1.0

security-advisories@github.com: CVE-2026-30852
value: MEDIUM

Trust: 1.0

nvd@nist.gov: CVE-2026-30852
baseSeverity: HIGH
baseScore: 7.5
vectorString: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: NONE
availabilityImpact: NONE
exploitabilityScore: 3.9
impactScore: 3.6
version: 3.1

Trust: 1.0

sources: NVD: CVE-2026-30852 // NVD: CVE-2026-30852

PROBLEMTYPE DATA

problemtype:CWE-74

Trust: 1.0

problemtype:CWE-200

Trust: 1.0

sources: NVD: CVE-2026-30852

EXTERNAL IDS

db:NVDid:CVE-2026-30852

Trust: 1.0

sources: NVD: CVE-2026-30852

REFERENCES

url:https://github.com/caddyserver/caddy/security/advisories/ghsa-m2w3-8f23-hxxf

Trust: 1.0

url:https://github.com/caddyserver/caddy/pull/5408

Trust: 1.0

url:https://github.com/caddyserver/caddy/releases/tag/v2.11.2

Trust: 1.0

sources: NVD: CVE-2026-30852

SOURCES

db:NVDid:CVE-2026-30852

LAST UPDATE DATE

2026-03-26T23:02:59.189000+00:00


SOURCES UPDATE DATE

db:NVDid:CVE-2026-30852date:2026-03-11T13:01:46.030

SOURCES RELEASE DATE

db:NVDid:CVE-2026-30852date:2026-03-07T17:15:52.733