CVE-2022-42915 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 pro...
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
26 packages: 20 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| netapp h300s firmware | All versions | No fix listed | No fix yet |
| netapp h410s firmware | All versions | No fix listed | No fix yet |
| netapp h500s firmware | All versions | No fix listed | No fix yet |
| netapp h700s firmware | All versions | No fix listed | No fix yet |
| netapp ONTAP 9 | All versions | No fix listed | No fix yet |
| alpine/curl(Alpine v3.15) | >= 7.77.0, < 7.80.0-r4 | 7.80.0-r4 | Fixed |
| alpine/curl(Alpine v3.16) | >= 7.77.0, < 7.83.1-r4 | 7.83.1-r4 | Fixed |
| alpine/curl(Alpine v3.17) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.18) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.19) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.20) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.21) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.22) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.23) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| alpine/curl(Alpine v3.24) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 | Fixed |
| apple macos | >= 12.0.0, < 12.6.3; >= 13.0, < 13.2 | 12.6.3, 13.2 | Fixed |
| debian/curl(Debian 12) | < 7.86.0-1 | 7.86.0-1 | Fixed |
| debian/curl(Debian 13) | < 7.86.0-1 | 7.86.0-1 | Fixed |
| debian/curl(Debian 14) | < 7.86.0-1 | 7.86.0-1 | Fixed |
| haxx curl | >= 7.77.0, < 7.86.0 | 7.86.0 | Fixed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 | Fixed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 | Fixed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 | Fixed |
| Splunk Universal Forwarder | = 9.1.0; >= 8.2.0, < 8.2.12; >= 9.0.0, < 9.0.6 | 8.2.12, 9.0.6 | Fixed |
| ubuntu/curl(Ubuntu 22.04) | < 7.81.0-1ubuntu1.6; = 7.74.0-1.3ubuntu2; = 7.74.0-1.3ubuntu3; = 7.80.0-3 +5 more | 7.81.0-1ubuntu1.6 | Fixed |
| fedoraproject fedora | = 35; = 36; = 37 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | V3.1.5 |
| ubuntu/curl(Ubuntu:22.04) | < 7.81.0-1ubuntu1.6 | 7.81.0-1ubuntu1.6 |
| haxx curl | >= 7.77.0, < 7.86.0 | 7.86.0 |
| fedoraproject fedora | = 35 | No fix listed |
| fedoraproject fedora | = 36 | No fix listed |
| fedoraproject fedora | = 37 | No fix listed |
| netapp h300s firmware | All versions | No fix listed |
| netapp h500s firmware | All versions | No fix listed |
| netapp h700s firmware | All versions | No fix listed |
| netapp h410s firmware | All versions | No fix listed |
| netapp ONTAP 9 | All versions | No fix listed |
| apple macos | >= 12.0.0, < 12.6.3 | 12.6.3 |
| apple macos | >= 13.0, < 13.2 | 13.2 |
| Splunk Universal Forwarder | >= 8.2.0, < 8.2.12 | 8.2.12 |
| Splunk Universal Forwarder | >= 9.0.0, < 9.0.6 | 9.0.6 |
| Splunk Universal Forwarder | = 9.1.0 | No fix listed |
| debian/curl(Debian:12) | < 7.86.0-1 | 7.86.0-1 |
| debian/curl(Debian:14) | < 7.86.0-1 | 7.86.0-1 |
| debian/curl(Debian:13) | < 7.86.0-1 | 7.86.0-1 |
| ubuntu/curl(Ubuntu:22.04) | = 7.74.0-1.3ubuntu2 | No fix listed |
| ubuntu/curl(Ubuntu:22.04) | = 7.74.0-1.3ubuntu3 | No fix listed |
| ubuntu/curl(Ubuntu:22.04) | = 7.80.0-3 | No fix listed |
| ubuntu/curl(Ubuntu:22.04) | = 7.81.0-1 | No fix listed |
Show 14 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/curl(Ubuntu:22.04) | = 7.81.0-1ubuntu1.1 | No fix listed |
| ubuntu/curl(Ubuntu:22.04) | = 7.81.0-1ubuntu1.2 | No fix listed |
| ubuntu/curl(Ubuntu:22.04) | = 7.81.0-1ubuntu1.3 | No fix listed |
| ubuntu/curl(Ubuntu:22.04) | = 7.81.0-1ubuntu1.4 | No fix listed |
| alpine/curl(Alpine:v3.15) | >= 7.77.0, < 7.80.0-r4 | 7.80.0-r4 |
| alpine/curl(Alpine:v3.16) | >= 7.77.0, < 7.83.1-r4 | 7.83.1-r4 |
| alpine/curl(Alpine:v3.17) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.18) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.19) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.20) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.21) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.22) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.23) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 |
| alpine/curl(Alpine:v3.24) | >= 7.77.0, < 7.86.0-r0 | 7.86.0-r0 |
References
- Debian Security Tracker CVE-2022-42915 vendor-advisory
- curl.se issue-tracking vendor-advisory
- FEDORA-2022-01ffde372c mailing-list third-party-advisory vendor-advisory
- FEDORA-2022-39688a779d mailing-list third-party-advisory vendor-advisory
- FEDORA-2022-e9d65906c4 mailing-list third-party-advisory vendor-advisory
- security.netapp.com third-party-advisory
- GLSA-202212-01 third-party-advisory vendor-advisory
- support.apple.com third-party-advisory
- support.apple.com third-party-advisory
- 20230123 APPLE-SA-2023-01-23-5 macOS Monterey 12.6.3 mailing-list third-party-advisory
- 20230123 APPLE-SA-2023-01-23-4 macOS Ventura 13.2 mailing-list third-party-advisory
- cert-portal.siemens.com
- cert-portal.siemens.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-5702-1 vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- ENISA EUVD EUVD-2022-45972 third-party-advisory