VDB

CVE-2022-42915

CVE-2022-42915 PUBLISHED CVSS 8.1 HIGH

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.

PackageEcosystemFixed in
curlAmazon Linux7.87.0-2.amzn2023.0.2
libcurl-minimalAmazon Linux7.87.0-2.amzn2023.0.2
libcurlAmazon Linux7.79.1-7.amzn2.0.1
curlhaxx7.86.0
universal_forwardersplunk9.0.6, 8.2.12
SIPLUS S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPSiemens3.1.5
SIMATIC S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5

Risk scores

CVSS 3.1
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
amazon:2023curl0
amazon:2023libcurl-minimal0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2libcurl0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
n/an/a*
alpinecurl0, 0, 0
amazon:2023libcurl-devel0
amazon:2023libcurl0
amazon:2libcurl-devel0
amazon:2023curl-minimal0
amazon:2curl0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›