Advisory record · GHSA-m2w3-8f23-hxxf

Caddy's vars_regexp double-expands user input, leaking env vars and files

CVSS 5.5 MediumEPSS 0.0047 · 40th percentile

Published by the GitHub Advisory Database at 6 Mar 2026, 23:40 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/caddyserver/caddy/v2/modules/caddyhttpGo>=2.7.5, <2.11.22.11.2
Identifiers
GHSA-m2w3-8f23-hxxf · CVE-2026-30852 · GO-2026-4644
Weakness (CWE)
CWE-74 · CWE-200
Published
6 Mar 2026
Updated
23 Mar 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Caddy's caddyhttp module, versions 2.7.5 up to but not including 2.11.2, has a flaw in the vars_regexp matcher where user-supplied request header values are expanded a second time for placeholders. A remote attacker able to send requests to a server with a vars_regexp configuration that matches such input could read environment variables, file contents up to 1MB, and system information. Upgrade to version 2.11.2, which fixes the issue.

Written 7 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.5 Medium 4.0 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 CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0047, the 40th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:09 UTC First seen by agentprime
  2. 31 Oct 2026, 15:09 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.