Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.5
CVE-2022-34037: Caddy v2.5.1: Invalid Config Can Cause Server Crash
CVE-2022-34037 · published 4 years ago
Summary
A misconfigured Caddy server can crash if it receives a specially crafted request. This is not a security vulnerability, but rather a result of a poorly set up configuration. To avoid this, review and correct any custom configurations to ensure they're correct and safe.
What to do
- Update github.com caddyserver to version 2.5.2.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| go | github.com | caddyserver |
< 2.5.2 Fix: upgrade to 2.5.2
|
| – | caddyserver | caddy |
2.5.1 cpe:2.3:a:caddyserver:caddy:2.5.1:*:*:*:*:*:*:* |
Original advisory text
An out-of-bounds read in the rewrite function at /modules/caddyhttp/rewrite/rewrite.go in Caddy v2.5.1 allows attackers to cause a Denial of Service (DoS) via a crafted URI. Note: This has been dis...
An out-of-bounds read in the rewrite function at /modules/caddyhttp/rewrite/rewrite.go in Caddy v2.5.1 allows attackers to cause a Denial of Service (DoS) via a crafted URI. Note: This has been disputed as a bug, not a security vulnerability, in the Caddy web server that emerged when an administrator's bad configuration containing a malformed request URI caused the server to return an empty reply instead of a valid HTTP response to the client.
References
- https://github.com/caddyserver/caddy/commit/693e9b5283e675b56084ecc83d73176cab0e...
- https://github.com/advisories/GHSA-m7gr-5w5g-36jf
- https://nvd.nist.gov/vuln/detail/CVE-2022-34037 Vendor Advisory
- https://github.com/caddyserver/caddy/issues/4775 Third Party Advisory
- https://github.com/caddyserver/caddy/issues/4775#issuecomment-1203388116 Third Party Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/34xxx/CVE-2022-34037... Vendor Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-125Out-of-bounds Read
Timeline
Published22 Jul 2022
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta