Vulnerability · Published Sep 17, 2026 · Assigned by GitHub_M
CVE-2026-77281Caddy: rewrite placeholder re-expansion
Medium 6.5
In plain English
A medium-severity code injection in caddy from caddyserver. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | caddy | 2.6.2-5+deb12u1 | DEBIAN-CVE-2026-77281 |
| Debian:13 | caddy | no fix listed | DEBIAN-CVE-2026-77281 |
| Debian:14 | caddy | 2.11.4-1 | DEBIAN-CVE-2026-77281 |
| Go | github.com/caddyserver/caddy/v2 | 2.11.4 | GHSA-j8px-rmrx-76h9 |
| Go | github.com/caddyserver/caddy/v2 | 2.11.4 | GO-2026-6512 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| caddyserver | caddy | < 2.11.4 |
Weakness: CWE-94, CWE-178, CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
References
- https://github.com/caddyserver/caddy/security/advisories/GHSA-j8px-rmrx-76h9 x_refsource_CONFIRM
- https://github.com/caddyserver/caddy/pull/7761 x_refsource_MISC
- https://github.com/caddyserver/caddy/commit/176b043b0104cee3f894023cd5a598ac29e404bb x_refsource_MISC
- https://github.com/caddyserver/caddy/releases/tag/v2.11.4 x_refsource_MISC