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) 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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP4 | caddy | 2.5.2-bp154.2.8.1 | openSUSE-SU-2022:10080-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | caddy | 2.5.2-2.1 | openSUSE-SU-2024:12220-1 |
| openSUSE Leap 15.4 | caddy | 2.5.2-bp154.2.8.1 | openSUSE-SU-2022:10080-1 |
Advisories 2
- openSUSE-SU-2024:12220-1 caddy-2.5.2-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:10080-1 Security update for caddy SUSE / openSUSE Security Updates · Feb 4, 2026