CVE-2022-42915
Reported by mitre · Published October 29, 2022
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 versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| curl | Amazon Linux | 7.87.0-2.amzn2023.0.2 |
| libcurl-minimal | Amazon Linux | 7.87.0-2.amzn2023.0.2 |
| libcurl | Amazon Linux | 7.79.1-7.amzn2.0.1 |
| curl | haxx | 7.86.0 |
| universal_forwarder | splunk | 9.0.6, 8.2.12 |
| SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Siemens | 3.1.5 |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2023 | curl | 0 |
| amazon:2023 | libcurl-minimal | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | libcurl | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| n/a | n/a | * |
| alpine | curl | 0, 0, 0 |
| amazon:2023 | libcurl-devel | 0 |
| amazon:2023 | libcurl | 0 |
| amazon:2 | libcurl-devel | 0 |
| amazon:2023 | curl-minimal | 0 |
| amazon:2 | curl | 0 |
Timeline
- Oct 29, 2022 CVE Published
- Oct 30, 2022 EPSS Score (30 in total, the first dated here)
- Nov 26, 2022 PoC Published (2 in total, the first dated here)
- Jun 2, 2026 Security Advisory (11 in total, the first dated here)
- Jun 14, 2026 Coalition ESS Score
- Jul 2, 2026 Distribution Patch (8 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-42915
vulnetix vdb fixes CVE-2022-42915
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-42915/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-01ffde372c vendor-advisory
- FEDORA-2022-39688a779d vendor-advisory
- FEDORA-2022-e9d65906c4 vendor-advisory
- GLSA-202212-01 vendor-advisory
- 20230123 APPLE-SA-2023-01-23-5 macOS Monterey 12.6.3 mailing-list
- 20230123 APPLE-SA-2023-01-23-4 macOS Ventura 13.2 mailing-list
- https://cert-portal.siemens.com/productcert/html/ssa-892048.html url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url