CVE-2026-77281Caddy: rewrite placeholder re-expansion
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | caddy | Fix pending | UBUNTU-CVE-2026-77281 | |
| Ubuntu 24.04 | caddy | Fix pending | UBUNTU-CVE-2026-77281 | |
| Debian 14 | caddy | Fixed | 2.11.4-1 | DEBIAN-CVE-2026-77281 |
| Debian 13 | caddy | Fix pending | DEBIAN-CVE-2026-77281 | |
| Debian 12 | caddy | Fixed | 2.6.2-5+deb12u1 | DEBIAN-CVE-2026-77281 |
| Go library | github.com/caddyserver/caddy/v2 | Fixed | 2.11.4 | GO-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.
- caddyserver caddy: affected: < 2.11.4
References
- https://github.com/caddyserver/caddy/security/advisories/GHSA-j8px-rmrx-76h9
- https://github.com/caddyserver/caddy/pull/7761
- https://github.com/caddyserver/caddy/commit/176b043b0104cee3f894023cd5a598ac29e404bb
- https://github.com/caddyserver/caddy/releases/tag/v2.11.4
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.