Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-4450

openssl: double free after calling PEM_read_bio_ex

Overview

Published
8 Feb 2023
Modified
14 Oct 2026
High CVE
4 Registry packages
70 OS packages
21 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-415

Affected packages · 4

Packages affected by CVE-2022-4450
EcosystemPackageVulnerableFixed in
Cargo (Rust) openssl-src <111.25.0>=300.0.0, <300.0.12 111.25.0300.0.12
Conan (C/C++) openssl >=1.1.1 <1.1.1t||>=3.0.0 <3.0.8 1.1.1w3.0.12
Julia Openresty_jll >=1.19.9+0, <1.27.1+0 1.27.1+0
Julia OpenSSL_jll <1.1.20+0 1.1.20+0

Open a package to see all its vulnerabilities.

Operating systems · 82 fixes

Azure Linux 1 release · 1 package

fixed 1
hvloader
Azure Linux fixes for CVE-2022-4450
ReleasePackageFixed in
3.0 hvloader 0:1.0.1-4.azl3

Oracle Linux 3 releases · 3 packages

fixed 8
aavmf openssl edk2-aarch64
Oracle Linux fixes for CVE-2022-4450
ReleasePackageFixed in
7 aavmf +1 1:1.6.6-1.el7
8 openssl +3 1:1.1.1k-9.el8_7
8 edk2-aarch64 +2 1:20230821-1.el8
8 openssl +5 2:1.1.1k-9.ksplice1.el8_7
9 openssl +3 1:3.0.1-47.0.1.el9_1
9 edk2-aarch64 +1 20221207gitfff6d81270b5-9.el9_2

2 more rows

Photon OS 1 release · 2 packages

fixed 2
nodejs openssl
Photon OS fixes for CVE-2022-4450
ReleasePackageFixed in
4.0 nodejs +1 18.16.0-1.ph4
4.0 openssl +4 3.0.7-4.ph4

Red Hat 3 releases · 9 packages

fixed 19 wont fix 1
jws5-tomcat-native jbcs-httpd24-apr-util jbcs-httpd24-httpd jbcs-httpd24-curl jbcs-httpd24-openssl jbcs-httpd24-mod-proxy-html +3
Red Hat fixes for CVE-2022-4450
ReleasePackageFixed inAdvisory
7 jws5-tomcat-native 0:1.2.31-14.redhat_14.el7jws RHSA-2023:3420
7 jbcs-httpd24-apr-util +8 0:1.6.1-101.el7jbcs RHSA-2023:3354
7 jbcs-httpd24-httpd +6 0:2.4.51-39.el7jbcs RHSA-2023:3354
7 jbcs-httpd24-curl +2 0:8.0.1-1.el7jbcs RHSA-2023:3354
7 jbcs-httpd24-openssl +4 1:1.1.1k-14.el7jbcs RHSA-2023:3354
7 jbcs-httpd24-mod-proxy-html +1 1:2.4.51-39.el7jbcs RHSA-2023:3354

14 more rows

SUSE Linux Enterprise 2 releases · 2 packages

fixed 3
libopenssl-1-1-devel libopenssl-3-devel
SUSE Linux Enterprise fixes for CVE-2022-4450
ReleasePackageFixed inAdvisory
12.5 libopenssl-1-1-devel +6 1.1.1d-2.75.1 SUSE-SU-2023:0309-1
15.4 libopenssl-1-1-devel +6 1.1.1l-150400.7.22.1 SUSE-SU-2023:0311-1
15.4 libopenssl-3-devel +2 3.0.1-150400.4.17.1 SUSE-SU-2023:0312-1

SUSE Linux Enterprise Micro 3 releases · 1 package

fixed 3
libopenssl-1-1-devel
SUSE Linux Enterprise Micro fixes for CVE-2022-4450
ReleasePackageFixed inAdvisory
5.1 libopenssl-1-1-devel +3 1.1.1d-150200.11.57.1 SUSE-SU-2023:0310-1
5.2 libopenssl-1-1-devel +3 1.1.1d-150200.11.57.1 SUSE-SU-2023:0310-1
5.3 libopenssl-1-1-devel +3 1.1.1l-150400.7.22.1 SUSE-SU-2023:0311-1

alma 2 releases · 2 packages

fixed 4
openssl edk2-aarch64
alma fixes for CVE-2022-4450
ReleasePackageFixed in
8 openssl +3 1:1.1.1k-9.el8_7
8 edk2-aarch64 +1 20220126gitbb1bba3d77-4.el8
9 openssl +3 1:3.0.1-47.el9_1
9 edk2-aarch64 +3 20221207gitfff6d81270b5-9.el9_2

alpine 4 releases · 1 package

fixed 4
openssl
alpine fixes for CVE-2022-4450
ReleasePackageFixed in
3.22 openssl 3.0.8-r0
3.23 openssl 3.0.8-r0
3.24 openssl 3.0.8-r0
edge openssl 3.0.8-r0

amazon linux 1 release · 1 package

fixed 1
openssl
amazon linux fixes for CVE-2022-4450
ReleasePackageFixed in
2023 openssl +6 1:3.0.5-1.amzn2023.0.6

chainguard 1 release · 3 packages

not affected 1 fixed 2
ruby-3-1 openssl-provider-fips openssl
chainguard fixes for CVE-2022-4450
ReleasePackageFixed in
ruby-3-1 not affected
openssl-provider-fips 3.0.8-r0
openssl 3.1.0-r0

debian 5 releases · 1 package

fixed 5
openssl
debian fixes for CVE-2022-4450
ReleasePackageFixed in
10 openssl 1.1.1n-0+deb10u4
11 openssl 1.1.1n-0+deb11u4
12 openssl 3.0.8-1
13 openssl 3.0.8-1
14 openssl 3.0.8-1

echo 1 release · 4 packages

fixed 4
openssl-1-1-1c openssl-1-1-1g openssl-1-1-1k openssl
echo fixes for CVE-2022-4450
ReleasePackageFixed in
openssl-1-1-1c 1.1.1c+e1
openssl-1-1-1g 1.1.1g+e1
openssl-1-1-1k 1.1.1k+e1
openssl 3.0.8-1

openSUSE 1 release · 2 packages

fixed 2
libopenssl-1-1-devel libopenssl-3-devel
openSUSE fixes for CVE-2022-4450
ReleasePackageFixed inAdvisory
Tumbleweed libopenssl-1-1-devel +7 1.1.1t-1.1 openSUSE-SU-2024:12688-1
Tumbleweed libopenssl-3-devel +7 3.0.8-1.1 openSUSE-SU-2024:12716-1

openSUSE Leap Micro 2 releases · 1 package

fixed 2
libopenssl-1-1-devel
openSUSE Leap Micro fixes for CVE-2022-4450
ReleasePackageFixed inAdvisory
5.2 libopenssl-1-1-devel +3 1.1.1d-150200.11.57.1 SUSE-SU-2023:0310-1
5.3 libopenssl-1-1-devel +3 1.1.1l-150400.7.22.1 SUSE-SU-2023:0311-1

rocky 2 releases · 1 package

fixed 2
openssl
rocky fixes for CVE-2022-4450
ReleasePackageFixed in
8 openssl +3 1:1.1.1k-9.el8_7
9 openssl +3 1:3.0.1-47.el9_1

root.io alpine 1 release · 1 package

fixed 1
rootio-openssl
root.io alpine fixes for CVE-2022-4450
ReleasePackageFixed in
3.23 rootio-openssl 3.0.8-r0

root.io debian 2 releases · 1 package

fixed 2
rootio-openssl
root.io debian fixes for CVE-2022-4450
ReleasePackageFixed in
11 rootio-openssl 1.1.1n-0+deb11u4
12 rootio-openssl 3.0.8-1

seal Red Hat 2 releases · 1 package

fixed 3
openssl
seal Red Hat fixes for CVE-2022-4450
ReleasePackageFixed in
7 openssl +1 1:1.0.2k-25.el7_9+sp999
7 openssl +1 1:1.0.2k-26.el7_9+sp999
8 openssl +1 1:1.1.1k-14.el8_6+sp999

seal debian 1 release · 1 package

fixed 1
openssl
seal debian fixes for CVE-2022-4450
ReleasePackageFixed in
openssl +1 1.1.1w-0+deb11u2+sp999

ubuntu 7 releases · 3 packages

fixed 9
openssl nodejs edk2
ubuntu fixes for CVE-2022-4450
ReleasePackageFixed in
18.04 openssl 1.1.1-1ubuntu2.1~18.04.21
18.04-ESM openssl 1.1.1-1ubuntu2.1~18.04.21
20.04 openssl 1.1.1f-1ubuntu2.17
20.04-ESM openssl 1.1.1f-1ubuntu2.17
22.04 nodejs 12.22.9~dfsg-1ubuntu3.3
22.04 edk2 2022.02-3ubuntu0.22.04.4

3 more rows

wolfi 1 release · 2 packages

not affected 1 fixed 1
ruby-3-1 openssl
wolfi fixes for CVE-2022-4450
ReleasePackageFixed in
ruby-3-1 not affected
openssl 3.1.0-r0

References

Show all 42 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.