原始描述
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.
受影响的软件
- Caddy *≥ 2.7.5 < 2.11.2 修复版本: 2.11.2 仓库或软件包匹配
详情
- 发布日期
- 2026-03-08
- 最后修改
- 2026-03-10
- CVSS 向量
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- CWE
- CWE-200, CWE-74
- EPSS(30 天内被利用概率)
- 0.47% (百分位 41)
参考资料
本产品使用 NVD API 的数据,但未获得 NVD 的认可或认证。CVE® 是 The MITRE Corporation 的注册商标;CVE 记录依据 CVE Program 使用条款使用。