cve.bz

CVE-2022-42915 Double Free

8.1 highEPSS 3.7%

High (8.1). EPSS 3.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.7% (unchanged from 3.7% a week ago; 2.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-05-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-415 Double Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-42915 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-42915?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-42915?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-42915 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2022-42915

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2022-42915](https://cve.bz/cve/badge/CVE-2022-42915.svg)](https://cve.bz/cve/CVE-2022-42915)

HTML:

<a href="https://cve.bz/cve/CVE-2022-42915"><img src="https://cve.bz/cve/badge/CVE-2022-42915.svg" alt="CVE-2022-42915"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
haxx:curlfrom 7.77.0 before 7.86.0
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37
apple:macosfrom 12.0.0 before 12.6.3
apple:macosfrom 13.0 before 13.2
splunk:universal_forwarderfrom 8.2.0 before 8.2.12
splunk:universal_forwarderfrom 9.0.0 before 9.0.6
splunk:universal_forwarder9.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14curl7.86.0-1DEBIAN-CVE-2022-42915
Ubuntu18.04:LTScurl7.58.0-2ubuntu3.21USN-5702-1
Ubuntu20.04:LTScurl7.68.0-1ubuntu2.14USN-5702-1
Ubuntu22.04:LTScurl7.81.0-1ubuntu1.6UBUNTU-CVE-2022-42915 USN-5702-1
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:7.86.0-2.el7jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.51-37.el7jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.19-20.el7jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html1:2.4.51-37.el7jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el7jbcs-httpd24-openssl, jbcs-httpd24-openssl-libs, jbcs-httpd24-openssl-perl and 3 more1:1.1.1k-13.el7jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el8jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 2 more0:7.86.0-2.el8jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el8jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 8 more0:2.4.51-37.el8jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el8jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.19-20.el8jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el8jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html, jbcs-httpd24-mod_ssl-debuginfo and 1 more1:2.4.51-37.el8jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el8jbcs-httpd24-openssl, jbcs-httpd24-openssl-libs, jbcs-httpd24-openssl-perl and 4 more1:1.1.1k-13.el8jbcsRHSA-2022:8840
openSUSETumbleweedcurl7.86.0-1.1openSUSE-SU-2024:12447-1
Alpinev3.15curl7.80.0-r4ALPINE-CVE-2022-42915
Alpinev3.16curl7.83.1-r4ALPINE-CVE-2022-42915
Alpinev3.17, v3.18, v3.19 and 5 morecurl7.86.0-r0ALPINE-CVE-2022-42915
Azure Linux2curl7.86.0-1AZL-11368
Azure Linux3tensorflow2.16.1-1AZL-38185

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
JBoss Core Services for RHEL 8jbcs-httpd24-curl-0:7.86.0-2.el8jbcsFixed 2022-12-08RHSA-2022:8840
JBoss Core Services on RHEL 7jbcs-httpd24-curl-0:7.86.0-2.el7jbcsFixed 2022-12-08RHSA-2022:8840
Red Hat JBoss Core Servicesjbcs-httpd24-curlFixed 2022-12-08RHSA-2022:8841
Red Hat Enterprise Linux 6curlNot affected
Red Hat Enterprise Linux 7curlNot affected
Red Hat Enterprise Linux 8curlNot affected
Red Hat Enterprise Linux 9curlNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-42915.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-23-131-05Siemens SINEC NMS Third-Party2023-05-09MultipleSINEC NMSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON