cve.bz

CVE-2022-4450 Double Free

7.5 highEPSS 29%Fix available

High (7.5). EPSS 29% estimated probability of exploitation activity in the next 30 days. Fixed in openssl-src 111.25.0, 300.0.12.

On this page
The function PEM_read_bio_ex() reads a PEM file from a BIO and parses and decodes the "name" (e.g. "CERTIFICATE"), any header data and the payload data. If the function succeeds then the "name_out", "header" and "data" arguments are populated with pointers to buffers containing the relevant decoded data. The caller is responsible for freeing those buffers. It is possible to construct a PEM file that results in 0 bytes of payload data. In this case PEM_read_bio_ex() will return a failure code but will populate the header argument with a pointer to a buffer that has already been freed. If the caller also frees this buffer then a double free will occur. This will most likely lead to a crash. This could be exploited by an attacker who has the ability to supply malicious PEM files for parsing to achieve a denial of service attack. The functions PEM_read_bio() and PEM_read() are simple wrappers around PEM_read_bio_ex() and therefore these functions are also directly affected. These functions are also called indirectly by a number of other OpenSSL functions including PEM_X509_INFO_read_bio_ex() and SSL_CTX_use_serverinfo_file() which are also vulnerable. Some OpenSSL internal uses of these functions are not vulnerable because the caller does not free the header argument if PEM_read_bio_ex() returns a failure code. These locations include the PEM_read_bio_TYPE() functions as well as the decoders introduced in OpenSSL 3.0. The OpenSSL asn1parse command line application is also impacted by this issue.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
29% (unchanged from 29% a week ago; 29% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th 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: yes · Technical impact: partial, assessed 2025-04-23. 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-4450 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-4450?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-4450?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-4450 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-4450

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-4450](https://cve.bz/cve/badge/CVE-2022-4450.svg)](https://cve.bz/cve/CVE-2022-4450)

HTML:

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

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenSSLfrom 3.0.0 before 3.0.8
OpenSSLfrom 1.1.1 before 1.1.1t

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v5w6-wcm8-jm4qcrates.ioopenssl-src<111.25.0111.25.0
GHSA-v5w6-wcm8-jm4qcrates.ioopenssl-src>=300.0.0 <300.0.12300.0.12
RUSTSEC-2023-0010crates.ioopenssl-src>=0.0.0-0 <111.25.0
>=300.0.0 <300.0.12
111.25.0, 300.0.12

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10openssl1.1.1n-0+deb10u4DLA-3325-1
Debian11openssl1.1.1n-0+deb11u4DSA-5343-1
Debian12, 13, 14openssl3.0.8-1DEBIAN-CVE-2022-4450
Ubuntu18.04:LTSopenssl1.1.1-1ubuntu2.1~18.04.21UBUNTU-CVE-2022-4450 USN-5844-1
Ubuntu20.04:LTSopenssl1.1.1f-1ubuntu2.17UBUNTU-CVE-2022-4450 USN-5844-1
Ubuntu22.04:LTSedk22022.02-3ubuntu0.22.04.4UBUNTU-CVE-2022-4450 USN-7894-1
Ubuntu22.04:LTSnodejs12.22.9~dfsg-1ubuntu3.3UBUNTU-CVE-2022-4450 USN-6564-1
Ubuntu22.04:LTSopenssl3.0.2-0ubuntu1.8UBUNTU-CVE-2022-4450 USN-5844-1
Ubuntu24.04:LTSedk22024.02-2ubuntu0.6USN-7894-1
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSedk2no fix listedUBUNTU-CVE-2022-4450
UbuntuPro:FIPS-updates:18.04:LTSopenssl1.1.1-1ubuntu2.fips.2.1~18.04.21UBUNTU-CVE-2022-4450
UbuntuPro:FIPS-updates:20.04:LTSopenssl1.1.1f-1ubuntu2.fips.17UBUNTU-CVE-2022-4450
UbuntuPro:FIPS:18.04:LTS, Pro:FIPS:20.04:LTSopensslno fix listedUBUNTU-CVE-2022-4450
Red Hatenterprise_linux:8::appstreamedk2, edk2-ovmf, edk2-aarch640:20220126gitbb1bba3d77-4.el8RHSA-2023:2932
Red Hatenterprise_linux:8::baseosopenssl, openssl-libs, openssl-perl and 4 more1:1.1.1k-9.el8_7RHSA-2023:1405
Red Hatenterprise_linux:9::appstreamedk2, edk2-ovmf, edk2-aarch640:20221207gitfff6d81270b5-9.el9_2RHSA-2023:2165
Red Hatenterprise_linux:9::appstreamopenssl-perl, openssl-devel, openssl-debuginfo and 2 more1:3.0.1-47.el9_1RHSA-2023:0946
Red Hatenterprise_linux:9::baseosopenssl, openssl-libs, openssl-debuginfo and 2 more1:3.0.1-47.el9_1RHSA-2023:0946
Red Hatenterprise_linux:9::crbedk2-ovmf, edk2-tools, edk2-aarch64 and 3 more0:20221207gitfff6d81270b5-9.el9_2RHSA-2023:2165
Red Hatjboss_core_services:1::el7jbcs-httpd24-apr-util, jbcs-httpd24-apr-util-nss, jbcs-httpd24-apr-util-ldap and 7 more0:1.6.1-101.el7jbcsRHSA-2023:3354
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:8.0.1-1.el7jbcsRHSA-2023:3354
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.51-39.el7jbcsRHSA-2023:3354
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html1:2.4.51-39.el7jbcsRHSA-2023:3354
Red Hatjboss_core_services:1::el7jbcs-httpd24-openssl, jbcs-httpd24-openssl-libs, jbcs-httpd24-openssl-perl and 3 more1:1.1.1k-14.el7jbcsRHSA-2023:3354
Red Hatjboss_core_services:1::el8jbcs-httpd24-apr-util, jbcs-httpd24-apr-util-nss, jbcs-httpd24-apr-util-ldap and 14 more0:1.6.1-101.el8jbcsRHSA-2023:3354
10 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 12 moreopenssl-1_11.1.1d-150200.11.57.1SUSE-SU-2023:0310-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Module for Basesystem 15 SP4openssl-1_11.1.1l-150400.7.22.1SUSE-SU-2023:0311-1
SUSELinux Enterprise Module for Basesystem 15 SP4openssl-33.0.1-150400.4.17.1SUSE-SU-2023:0312-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 4 moreopenssl-1_11.1.1d-2.75.1SUSE-SU-2023:0309-1
openSUSELeap 15.4openssl-33.0.1-150400.4.17.1SUSE-SU-2023:0312-1
openSUSELeap 15.4, Leap Micro 5.3openssl-1_11.1.1l-150400.7.22.1SUSE-SU-2023:0311-1
openSUSELeap Micro 5.2openssl-1_11.1.1d-150200.11.57.1SUSE-SU-2023:0310-1
openSUSETumbleweedopenssl-1_11.1.1t-1.1openSUSE-SU-2024:12688-1
openSUSETumbleweedopenssl-33.0.8-1.1openSUSE-SU-2024:12716-1
AlmaLinux8edk2-ovmf, edk2-aarch6420220126gitbb1bba3d77-4.el8ALSA-2023:2932
AlmaLinux8openssl, openssl-libs, openssl-perl and 1 more1:1.1.1k-9.el8_7ALSA-2023:1405
AlmaLinux9edk2-ovmf, edk2-tools, edk2-aarch64 and 1 more20221207gitfff6d81270b5-9.el9_2ALSA-2023:2165
AlmaLinux9openssl, openssl-libs, openssl-perl and 1 more1:3.0.1-47.el9_1ALSA-2023:0946
Rocky Linux8openssl1:1.1.1k-9.el8_7RLSA-2023:1405
Rocky Linux9openssl1:3.0.1-47.el9_1RLSA-2023:0946
Alpinev3.14, v3.15, v3.16openssl1.1.1t-r0ALPINE-CVE-2022-4450
Alpinev3.15, v3.16openssl33.0.8-r0ALPINE-CVE-2022-4450
Alpinev3.17, v3.18openssl1.1-compat1.1.1t-r0ALPINE-CVE-2022-4450
Alpinev3.17, v3.18, v3.19 and 5 moreopenssl3.0.8-r0ALPINE-CVE-2022-4450
Azure Linux2cloud-hypervisor30.0-2AZL-13347
Azure Linux2hvloader1.0.1-2AZL-37629
Azure Linux2openssl1.1.1k-21AZL-13351
Azure Linux3hvloader1.0.1-4AZL-37892

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; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; 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 · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A double-free vulnerability was found in the OpenSSL library in the PEM_read_bio_ex() function and its wrappers. The flaw is triggered when the library parses a specially crafted PEM file constructed to have zero bytes of payload data. This edge case causes the function to return a failure code but also populate a header argument with a pointer to memory that has already been freed, leading to a double-free condition if the calling application also attempts to free it, resulting in a crash and a denial of service. The flaw is rated as moderate because it results in a crash but does not allow code execution, memory corruption beyond the crash, or data leakage.

The versions of `shim` as shipped with Red Hat Enterprise Linux 8 and 9 are shipping OpenSSL 1.1.1 and 1.0.2, which do not contain the incorrect code, so those are not affected by this CVE.

ProductPackageStateAdvisory
JBCS httpd 2.4.51.sp2opensslFixed 2023-06-05RHSA-2023:3355
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-1:1.1.1k-14.el8jbcsFixed 2023-06-05RHSA-2023:3354
JBoss Core Services on RHEL 7jbcs-httpd24-openssl-1:1.1.1k-14.el7jbcsFixed 2023-06-05RHSA-2023:3354
Red Hat Enterprise Linux 8edk2-0:20220126gitbb1bba3d77-4.el8Fixed 2023-05-16RHSA-2023:2932
Red Hat Enterprise Linux 8openssl-1:1.1.1k-9.el8_7Fixed 2023-03-22RHSA-2023:1405
Red Hat Enterprise Linux 8.6 Extended Update Supportopenssl-1:1.1.1k-9.el8_6Fixed 2023-05-31RHSA-2023:3408
Red Hat Enterprise Linux 9openssl-1:3.0.1-47.el9_1Fixed 2023-02-28RHSA-2023:0946
Red Hat Enterprise Linux 9edk2-0:20221207gitfff6d81270b5-9.el9_2Fixed 2023-05-09RHSA-2023:2165
Red Hat Enterprise Linux 9.0 Extended Update Supportopenssl-1:3.0.1-46.el9_0Fixed 2023-03-14RHSA-2023:1199
Red Hat JBoss Web Server 5opensslFixed 2023-06-05RHSA-2023:3421
Red Hat JBoss Web Server 5.7 on RHEL 7jws5-tomcat-native-0:1.2.31-14.redhat_14.el7jwsFixed 2023-06-05RHSA-2023:3420
Red Hat JBoss Web Server 5.7 on RHEL 8jws5-tomcat-native-0:1.2.31-14.redhat_14.el8jwsFixed 2023-06-05RHSA-2023:3420
Red Hat Enterprise Linux 6opensslNot affected
Red Hat Enterprise Linux 7opensslNot affected
Red Hat Enterprise Linux 7ovmfNot affected
Red Hat Enterprise Linux 8compat-openssl10Not affected
Red Hat Enterprise Linux 8shimNot affected
Red Hat Enterprise Linux 9compat-openssl11Will not fix
Red Hat Enterprise Linux 9shimNot affected
Red Hat JBoss Web Server 3opensslOut of support scope
1 more in the JSON and on Red Hat's page.

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-4450.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-065-01Hitachi Energy PCU4002025-02-25Critical ManufacturingPCU400 versions 6.5 K and below, PCU400 versions 9.4.1 and below, PCULogger versions 1.1.0 and belowPCU400 version 6.6.0, PCU400 version 9.4.2, PCULogger version 1.2.0
ICSA-25-044-09Siemens SCALANCE W700 IEEE 802.11ax2025-02-11Chemical, Critical Manufacturing, Energy, Food and Agriculture, Water and Wastewater SystemsSCALANCE WAB762-1 (6GK5762-1AJ00-6AA0), SCALANCE WAM763-1 (6GK5763-1AL00-7DA0), SCALANCE WAM763-1 (ME) (6GK5763-1AL00-7DC0) and 16 morenone listed
ICSA-24-205-02Hitachi Energy AFS/AFR Series Products2024-07-23EnergyHitachi Energy AFS650: <=9.1.08, Hitachi Energy AFS660-C: <=7.1.05, Hitachi Energy AFS665-B: <=7.1.05 and 5 morenone listed
ICSA-24-165-06Siemens TIM 1531 IRC2024-06-11MultipleSIPLUS TIM 1531 IRC (6AG1543-1MX00-7XE0), TIM 1531 IRC (6GK7543-1MX00-0XE0)none listed
ICSA-24-165-10Siemens SIMATIC and SIPLUS2024-06-11MultipleSIMATIC CP 1542SP-1 (6GK7542-6UX00-0XE0), SIMATIC CP 1542SP-1 IRC (6GK7542-6VX00-0XE0), SIMATIC CP 1543SP-1 (6GK7543-6WX00-0XE0) and 3 morenone listed
ICSA-24-165-11Siemens SCALANCE XM-400, XR-5002024-06-11MultipleSCALANCE XM408-4C (6GK5408-4GP00-2AM2), SCALANCE XM408-4C (L3 int.) (6GK5408-4GQ00-2AM2), SCALANCE XM408-8C (6GK5408-8GS00-2AM2) and 23 morenone listed
ICSA-24-046-15Siemens SINEC NMS2024-02-13MultipleSINEC NMSnone listed
ICSA-24-004-02Mitsubishi Electric Factory Automation Products2024-01-04Critical ManufacturingMitsubishi Electric FX5-OPC: <=1.006_none listed
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-320-08Siemens SCALANCE Family Products2023-11-14MultipleSCALANCE XB205-3 (SC, PN) (6GK5205-3BB00-2AB2), SCALANCE XB205-3 (ST, E/IP) (6GK5205-3BB00-2TB2), SCALANCE XB205-3 (ST, E/IP) (6GK5205-3BD00-2TB2) and 47 morenone listed
6 more in the JSON.

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