7.5high
HTTP headers eat all memory
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 56.2% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- CURL-CVE-2023-38039
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
| Product or package | Versions | Reported by |
|---|---|---|
| curl curl | from 8.3.0 before 8.3.0 Not affected: from 7.84.0 before 7.84.0 | CVE List |
| https://github.com/curl/curl.git | from 7.84.0 before 8.3.0, from 4d94fac9f0d1dd02b8308291e4c47651142dc28b before 3ee79c1674fd6f99e8efca52cd7510e08b766770 | curl |
| haxx curl | from 7.84.0 before 8.3.0 | NVD |
| fedoraproject fedora | 37, 38, 39 | NVD |
| microsoft windows_10_1809 | before 10.0.17763.5122 | NVD |
| microsoft windows_10_21h2 | before 10.0.19044.3693 | NVD |
| microsoft windows_10_22h2 | before 10.0.19045.3693 | NVD |
| microsoft windows_11_21h2 | before 10.0.22000.2600 | NVD |
| microsoft windows_11_22h2 | before 10.0.22621.2715 | NVD |
| microsoft windows_11_23h2 | before 10.0.22631.2715 | NVD |
| microsoft windows_server_2019 | before 10.0.17763.5122 | NVD |
| microsoft windows_server_2022 | before 10.0.20348.2113 | NVD |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| curl | medium rating | |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
curl
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 on the size or quantity of headers it would accept in a response, allowing a malicious server to stream an endless series of headers to a client and eventually cause curl to run out of heap memory.
NVD (es)
Cuando curl recupera una respuesta HTTP, almacena los encabezados entrantes para que se pueda acceder a ellos más tarde a través de la API de encabezados libcurl. Sin embargo, curl no tenía un límite en cuanto a la cantidad o el tamaño de encabezados que aceptaría en una respuesta, lo que permitía que un servidor malicioso transmitiera una serie interminable de encabezados y, finalmente, provocara que curl se quedara sin memoria dinámica.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-38039 changed 2025-12-02 | CVE Terms of Use |
| curl | CURL-CVE-2023-38039 changed 2026-10-25 | MIT |
| NVD | CVE-2023-38039 changed 2026-06-17 | Public domain |