PT-2022-5377 · Curl+5 · Curl+5

Published

2022-10-26

·

Updated

2026-05-18

·

CVE-2022-42915

CVSS v2.0

10

High

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions curl versions 7.77.0 through 7.85.0
Description The issue is related to a double free in curl when using an HTTP proxy for a transfer with a non-HTTP(S) URL. If curl is told to use an HTTP proxy, it sets up the connection by issuing a CONNECT request to the proxy and then tunnels the rest of the protocol through. An HTTP proxy might refuse this request and return a non-200 status code, which could trigger a double free in curl if one of the following schemes is used in the URL: dict, gopher, gophers, ldap, ldaps, rtmp, rtmps, or telnet.
Recommendations For versions 7.77.0 through 7.85.0, update to version 7.86.0 to resolve the issue. As a temporary workaround, consider avoiding the use of HTTP proxies with non-HTTP(S) URLs or restricting the use of the vulnerable schemes until a patch is available.

Fix

Double Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2022-2989
ALT-PU-2022-3017
ALT-PU-2022-3042
AZL-11368
AZL-38185
BDU:2022-06691
CLEANSTART-2026-AY18527
CLEANSTART-2026-BW46578
CLEANSTART-2026-DI23929
CLEANSTART-2026-LQ42192
CLEANSTART-2026-OF85770
CVE-2022-42915
JLSEC-2026-398
OESA-2022-2041
OPENSUSE-SU-2024:12447-1
RHSA-2022:8840
USN-5702-1

Affected Products

Alt Linux
Linuxmint
Apple Macos
Red Os
Ubuntu
Curl