CVE-2026-77281 Caddy: rewrite placeholder re-expansion
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
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.
Upgrade path
7 packages: 3 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/caddy(Debian 13) | = 2.6.2-12; = 2.6.2-12+deb13u1; = 2.6.2-13; = 2.6.2-14 +4 more | No fix listed | No fix yet |
| ubuntu/caddy(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/caddy(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| caddyserver github.com/caddyserver/caddy(Go) | <= 2.11.3 | after 2.11.3 | Fixed |
| debian/caddy(Debian 12) | < 2.6.2-5+deb12u1; = 2.6.2-5 | 2.6.2-5+deb12u1 | Fixed |
| debian/caddy(Debian 14) | < 2.11.4-1; = 2.6.2-12; = 2.6.2-13; = 2.6.2-14 +2 more | 2.11.4-1 | Fixed |
| caddyserver github.com/caddyserver/caddy | = < 2.11.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| caddyserver github.com/caddyserver/caddy | = < 2.11.4 | No fix listed |
| caddyserver github.com/caddyserver/caddy(Go) | <= 2.11.3 | No fix listed |
| debian/caddy(Debian:12) | < 2.6.2-5+deb12u1 | 2.6.2-5+deb12u1 |
| debian/caddy(Debian:12) | = 2.6.2-5 | No fix listed |
| debian/caddy(Debian:13) | All versions | No fix listed |
| debian/caddy(Debian:13) | = 2.11.2-1 | No fix listed |
| debian/caddy(Debian:13) | = 2.11.2-1~bpo13+1 | No fix listed |
| debian/caddy(Debian:13) | = 2.11.4-1 | No fix listed |
| debian/caddy(Debian:13) | = 2.6.2-12 | No fix listed |
| debian/caddy(Debian:13) | = 2.6.2-12+deb13u1 | No fix listed |
| debian/caddy(Debian:13) | = 2.6.2-13 | No fix listed |
| debian/caddy(Debian:13) | = 2.6.2-14 | No fix listed |
| debian/caddy(Debian:14) | < 2.11.4-1 | 2.11.4-1 |
| debian/caddy(Debian:14) | = 2.11.2-1 | No fix listed |
| debian/caddy(Debian:14) | = 2.11.2-1~bpo13+1 | No fix listed |
| debian/caddy(Debian:14) | = 2.6.2-12 | No fix listed |
| debian/caddy(Debian:14) | = 2.6.2-13 | No fix listed |
| debian/caddy(Debian:14) | = 2.6.2-14 | No fix listed |
| ubuntu/caddy(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/caddy(Ubuntu:26.04) | All versions | No fix listed |
References
- https://github.com/caddyserver/caddy/security/advisories/GHSA-j8px-rmrx-76h9 vendor-advisory
- https://github.com/caddyserver/caddy/pull/7761 patch
- https://github.com/caddyserver/caddy/commit/176b043b0104cee3f894023cd5a598ac29e404bb patch
- https://github.com/caddyserver/caddy/releases/tag/v2.11.4
- nvd.nist.gov third-party-advisory
- github.com
- Debian Security Tracker CVE-2026-77281 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org