CVE-2022-34037
Withdrawn Advisory: Out-of-bounds Read can lead to client side denial of service
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2022-34037- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2022-34037- Updated
- 2026-11-02
EUVDEUVD-2022-6374 No score
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.
- Record
EUVD-2022-6374- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-m7gr-5w5g-36jf
7.5
Withdrawn Advisory: Out-of-bounds Read can lead to client side denial of service
Withdrawn Advisory
This advisory has been withdrawn because it is a bug, not a vulnerability. According to the maintainer, the bug only affects the client side of the request and cannot cause a denial of service on the server.
Original Description
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) on the client side via a crafted URI.
- Record
GHSA-m7gr-5w5g-36jf- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVGHSA-m7gr-5w5g-36jf
7.5
Withdrawn Advisory: Out-of-bounds Read can lead to client side denial of service
Withdrawn Advisory
This advisory has been withdrawn because it is a bug, not a vulnerability. According to the maintainer, the bug only affects the client side of the request and cannot cause a denial of service on the server.
Original Description
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) on the client side via a crafted URI.
- Record
GHSA-m7gr-5w5g-36jf- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2022-34037- Updated
- 2026-11-02
OSVopenSUSE-SU-2022:10080-1 No score
Security update for caddy
This update for caddy fixes the following issues:
Update to version 2.5.2:
- admin: expect quoted ETags (#4879)
- headers: Only replace known placeholders (#4880)
- reverseproxy: Err 503 if all upstreams unavailable
- reverseproxy: Adjust new TLS Caddyfile directive names (#4872)
- fileserver: Use safe redirects in file browser
- admin: support ETag on config endpoints (#4579)
- caddytls: Reuse issuer between PreCheck and Issue (#4866)
- admin: Implement /adapt endpoint (close #4465) (#4846)
- forwardauth: Fix case when
copy_headersis omitted (#4856) - Expose several Caddy HTTP Matchers to the CEL Matcher (#4715)
- reverseproxy: Fix double headers in response handlers (#4847)
- reverseproxy: Fix panic when TLS is not configured (#4848)
- reverseproxy: Skip TLS for certain configured ports (#4843)
- forwardauth: Support renaming copied headers, block support (#4783)
- Add comment about xcaddy to main
- headers: Support wildcards for delete ops (close #4830) (#4831)
- reverseproxy: Dynamic ServerName for TLS upstreams (#4836)
- reverseproxy: Make TLS renegotiation optional
- reverseproxy: Add renegotiation param in TLS client (#4784)
- caddyhttp: Log error from CEL evaluation (fix #4832)
- reverseproxy: Correct the
tls_server_namedocs (#4827) - reverseproxy: HTTP 504 for upstream timeouts (#4824)
- caddytls: Make peer certificate verification pluggable (#4389)
- reverseproxy: api: Remove misleading 'healthy' value
- Fix #4822 and fix #4779
- reverseproxy: Add --internal-certs CLI flag #3589 (#4817)
- ci: Fix build caching on Windows (#4811)
- templates: Add
humanizefunction (#4767) - core: Micro-optim in run() (#4810)
- httpcaddyfile: Add
{err.*}placeholder shortcut (#4798) - templates: Documentation consistency (#4796)
- chore: Bump quic-go to v0.27.0 (#4782)
- reverseproxy: Support http1.1>h2c (close #4777) (#4778)
- rewrite: Handle fragment before query (fix #4775) [boo#1201822, CVE-2022-34037]
- httpcaddyfile: Support multiple values for
default_bind(#4774)
- Record
openSUSE-SU-2022:10080-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12220-1 No score
caddy-2.5.2-2.1 on GA media
These are all security issues fixed in the caddy-2.5.2-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12220-1- Updated
- 2026-11-02
Affected products
Affected packages
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-34037 is a high vulnerability (CVSS 7.5) in Caddyserver Caddy, published July 22, 2022. Its validity is disputed. EPSS puts the chance of exploitation in the next 30 days at 1.18%, the 67th percentile. Fixed in caddy 2.5.2-bp154.2.8.1.
References
github.com/caddyserver/caddy/issues/4775
nvd.nist.gov/vuln/detail/CVE-2022-34037
github.com/caddyserver/caddy/commit/693e9b5283e675b56084ecc83d73176cab0ee27c
github.com/advisories/GHSA-m7gr-5w5g-36jf
github.com/CVEProject/cvelistV5/tree/main/cves/2022/34xxx/CVE-2022-34037.json
github.com/caddyserver/caddy
lists.opensuse.org/archives/list/[email protected]/thread/GQURFVT45F4OXOLLGP52CDBSBPTC2M4G
bugzilla.suse.com/1201822
suse.com/security/cve/CVE-2022-34037