CURL-CVE-2022-42915

See a problem?
Source
https://curl.se/docs/CVE-2022-42915.html
Import Source
https://curl.se/docs/CURL-CVE-2022-42915.json
JSON Data
https://api.osv.dev/v1/vulns/CURL-CVE-2022-42915
Aliases
Published
2022-10-26T08:00:00Z
Modified
2024-01-16T03:42:49.812154Z
Summary
HTTP proxy double free
Details

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 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 response 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, telnet

References
Credits
    • Trail of Bits - FINDER
    • Daniel Stenberg - REMEDIATION_DEVELOPER

Affected packages

Git / github.com/curl/curl.git

Affected ranges

Type
SEMVER
Events
Introduced
7.77.0
Fixed
7.86.0
Type
GIT
Repo
https://github.com/curl/curl.git
Events

Affected versions

7.*

7.77.0
7.78.0
7.79.0
7.79.1
7.80.0
7.81.0
7.82.0
7.83.0
7.83.1
7.84.0
7.85.0