CVE catalog

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 Ca

[CVE catalog]

Severity
Medium · CVSS 5.5
Published
Source
[NVD] · [CVE record]
EPSS
0.44% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancaddysid2.11.4-1not affected
Debiancaddyforky2.11.4-1not affected
Debiancaddytrixie2.6.2-12+deb13u1not affected
Debiancaddytrixie-security2.6.2-12+deb13u1not affected
Debiancaddybookworm2.6.2-5not affected
Debiancaddybookworm-security2.6.2-5+deb12u1not affected
Gogithub.com/caddyserver/caddy/v2/modules/caddyhttpNot reported2.11.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
DebiancaddysourcesidNot affectedunimportantNot reportedNot reported
DebiancaddysourceforkyNot affectedunimportantNot reportedNot reported
DebiancaddysourcetrixieNot affectedunimportantNot reportedNot reported
DebiancaddysourcebookwormNot affectedunimportantNot reportedNot reported
Gogithub.com/caddyserver/caddy/v2/modules/caddyhttpgoNot reported2.11.2Not reportedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [caddy]Not affected
    Details (2)
    • 2.6.2-5 · amd64 · bookworm

      Not affected

      nvd · caddy · debian · bookworm

    • 2.6.2-5 · arm64 · bookworm

      Not affected

      nvd · caddy · debian · bookworm

Observed:

References