CVE-2022-42915 Use after free in n/a
A double free vulnerability in curl allows attackers to cause denial of service or potentially execute code when using specific URL schemes with an HTTP proxy.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-42915?
CVE-2022-42915 is a high-severity use after free vulnerability in Apple Macos, published on 29 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-415
Which versions are affected by CVE-2022-42915?
It affects 9 products.
Products include Apple Macos, Fedoraproject Fedora, Haxx Curl, Netapp H300s Firmware, Netapp H410s Firmware, Netapp H500s Firmware and 3 more.
How do I fix CVE-2022-42915?
Upgrade to a fixed version.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2022-42915 being exploited?
There is no known exploitation of CVE-2022-42915 in the wild and no public exploit code.
Other vulnerabilities in Apple Macos
Sources
Also known as ALPINE-CVE-2022-42915, AZL-11368, AZL-38185, CLEANSTART-2026-JO97446, CURL-CVE-2022-42915, DEBIAN-CVE-2022-42915 and 3 more.