Vulnerability · Published Sep 15, 2023 · Assigned by hackerone
CVE-2023-38039
High 7.5
In plain English
A high-severity resource allocation without limits in curl from curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 56.2% (higher than 99.1% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
When curl retrieves an HTTP response, it stores the incoming headers so that they can be accessed later via the libcurl headers API. However, curl did not have a limit in how many or how large headers it would accept in a response, allowing a malicious server to stream an endless series of headers and eventually cause curl to run out of heap memory.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | curl | 8.3.0-r0 | ALPINE-CVE-2023-38039 |
| Alpine:v3.21 | curl | 8.3.0-r0 | ALPINE-CVE-2023-38039 |
| Alpine:v3.22 | curl | 8.3.0-r0 | ALPINE-CVE-2023-38039 |
| Alpine:v3.23 | curl | 8.3.0-r0 | ALPINE-CVE-2023-38039 |
| Alpine:v3.24 | curl | 8.3.0-r0 | ALPINE-CVE-2023-38039 |
| Debian:12 | curl | 7.88.1-10+deb12u3 | DEBIAN-CVE-2023-38039 |
| Debian:13 | curl | 8.3.0-1 | DEBIAN-CVE-2023-38039 |
| Debian:14 | curl | 8.3.0-1 | DEBIAN-CVE-2023-38039 |
| Ubuntu:24.04:LTS | curl | 8.2.1-1ubuntu3 | UBUNTU-CVE-2023-38039 |
Affected products (as reported)
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://hackerone.com/reports/2072338
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEAWTYHC3RT6ZRS5OZRHLAIENVN6CCIS/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5DCZMYODALBLVOXVJEN2LF2MLANEYL4F/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M6KGKB2JNZVT276JYSKI6FV2VFJUGDOJ/
- https://security.gentoo.org/glsa/202310-12
- https://security.netapp.com/advisory/ntap-20231013-0005/
- http://seclists.org/fulldisclosure/2023/Oct/17
- https://support.apple.com/kb/HT214036
- https://www.insyde.com/security-pledge/SA-2023064
- https://support.apple.com/kb/HT214063
- https://support.apple.com/kb/HT214057
- https://support.apple.com/kb/HT214058
- http://seclists.org/fulldisclosure/2024/Jan/34
- http://seclists.org/fulldisclosure/2024/Jan/37
- http://seclists.org/fulldisclosure/2024/Jan/38