CVE-2022-42915

curl: curl before 7.86.0 has a double free

CVE-2022-42915 is fixed in 13 products on 1 platform, first by curl 7.81.0-1ubuntu1.6, released October 26, 2022. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
8.1
high
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0365
89th percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
curl · Debian 12.15 (bookworm) 7.86.0-1 DEBIAN-CVE-2022-42915 Oct 29, 2022
curl · Debian 13.5 (trixie) 7.86.0-1 DEBIAN-CVE-2022-42915 Oct 29, 2022
curl · Debian 14 7.86.0-1 DEBIAN-CVE-2022-42915 Oct 29, 2022
curl · Ubuntu 22.04.1 LTS (jammy) 7.81.0-1ubuntu1.6 curl 7.81.0-1ubuntu1.6 Oct 26, 2022
curl · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
curl-debuginfo · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
curl-debugsource · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
curl-minimal · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
curl-minimal-debuginfo · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
libcurl · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
libcurl-debuginfo · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
libcurl-devel · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
libcurl-minimal · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
libcurl-minimal-debuginfo · amzn 2023 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083 Feb 17, 2023
libcurl3-gnutls · Ubuntu 22.04.1 LTS (jammy) 7.81.0-1ubuntu1.6 libcurl3-gnutls 7.81.0-1ubuntu1.6 Oct 26, 2022
libcurl3-nss · Ubuntu 22.04.1 LTS (jammy) 7.81.0-1ubuntu1.6 libcurl3-nss 7.81.0-1ubuntu1.6 Oct 26, 2022
libcurl4 · Ubuntu 22.04.1 LTS (jammy) 7.81.0-1ubuntu1.6 libcurl4 7.81.0-1ubuntu1.6 Oct 26, 2022

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.