Vulnerabilities

CVE-2022-42915

High 8.1 CVSS 3.1

Description

curl before 7.86.0 has a double free. If curl is told to use an HTTP proxy for a transfer with a non-HTTP(S) URL, it sets up the connection to the remote server by issuing a CONNECT request to the proxy, and then tunnels the rest of the protocol through. An HTTP proxy might refuse this request (HTTP proxies often only allow outgoing connections to specific port numbers, like 443 for HTTPS) and instead return a non-200 status code to the client. Due to flaws in the error/cleanup handling, this could trigger a double free in curl if one of the following schemes were used in the URL for the transfer: dict, gopher, gophers, ldap, ldaps, rtmp, rtmps, or telnet. The earliest affected version is 7.77.0.

Description as published by the source, in English.

Key facts

Published
2022-10-29
Last modified
2026-10-14
Assigned by
cve@mitre.org
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
2.9 % higher than 86 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Apple Macos ≥ 12.0.0, < 12.6.3 Affected
Apple Macos ≥ 13.0, < 13.2 Affected
Fedoraproject Fedora 35 Affected
Fedoraproject Fedora 36 Affected
Fedoraproject Fedora 37 Affected
Haxx Curl ≥ 7.77.0, < 7.86.0 Affected
Netapp H300s all versions listed Not affected
Netapp H300s Firmware all versions listed Affected
Netapp H410s all versions listed Not affected
Netapp H410s Firmware all versions listed Affected
Netapp H500s all versions listed Not affected
Netapp H500s Firmware all versions listed Affected
Netapp H700s all versions listed Not affected
Netapp H700s Firmware all versions listed Affected
Netapp Ontap 9 all versions listed Affected
Splunk Universal Forwarder 9.1.0 Affected
Splunk Universal Forwarder ≥ 8.2.0, < 8.2.12 Affected
Splunk Universal Forwarder ≥ 9.0.0, < 9.0.6 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities