CVE-2022-34037: 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.
High CVSS 7.5
- CVE id
- CVE-2022-34037
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Caddy Runtimes and servers |
2.5.1 | not fixed yet |
How to fix it
No fix yet. No fixed Caddy release is listed yet.
caddy version
- Check the advisory and its references below for a workaround or a configuration change that turns off the affected feature.
- Limit exposure: don't pass untrusted input to the affected code path, and keep it off public endpoints if you can.
- Upgrade Caddy (the caddy image tag or binary) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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
- CVE-2022-34037 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2022-34037
- Web: https://github.com/caddyserver/caddy/issues/4775
- Web: https://github.com/caddyserver/caddy/issues/4775#issuecomment-1203388116
- Web: https://github.com/caddyserver/caddy/issues/4775
- Web: https://github.com/caddyserver/caddy/issues/4775#issuecomment-1203388116
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.