7.5

CVE-2026-30852: caddyserver caddy Injection

CVSS: 7.5v3.1HighAnalyzed
AliasesUBUNTU-CVE-2026-30852GHSA-m2w3-8f23-hxxfGO-2026-4644
Published 07-03-2026Last modified 09-03-2026

Vulnerability summary

CVE-2026-30852 is a high (CVSS 7.5) Injection vulnerability in caddyserver caddy. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 42.2% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
0.51%
0%100%
Low · +0.10 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 2 · Related 2

Timeline

  1. 07-03-2026
    PublishedVulnerability first disclosed.
  2. 09-03-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 4 sources · 2 versions

EPSS trend

Probability

0.51%

Chance of exploitation in the next 30 days

Percentile

42%

Versus all other CVEs

30-day change

+0.10 pp

From 0.40% on 21-09-2026

21-09-202621-10-2026
EPSS score
0.51%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Caddy

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Caddyserver1 product
Github.com/caddyserver/caddy1 product
  • v2≥ 2.7.5, < 2.11.2
Github.com/caddyserver/caddy/v2/modules1 product
  • caddyhttp≥ 2.7.5, < 2.11.2
Ubuntu1 product
  • caddyAll versions (No fix recorded)

4 vendors · 4 products

References

7 links