CVE-2022-42915

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.

Severity
HIGH
CVSS v3
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
3.676%
chance of exploitation in the next 30 days
higher than 89.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impacttotal
Scored2025-05-07

Timeline

  1. 2022-10-29Published by the CNA00:00 UTC
  2. 2025-05-07CISA SSVC decision recorded921 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
haxx curlfrom 7.77.0 before 7.86.0fixed in 7.86.07.86.0
apple macosfrom 12.0.0 before 12.6.3fixed in 12.6.3from 13.0 before 13.2fixed in 13.212.6.313.2
fedoraproject fedora35no fix listed36no fix listed37no fix listednot listednot listednot listed
netapp h300s_firmware
netapp h410s_firmware
netapp h500s_firmware
netapp h700s_firmware
netapp ontap_9
splunk universal_forwarderfrom 8.2.0 before 8.2.12fixed in 8.2.12from 9.0.0 before 9.0.6fixed in 9.0.69.1.0no fix listed8.2.129.0.6not listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources