Skip to content
OpenAdvisories
High · 8.1 CVE-2022-42915 EUVD-2022-45972GHSA-98w6-hw73-ph8m

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…

Published Oct 29, 2022 · Updated Oct 14, 2026 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl 7.86.0-1 —
Debian 13 curl 7.86.0-1 —
Debian 12 curl 7.86.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS curl 7.81.0-1ubuntu1.6 USN-5702-1
Ubuntu 20.04 LTS curl 7.68.0-1ubuntu2.14 USN-5702-1
Ubuntu 18.04 LTS curl 7.58.0-2ubuntu3.21 USN-5702-1
ReleasePackageFixed inAdvisory
Red Hat JBoss Core Services 1 jbcs-httpd24-curl +2 7.86.0-2.el7jbcs RHSA-2022:8840
Red Hat JBoss Core Services 1 jbcs-httpd24-httpd +6 2.4.51-37.el7jbcs RHSA-2022:8840
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_http2 1.15.19-20.el7jbcs RHSA-2022:8840
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_ssl +1 1:2.4.51-37.el7jbcs RHSA-2022:8840
Red Hat JBoss Core Services 1 jbcs-httpd24-openssl +4 1:1.1.1k-13.el7jbcs RHSA-2022:8840
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 7.86.0-1.1 openSUSE-SU-2024:12447-1
ReleasePackageFixed inAdvisory
Alpine v3.24 curl 7.86.0-r0 —
Alpine v3.23 curl 7.86.0-r0 —
Alpine v3.22 curl 7.86.0-r0 —
Alpine v3.21 curl 7.86.0-r0 —
Alpine v3.20 curl 7.86.0-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 curl 7.86.0-r0 —
Alpine v3.18 curl 7.86.0-r0 —
Alpine v3.17 curl 7.86.0-r0 —
Alpine v3.16 curl 7.83.1-r4 —
Alpine v3.15 curl 7.80.0-r4 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 curl +4 7.87.0-2.amzn2023.0.2 ALAS2023-2023-083
Amazon Linux 2 curl +2 7.79.1-7.amzn2.0.1 ALAS2-2022-1882

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 tensorflow 2.16.1-1 —
Azure Linux 2 (CBL-Mariner) curl 7.86.0-1 —

Advisories 21

References