Missing Release of Resource after Effective Lifetime Affecting libcurl-minimal package, versions <0:8.5.0-1.amzn2023.0.4


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.05% (19th 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 IDSNYK-AMZN2023-LIBCURLMINIMAL-6728912
  • published30 Apr 2024
  • disclosed27 Mar 2024

Introduced: 27 Mar 2024

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

How to fix?

Upgrade Amazon-Linux:2023 libcurl-minimal to version 0:8.5.0-1.amzn2023.0.4 or higher.
This issue was patched in ALAS2023-2024-596.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libcurl-minimal package and not the libcurl-minimal package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

When an application tells libcurl it wants to allow HTTP/2 server push, and the amount of received headers for the push surpasses the maximum allowed limit (1000), libcurl aborts the server push. When aborting, libcurl inadvertently does not free all the previously allocated headers and instead leaks the memory. Further, this error condition fails silently and is therefore not easily detected by an application.

CVSS Scores

version 3.1