Code Injection in Caddy - CVE-2026-77281
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to disclose Caddy process environment variables through rewritten request URLs.
The vulnerability exists due to repeated placeholder expansion in Caddy's rewrite handler when the configured rewrite URI incorporates request-controlled data and ends with a literal question mark. An unauthenticated remote attacker can inject environment-variable placeholders into a request header, causing their values to appear in the rewritten query string and become readable through a downstream handler that exposes it.