← 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 56% · top 0.9% CWE-770 · Allocation without limits
7.5CVSS 3.1 base score
56%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/package-announce@lists.fedoraproject.org/message/5DCZMYODALBLVOXVJEN2LF2ML Mailing List
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M6KGKB2JNZVT276JYSKI6FV2V Mailing List
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/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/package-announce@lists.fedoraproject.org/message/5DCZMYODALBLVOXVJEN2LF2ML Mailing List
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M6KGKB2JNZVT276JYSKI6FV2V Mailing List
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/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

Related vulnerabilities

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

8.8CVE-2023-21674Windows ALPC use-after-free privilege escalationCVE-2023-21674 is a use-after-free (CWE-416) in the Windows Advanced Local Procedure Call (ALPC) subsystem that allows elevation of privilege. It aff…KEVEPSS 34%analysed8.8CVE-2022-41128Windows Scripting Languages out-of-bounds write allows remote code executionCVE-2022-41128 is an out-of-bounds write (CWE-787) in Windows Scripting Languages that leads to remote code execution. Microsoft rates it 8.8 HIGH wi…KEVEPSS 25%analysed8.8CVE-2022-26923Microsoft Active Directory Domain Services certificate validation privilege escalationActive Directory Domain Services fails to properly validate certificate attributes, allowing a low-privileged domain user to obtain a certificate tha…KEVEPSS 84%analysed8.8CVE-2021-40444Microsoft MSHTML remote code execution via malicious Office documentCVE-2021-40444 is a remote code execution flaw in the MSHTML browser rendering engine on Microsoft Windows. An attacker can embed a malicious ActiveX…KEVEPSS 98%analysed8.8CVE-2021-34527Windows Print Spooler privileged file operation RCE (PrintNightmare)The Windows Print Spooler service improperly performs privileged file operations, allowing an attacker to execute arbitrary code as SYSTEM. This is t…KEVEPSS 100%analysed8.8CVE-2020-1020Windows Adobe Type Manager Library font parsing out-of-bounds write RCEMicrosoft Windows Adobe Type Manager Library mishandles a specially crafted multi-master font in Adobe Type 1 PostScript format, causing an out-of-bo…KEVEPSS 65%analysed8.8CVE-2019-0903Windows GDI memory handling remote code executionWindows Graphics Device Interface (GDI) mishandles objects in memory, allowing remote code execution. The record gives no root-cause detail beyond th…KEVEPSS 22%analysed8.1CVE-2020-0601Windows CryptoAPI ECC certificate validation spoofing flawWindows CryptoAPI (Crypt32.dll) improperly validates Elliptic Curve Cryptography certificates, allowing a spoofed code-signing certificate to be trus…KEVEPSS 89%analysed

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