Uncontrolled Resource Consumption ('Resource Exhaustion') Affecting curl package, versions [7.44.0,8.7.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Uncontrolled Resource Consumption ('Resource Exhaustion') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-CURL-6501626
  • published27 Mar 2024
  • disclosed27 Mar 2024
  • creditw0x42

Introduced: 27 Mar 2024

CVE-2024-2398  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade curl to version 8.7.0 or higher.

Overview

curl is a command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP. libcurl offers a myriad of powerful features.

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') due to improper handling of HTTP/2 server push when the number of received headers exceeds the maximum allowed limit (1000). This vulnerability can be exploited when a server sends PUSH_PROMISE frames with an excessive amount of headers, which might result in multiple megabytes of memory leaked per response.

This issue occurs silently without alerting the application, making it difficult to detect.

CVSS Scores

version 3.1