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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-09-17T21:04:58.400Z
- Modified: 2026-10-03T05:30:03.692Z
- Also known as: GHSA-j8px-rmrx-76h9, GO-2026-6512
- Related: CVE-2026-92284, CVE-2026-92700
- Weaknesses: CWE-94, CWE-178, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- caddyserver caddy: < 2.11.4
- github.com/caddyserver/caddy/v2 (Go): before 2.11.4

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- GitHub: CVSS:3.1 6.5 Medium `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> (advisory, web)
- <https://github.com/caddyserver/caddy/pull/7761> (fix, web)
- <https://github.com/caddyserver/caddy/commit/176b043b0104cee3f894023cd5a598ac29e404bb> (fix, web)
- <https://github.com/caddyserver/caddy/releases/tag/v2.11.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-77281> (advisory)
- <https://github.com/caddyserver/caddy> (package)

## Sources

- CVE List: [CVE-2026-77281](https://www.cve.org/CVERecord?id=CVE-2026-77281), CVE Terms of Use, modified 2026-09-18
- GitHub Advisory Database: [GHSA-j8px-rmrx-76h9](https://github.com/advisories/GHSA-j8px-rmrx-76h9), CC-BY-4.0, modified 2026-10-03
- Go Vulnerability Database: [GO-2026-6512](https://pkg.go.dev/vuln/GO-2026-6512), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-77281](https://nvd.nist.gov/vuln/detail/CVE-2026-77281), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-77281 · Whole record: https://cve.day/CVE-2026-77281.json · Rebuilt by cve.day 2026-11-25T22:59:39.519Z
