PT-2026-23797

CVE-2026-30852

·

Published

2026-03-06

·

Updated

2026-10-01

Description by

CVSS 3.1
7.5
High
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Caddy versions 2.7.5 through 2.11.2
Description The vars regexp matcher in Caddy double-expands user-controlled input through the Caddy replacer. When vars regexp matches a placeholder like {http.request.header.X-Input}, the header value is resolved and then re-evaluated, allowing an attacker to inject placeholders like {env.DATABASE URL} or {file./etc/passwd} into a request header and potentially leak environment variables, file contents, and system information. This issue stems from a code-level inconsistency where vars regexp includes an unnecessary second expansion step not present in header regexp and path regexp. The issue was introduced by a fix intended to resolve placeholder keys. An attacker can exploit this by crafting requests with malicious headers, leading to information disclosure. The vulnerability allows access to environment variables, file contents (up to 1MB), and system information such as hostname and operating system details.
Recommendations Update Caddy to version 2.11.2 or later.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-M2W3-8F23-HXXF
GO-2026-4644
OPENSUSE-SU-2026:21483-1
SUSE-SU-2026:1042-1
Found an issue in the description? Have something to add? Feel free to write us 👾