Vulnerability
CVE-2022-4450
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.
64 advisories report this vulnerability, across 15 ecosystems.
Advisories
-
ALAS2-2023-1934
Amazon Linux 2 2017.12 - ALAS2-2023-1934: important priority package update for openssl11
-
ALAS2-2024-2502
Amazon Linux 2 2017.12 - ALAS2-2024-2502: important priority package update for edk2
-
ALAS2023-2023-101
Amazon Linux 2023 - ALAS2023-2023-101: Important priority package update for openssl
-
ALPINE-CVE-2022-4450
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"…
- ALPINE-EDGE-CVE-2022-4450
-
ALSA-2023:0946
Moderate: openssl security and bug fix update
-
ALSA-2023:1405
Important: openssl security update
-
ALSA-2023:2165
Important: edk2 security, bug fix, and enhancement update
-
ALSA-2023:2932
Important: edk2 security update
-
AZL-13347
CVE-2022-4450 affecting package cloud-hypervisor for versions less than 30.0-2
-
AZL-13351
CVE-2022-4450 affecting package openssl for versions less than 1.1.1k-21
-
AZL-37629
CVE-2022-4450 affecting package hvloader for versions less than 1.0.1-2
-
AZL-37892
CVE-2022-4450 affecting package hvloader for versions less than 1.0.1-4
- CGA-3pmc-pfcf-4f9g
- CGA-5m9q-cj2r-46gf
- CGA-7xpp-8rhh-w7xf
- CGA-cf2x-fghx-2q9j
- CGA-f4mg-fqmc-9r25
- CGA-r2gj-x9gv-2hmp
-
DEBIAN-CVE-2022-4450
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"…
-
DLA-3325-1
openssl - security update
-
DSA-5343-1
openssl - security update
-
ELSA-2023-0946
ELSA-2023-0946: openssl security and bug fix update (MODERATE)
-
ELSA-2023-12152
ELSA-2023-12152: openssl security update (MODERATE)
-
ELSA-2023-12213
ELSA-2023-12213: openssl security update (IMPORTANT)
-
ELSA-2023-13024
ELSA-2023-13024: edk2 security update (IMPORTANT)
-
ELSA-2023-13025
ELSA-2023-13025: edk2 security update (IMPORTANT)
-
ELSA-2023-13026
ELSA-2023-13026: edk2 security update (IMPORTANT)
-
ELSA-2023-13027
ELSA-2023-13027: edk2 security update (IMPORTANT)
-
ELSA-2023-1405
ELSA-2023-1405: openssl security update (IMPORTANT)
-
ELSA-2023-2165
ELSA-2023-2165: edk2 security, bug fix, and enhancement update (IMPORTANT)
-
ELSA-2023-2932
ELSA-2023-2932: edk2 security update (IMPORTANT)
-
ELSA-2023-32790
ELSA-2023-32790: edk2 security update (IMPORTANT)
-
ELSA-2023-32791
ELSA-2023-32791: edk2 security update (IMPORTANT)
-
GHSA-v5w6-wcm8-jm4q
openssl-src contains Double free after calling `PEM_read_bio_ex`
-
OESA-2023-1092
openssl security update
-
OESA-2023-1107
openssl security update
-
OESA-2023-1135
edk2 security update
-
OESA-2023-1142
nodejs security update
-
OESA-2024-2312
openresty-openssl111 security update
-
OESA-2024-2313
openresty-openssl111 security update
-
RHSA-2023:0946
Red Hat Security Advisory: openssl security and bug fix update
-
RHSA-2023:1199
Red Hat Security Advisory: openssl security and bug fix update
-
RHSA-2023:1405
Red Hat Security Advisory: openssl security update
-
RHSA-2023:2165
Red Hat Security Advisory: edk2 security, bug fix, and enhancement update
-
RHSA-2023:2932
Red Hat Security Advisory: edk2 security update
-
RHSA-2023:3354
Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.51 SP2 security update
-
RHSA-2023:3408
Red Hat Security Advisory: openssl security update
-
RHSA-2023:3420
Red Hat Security Advisory: Red Hat JBoss Web Server 5.7.3 release and security update
-
RHVEX-CVE-2022-4450
openssl: double free after calling PEM_read_bio_ex
-
RLSA-2023:0946
Important: openssl security and bug fix update
-
RLSA-2023:1405
Important: openssl security update
-
RUSTSEC-2023-0010
Double free after calling `PEM_read_bio_ex`
-
SUSE-SU-2023:0309-1
Security update for openssl-1_1
-
SUSE-SU-2023:0310-1
Security update for openssl-1_1
-
SUSE-SU-2023:0311-1
Security update for openssl-1_1
-
SUSE-SU-2023:0312-1
Security update for openssl-3
-
SUSEVEX-CVE-2022-4450
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"…
-
UBUNTU-CVE-2022-4450
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"…
-
USN-5844-1
openssl vulnerabilities
-
USN-6564-1
nodejs vulnerabilities
-
USN-7894-1
edk2 vulnerabilities
-
openSUSE-SU-2024:12688-1
libopenssl-1_1-devel-1.1.1t-1.1 on GA media
-
openSUSE-SU-2024:12716-1
libopenssl-3-devel-3.0.8-1.1 on GA media
References
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=63bcf189be73a9cc1264059bed6f57974be74a83
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=bbcf509bd046b34cca19c766bbddc31683d0858b
- https://security.gentoo.org/glsa/202402-08
- https://www.openssl.org/news/secadv/20230207.txt
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2023-0003
- https://cert-portal.siemens.com/productcert/html/ssa-203374.html
- https://cert-portal.siemens.com/productcert/html/ssa-337522.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-556635.html
- https://cert-portal.siemens.com/productcert/html/ssa-561322.html
- https://cert-portal.siemens.com/productcert/html/ssa-625862.html
- https://cert-portal.siemens.com/productcert/html/ssa-699386.html
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html
- https://cert-portal.siemens.com/productcert/html/ssa-879734.html
- https://cert-portal.siemens.com/productcert/html/ssa-943925.html