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

Published Sep 17, 2026
·
Updated

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 Software

2 affected components
Caddy Caddy<=2.11.3
Caddy Caddy=2.11.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Caddy to a version that resolves this vulnerability.

    Fixed in 2.11.4

Event History

Sep 17, 2026
CVE Published
via MITRE·09:04 PM
Data Sourced
via MITRE·09:04 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to data disclosure?

Affected deployments use Caddy 2.11.3 or earlier and have a configuration in which a rewrite URI ends with a literal question mark and attacker-controlled replacement bytes can reach that rewrite. Exposure to readable file contents additionally requires the file provider to be registered.

2

What can an unauthenticated attacker obtain?

An attacker can inject placeholders that are expanded a second time, potentially disclosing environment variables or request variables. If the file provider is registered, injected file placeholders can disclose files readable by the Caddy process.

3

What is the remediation?

Upgrade Caddy to version 2.11.4, which fixes the issue. Until upgrading, review rewrite rules for URIs ending in a literal question mark and prevent untrusted input from being used as replacement bytes in those rules.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203