SCA: security update for github.com/caddyserver/caddy/v2/modules/caddyhttp (GHSA-m2w3-8f23-hxxf)

medium Tenable Cloud Security Plugin ID 438523

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-30852)

Solution

Update the github.com/caddyserver/caddy/v2/modules/caddyhttp library and its related packages to version 2.11.2 or later.

See Also

https://github.com/advisories/GHSA-m2w3-8f23-hxxf

Plugin Details

Severity: Medium

ID: 438523

Version: Revision 1.12

Type: Local

Family: SCA Checks

Published: 3/9/2026

Updated: 7/6/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.71

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2026-30852

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.9

Threat Score: 5.5

Threat Vector: CVSS:4.0/E:P

Vector: 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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/6/2026

Vulnerability Publication Date: 3/6/2026

Reference Information

CVE: CVE-2026-30852