CVE-2022-42915
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedcurl 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidencecurl before 7.86.0 contains a double free vulnerability in its HTTP proxy handling. When curl uses an HTTP proxy for non-HTTP(S) URL schemes (dict, gopher, gophers, ldap, ldaps, rtmp, rtmps, or telnet) and the proxy rejects the CONNECT request with a non-200 status code, flawed error/cleanup handling triggers a double free condition.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 7.77.0, < 7.86.0= 35= 36= 37all versionsall versionsall versionsall versionsall versions>= 12.0.0, < 12.6.3>= 13.0, < 13.2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed curl versionRun 'curl --version' or check the curl package version using the system's package manager (dpkg, rpm, yum, brew, etc.)Affected if Version is 7.77.0 through 7.85.x (any version >= 7.77.0 but < 7.86.0)
-
Verify HTTP proxy environment variablesCheck for HTTP_PROXY, http_proxy, HTTPS_PROXY, https_proxy, ALL_PROXY, or all_proxy environment variables set in the shell or system-wideAffected if Any HTTP proxy environment variable is set and exported
-
Identify non-HTTP(S) URL scheme usage through proxyReview application behavior, logs, or code that makes curl requests to non-HTTP(S) protocols: dict, gopher, gophers, ldap, ldaps, rtmp, rtmps, or telnetAffected if Applications or scripts use curl with any of these URL schemes while an HTTP proxy is configured
-
Check proxy rejection scenarioWhen possible, monitor or simulate a CONNECT request rejection (non-200 response) from the HTTP proxy for non-HTTP(S) URL schemes to confirm the flawed error path is triggeredAffected if The proxy rejects the CONNECT request with any non-200 status code while handling non-HTTP(S) scheme requests
A system is affected only if curl version is >= 7.77.0 and < 7.86.0 AND an HTTP proxy is configured AND non-HTTP(S) URL schemes (dict, gopher, gophers, ldap, ldaps, rtmp, rtmps, telnet) are accessed through that proxy, with the proxy potentially rejecting the CONNECT request.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped7.86.012.6.313.2
Upgrade curl to version 7.86.0 or later. As a temporary workaround, avoid using HTTP proxies with non-HTTP(S) URL schemes until the upgrade is applied.
curl >= 7.86.0
- Identify the current curl version by running `curl --version`
- For curl: upgrade to version 7.86.0 or later by obtaining the latest release from https://curl.se/download/ or using your system's package manager
- For Fedora systems: run `sudo dnf update curl` to apply vendor patches
- For macOS 12.x: update to version 12.6.3 or later via Software Update
- For macOS 13.x: update to version 13.2 or later via Software Update
- Verify the fix by running `curl --version` and confirming the version is >= 7.86.0
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,880.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2022-42915 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2022-42915 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data