curl: Missing Release of Resource after Effective Lifetime
CVE-2024-2398 is a high-severity missing release of resource after effective lifetime vulnerability in curl, with a CVSS 3.1 base score of 8.6 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected curl versions: 8.6.0 and earlier; 8.5.0 and earlier; 8.4.0 and earlier, and others listed below. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 36.1% chance of exploitation within 30 days, which is in the top 1.5% of all scored CVEs.
EPSS places it among the vulnerabilities most likely to be exploited soon.
What to do
- Update SIMATIC S7-1500 CPU 1518-4 PN/DP MFP to V3.1.5 or a later version.
- Update SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP to V3.1.5 or a later version.
- Update SINEMA Remote Connect Client to V3.2 SP2 or a later version.
- Read the advisory on curl.se for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Curl | curl | 8.6.0 and earlier; 8.5.0 and earlier; 8.4.0 and earlier; 8.3.0 and earlier; 8.2.1 and earlier; 8.2.0 and earlier; 8.1.2 and earlier; 8.1.1 and earlier; and 32 more ranges | Not stated |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SINEMA Remote Connect Client | before V3.2 SP2 | V3.2 SP2 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 up to, but not including, V3.1.5 | V3.1.5 |
| Siemens | SINEC NMS | before V3.0 SP1 | V3.0 SP1 |
| Apple | macOS | before 12.7.6; 13.0 up to, but not including, 13.6.8; 14.0 up to, but not including, 14.6 | 12.7.6, 13.6.8, 14.6 |
| Fedora Project | Fedora | 39; 40 | Not stated |
| NetApp | Active Iq Unified Manager | Not specified in the record | Not stated |
| NetApp | Ontap Select Deploy Administration Utility | Not specified in the record | Not stated |
| NetApp | Brocade Fabric Operating System | Not specified in the record | Not stated |
| NetApp | Bootstrap OS | Not specified in the record | Not stated |
| NetApp | H300s Firmware | Not specified in the record | Not stated |
| NetApp | H410s Firmware | Not specified in the record | Not stated |
| NetApp | H500s Firmware | Not specified in the record | Not stated |
| NetApp | H610c Firmware | Not specified in the record | Not stated |
| NetApp | H610s Firmware | Not specified in the record | Not stated |
| NetApp | H615c Firmware | Not specified in the record | Not stated |
| NetApp | H700s Firmware | Not specified in the record | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- LowLimited modification of data is possible.
- Availability
- LowPerformance or availability is reduced.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L. Scored by CISA (ADP).
Official description
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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Missing Release of Resource after Effective Lifetime
The product does not release a resource after its effective lifetime has ended, i.e., after the resource is no longer needed.
How developers prevent this class of flaw
- Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, languages such as Java, Ruby, and Lisp perform automatic garbage collection that releases memory for objects that have been deallocated.
- It is good practice to be responsible for freeing all resources you allocate and to be consistent with how and where you free resources in a function. If you allocate resources that you intend to free upon completion of the function, you must be sure to free the resources at all exit points for that function including error conditions.
More Missing Release of Resource after Effective Lifetime vulnerabilities (CWE-772)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- curl.se/docs/CVE-2024-2398.html
- curl.se/docs/CVE-2024-2398.json
- support.apple.com/kb/HT214118Release Notes
- support.apple.com/kb/HT214119Release Notes
- support.apple.com/kb/HT214120Release Notes
Third-party and government advisories
- seclists.org/fulldisclosure/2024/Jul/18Mailing List, Third Party Advisory
- seclists.org/fulldisclosure/2024/Jul/19Mailing List, Third Party Advisory
- seclists.org/fulldisclosure/2024/Jul/20Mailing List, Third Party Advisory
- openwall.com/lists/oss-security/2024/03/27/3Mailing List, Third Party Advisory
- lists.fedoraproject.org/archives/list/[email protected]/message/2D44YLAUFJU6BZ4XFG2FYV…Third Party Advisory
- lists.fedoraproject.org/archives/list/[email protected]/message/GMD6UYKCCRCYETWQZUJ65Z…Third Party Advisory
- security.netapp.com/advisory/ntap-20240503-0009/Third Party Advisory
Technical write-ups (may include proof of concept)
- hackerone.com/reports/2402845Exploit, Issue Tracking, Third Party Advisory
Other references
Other vulnerabilities in curl
- 7.5 High severity
- 9.1 Critical severity
- 7.5 High severity
- 7.5 High severity
- 8.1 High severity
- 9.1 Critical severity
Recent Missing Release of Resource after Effective Lifetime vulnerabilities
- 7.5 High severity
- 8.6 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 8.6 High severity
Spotted an error? Tell us.