Skip to content

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

MediumCVSS 6.5 EPSS 0.49%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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