Skip to main content
VulnerabilityPublished Updated

CVE-2026-30852: caddy · From version 2.7.5 to before version 2.11.2, the vars_regexp matcher in vars.go:337 double-expands

Affects caddySource GCVE Database

0
Compare
Authoritative record:CVE-2026-30852· Medium 5.5

Public exploit available · CVSS 5.5 Medium · fixed in 2.11.2 : patch caddy as a priority.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 4.0 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 40% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.11.2
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    CVSS exploit maturity: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10caddypkg:deb/ubuntu/caddy?arch=source&distro=stonkingOther threatsAffected
  • =2.6.2-14
  • =2.11.4-1
Fixed in–
Ubuntu Pro 26.04 LTScaddypkg:deb/ubuntu/caddy?arch=source&distro=esm-apps/resoluteOther threatsAffected
  • =2.6.2-12
  • =2.6.2-14
  • =2.6.2-14ubuntu0.26.04.1~esm1
Fixed in–
Ubuntu 25.10caddypkg:deb/ubuntu/caddy?arch=source&distro=questingOther threatsAffected
  • =2.6.2-9
  • =2.6.2-11
  • =2.6.2-12
Fixed in–
Ubuntu Pro 24.04 LTScaddypkg:deb/ubuntu/caddy?arch=source&distro=esm-apps/nobleOther threatsAffected
  • 2.6.2-6 – 2.6.2-6ubuntu0.24.04.3+esm2
7 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…