← Vulnerability feed

Vulnerability record · CVE-2023-38039 · published 15 September 2023

CVE-2023-38039: curl unbounded HTTP response headers cause heap exhaustion

Haxx · Curl

curl stores incoming HTTP response headers for later access through the libcurl headers API but imposes no limit on their number or size. A malicious server can stream an endless series of headers until curl exhausts heap memory. This affects curl and libcurl consumers across Linux distributions and Windows platforms.

7.5 CVSS 3.1 High EPSS 58% · top 0.9% CWE-770 · Allocation without limits
7.5CVSS 3.1 base score
58%EPSS exploitation probability, 30 days
NoNot in CISA KEV
10Affected product versions listed by NVD
30References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

high priorityNetwork-reachable denial of service with no authentication or interaction required, a high EPSS score and public exploit reference, though no KEV listing or ransomware use.

What it is

curl stores incoming HTTP response headers for later access through the libcurl headers API but imposes no limit on their number or size. A malicious server can stream an endless series of headers until curl exhausts heap memory. This affects curl and libcurl consumers across Linux distributions and Windows platforms.

Impact

An attacker-controlled server can drive the client process to run out of heap memory, causing a denial of service through crash or resource exhaustion. There is no confidentiality or integrity impact per the CVSS vector.

Attack surface

Reached over the network when a curl or libcurl client connects to a malicious or compromised HTTP server; no authentication or user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:N).

Exploitation

Not listed in CISA KEV and no ransomware usage documented, but EPSS is 0.58068 (99th percentile) and a HackerOne reference is tagged Exploit, indicating public exploit material exists.

What to do

  • Upgrade curl and libcurl to a version containing the fix for CVE-2023-38039, and apply vendor updates for Fedora, Windows, Apple, Gentoo and NetApp products listed in the references.
  • Where immediate patching is not possible, restrict or proxy outbound HTTP requests from applications using libcurl so clients cannot reach untrusted servers directly.
  • Set memory and process resource limits (for example ulimit or container memory caps) on services that use libcurl to bound the impact of heap exhaustion.
  • Inventory embedded or statically linked curl/libcurl copies in applications and firmware, since these are often missed by OS package updates.

Detection

  • Monitor curl/libcurl client processes for abnormal memory growth or OOM kills correlated with outbound HTTP connections.
  • Inspect HTTP response traffic for unusually large volumes of header data or an excessive number of header lines from a single server.
  • Alert on repeated crashes or restarts of services that perform HTTP fetches via libcurl.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

10 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://seclists.org/fulldisclosure/2023/Oct/17 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2024/Jan/34 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2024/Jan/37 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2024/Jan/38 Mailing ListThird Party Advisory
https://hackerone.com/reports/2072338 ExploitIssue TrackingPatchThird Party Advisory
https://lists.fedoraproject.org/archives/list/[email protected]/message/5DCZMYODALBLVOXVJEN2LF2ML Mailing List
https://lists.fedoraproject.org/archives/list/[email protected]/message/M6KGKB2JNZVT276JYSKI6FV2V Mailing List
https://lists.fedoraproject.org/archives/list/[email protected]/message/TEAWTYHC3RT6ZRS5OZRHLAIEN Mailing List
https://security.gentoo.org/glsa/202310-12 Third Party Advisory
https://security.netapp.com/advisory/ntap-20231013-0005/ Third Party Advisory
https://support.apple.com/kb/HT214036 Third Party Advisory
https://support.apple.com/kb/HT214057 Third Party Advisory
https://support.apple.com/kb/HT214058 Third Party Advisory
https://support.apple.com/kb/HT214063 Third Party Advisory
https://www.insyde.com/security-pledge/SA-2023064 Third Party Advisory
http://seclists.org/fulldisclosure/2023/Oct/17 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2024/Jan/34 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2024/Jan/37 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2024/Jan/38 Mailing ListThird Party Advisory
https://hackerone.com/reports/2072338 ExploitIssue TrackingPatchThird Party Advisory
https://lists.fedoraproject.org/archives/list/[email protected]/message/5DCZMYODALBLVOXVJEN2LF2ML Mailing List
https://lists.fedoraproject.org/archives/list/[email protected]/message/M6KGKB2JNZVT276JYSKI6FV2V Mailing List
https://lists.fedoraproject.org/archives/list/[email protected]/message/TEAWTYHC3RT6ZRS5OZRHLAIEN Mailing List
https://security.gentoo.org/glsa/202310-12 Third Party Advisory
https://security.netapp.com/advisory/ntap-20231013-0005/ Third Party Advisory
https://support.apple.com/kb/HT214036 Third Party Advisory
https://support.apple.com/kb/HT214057 Third Party Advisory
https://support.apple.com/kb/HT214058 Third Party Advisory
https://support.apple.com/kb/HT214063 Third Party Advisory
https://www.insyde.com/security-pledge/SA-2023064 Third Party Advisory

Track CVE-2023-38039 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-33824Double free in Windows IKE Extension enables remote code executionA double free flaw (CWE-415) exists in the Windows IKE Extension, reachable over the network by an unauthenticated attacker. Successful exploitation …KEVEPSS 1.6%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2021-44026Roundcube Webmail SQL injection via search parametersRoundcube Webmail before 1.3.17 and 1.4.x before 1.4.12 is prone to SQL injection through the search or search_params input. The flaw is remotely rea…KEVEPSS 70%analysed9.8CVE-2021-42013Apache HTTP Server path traversal and RCE via incomplete fixThe fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient, leaving a path traversal flaw that lets attackers map URLs to files outside…KEVEPSS 100%analysed9.8CVE-2021-41773Apache HTTP Server 2.4.49 path traversal and RCEA path normalization flaw introduced in Apache HTTP Server 2.4.49 lets attackers map URLs to files outside directories configured by Alias-like direc…KEVEPSS 100%analysed9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed9.8CVE-2021-1871Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions. It affects macOS Big Sur, Catalina, Mojave, iOS and iPadOS, and a remote at…KEVEPSS 7.0%analysed

Source: NIST National Vulnerability Database (record CVE-2023-38039), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.