Caddy: rewrite placeholder re-expansion
Summary
| CVE | CVE-2026-77281 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-09-17 21:17:37 UTC |
| Updated | 2026-09-24 21:16:28 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 6.5 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
EPSS: 0.004910000 probability, percentile 0.396300000 (date 2026-09-25)
Problem Types: CWE-94 | CWE-178 | CWE-770 | CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection') | CWE-178 CWE-178: Improper Handling of Case Sensitivity | CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| 3.1 | CNA | DECLARED | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
LowIntegrity
NoneAvailability
LowCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Caddyserver | Caddy | affected < 2.11.4 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/caddyserver/caddy/releases/tag/v2.11.4 | [email protected] | github.com | |
| github.com/caddyserver/caddy/pull/7761 | [email protected] | github.com | |
| github.com/caddyserver/caddy/commit/176b043b0104cee3f894023cd5a598ac29e4... | [email protected] | github.com | |
| github.com/caddyserver/caddy/security/advisories/GHSA-j8px-rmrx-76h9 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.