Description
libcurl 7.49.0 to and including 7.57.0 contains an out bounds read in code handling HTTP/2 trailers. It was reported (https://github.com/curl/curl/pull/2231) that reading an HTTP/2 trailer could mess up future trailers since the stored size was one byte less than required. The problem is that the code that creates HTTP/1-like headers from the HTTP/2 trailer data once appended a string like `:` to the target buffer, while this was recently changed to `: ` (a space was added after the colon) but the following math wasn't updated correspondingly. When accessed, the data is read out of bounds and causes either a crash or that the (too large) data gets passed to client write. This could lead to a denial-of-service situation or an information disclosure if someone has a service that echoes back or uses the trailers for something.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | curl | 7.58.0-1 | — |
| Debian 13 | curl | 7.58.0-1 | — |
| Debian 12 | curl | 7.58.0-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | curl | 7.47.0-1ubuntu2.6 | USN-3554-1 |
| Ubuntu 14.04 LTS | curl | 7.35.0-1ubuntu2.14 | USN-3554-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | curl | 7.79.1-1.1 | openSUSE-SU-2024:10582-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.7 | curl | 7.58.0-r0 | — |
| Alpine v3.6 | curl | 7.58.0-r0 | — |
| Alpine v3.5 | curl | 7.58.0-r0 | — |
| Alpine v3.4 | curl | 7.58.0-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | curl +2 | 7.55.1-9.amzn2.0.1 | ALAS2-2018-951 |
Advisories 6
- USN-3554-1 curl vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- openSUSE-SU-2024:10582-1 curl-7.79.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-0890 libcurl: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 29, 2025
- VDE-2019-009 PHOENIX CONTACT: Multiple Vulnerabilities in AXC F 2152 CERT@VDE · May 22, 2025
- ICSA-19-155-01 PHOENIX CONTACT PLCNext AXC F 2152 CISA ICS & IT advisories · Jun 4, 2019
- ALAS2-2018-951 Important: curl security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 5, 2018
References
- 1040273 vdb-entry
- USN-3554-1 vendor-advisory
- DSA-4098 vendor-advisory
- https://curl.haxx.se/docs/adv_2018-824a.html
- https://github.com/curl/curl/pull/2231
- RHSA-2019:1543 vendor-advisory