CVEfocus › CVE database › CVE-2026-77281

CVE-2026-77281Caddy: rewrite placeholder re-expansion

CVSS 6.5 MediumEPSS 0.5% (higher than 35% of CVEs)Published 2026-09-17Updated 2026-09-18Assigner: GitHub_M

Caddy is an extensible server platform that uses TLS by default. In version 2.11.3 and earlier, three configuration-dependent weaknesses affect the handler and placeholder layer. In modules/caddyhttp/rewrite/rewrite.go, Rewrite.Rewrite() can pass attacker-controlled replacement bytes through buildQueryString for a second placeholder expansion when a rewrite URI ends with a literal question mark, allowing injected environment or request-variable placeholders to disclose data and, when the file provider is registered, allowing injected file placeholders to disclose readable files. The issue is fixed in version 2.11.4.

CWE-178CWE-770CWE-94

What to do

Fixed builds are available from Debian, Go: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
3Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04caddyFix pendingUBUNTU-CVE-2026-77281
Ubuntu 24.04caddyFix pendingUBUNTU-CVE-2026-77281
Debian 14caddyFixed2.11.4-1DEBIAN-CVE-2026-77281
Debian 13caddyFix pendingDEBIAN-CVE-2026-77281
Debian 12caddyFixed2.6.2-5+deb12u1DEBIAN-CVE-2026-77281
Go librarygithub.com/caddyserver/caddy/v2Fixed2.11.4GO-2026-6512

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.