cve.bz

CVE-2022-3358 openssl openssl: NULL Pointer Dereference

7.5 highExploitEPSS 4.0%Fix available

High (7.5) in openssl openssl. EPSS 4.0% estimated probability of exploitation activity in the next 30 days. Fixed in openssl-src 300.0.10.

On this page
OpenSSL supports creating a custom cipher via the legacy EVP_CIPHER_meth_new() function and associated function calls. This function was deprecated in OpenSSL 3.0 and application authors are instead encouraged to use the new provider mechanism in order to implement custom ciphers. OpenSSL versions 3.0.0 to 3.0.5 incorrectly handle legacy custom ciphers passed to the EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() and EVP_CipherInit_ex2() functions (as well as other similarly named encryption and decryption initialisation functions). Instead of using the custom cipher directly it incorrectly tries to fetch an equivalent cipher from the available providers. An equivalent cipher is found based on the NID passed to EVP_CIPHER_meth_new(). This NID is supposed to represent the unique NID for a given cipher. However it is possible for an application to incorrectly pass NID_undef as this value in the call to EVP_CIPHER_meth_new(). When NID_undef is used in this way the OpenSSL encryption/decryption initialisation function will match the NULL cipher as being equivalent and will fetch this from the available providers. This will succeed if the default provider has been loaded (or if a third party provider has been loaded that offers this cipher). Using the NULL cipher means that the plaintext is emitted as the ciphertext. Applications are only affected by this issue if they call EVP_CIPHER_meth_new() using NID_undef and subsequently use it in a call to an encryption/decryption initialisation function. Applications that only use SSL/TLS are not impacted by this issue. Fixed in OpenSSL 3.0.6 (Affected 3.0.0-3.0.5).

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
4.0% (unchanged from 4.0% a week ago; 4.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
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-3358 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-3358?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-3358?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-3358 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.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openssl:opensslfrom 3.0.0 before 3.0.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4f63-89w9-3jjvcrates.ioopenssl-src>=300.0.0 <300.0.10300.0.10
RUSTSEC-2022-0059crates.ioopenssl-src>=300.0.0 <300.0.10300.0.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14openssl3.0.7-1DEBIAN-CVE-2022-3358
Ubuntu22.04:LTSopenssl3.0.2-0ubuntu1.7UBUNTU-CVE-2022-3358 USN-5710-1
UbuntuPro:16.04:LTSedk2no fix listedUBUNTU-CVE-2022-3358
Red Hatenterprise_linux:9::appstreamopenssl-perl, openssl-devel, openssl-debuginfo and 2 more1:3.0.7-6.el9_2RHSA-2023:2523
Red Hatenterprise_linux:9::baseosopenssl, openssl-libs, openssl-debuginfo and 2 more1:3.0.7-6.el9_2RHSA-2023:2523
SUSELinux Enterprise Module for Basesystem 15 SP4openssl-33.0.1-150400.4.11.1SUSE-SU-2022:3843-1
openSUSELeap 15.4openssl-33.0.1-150400.4.11.1SUSE-SU-2022:3843-1
openSUSETumbleweedopenssl-33.0.7-1.1openSUSE-SU-2024:12475-1
AlmaLinux9openssl, openssl-libs, openssl-perl and 1 more1:3.0.7-6.el9_2ALSA-2023:2523
Alpinev3.15, v3.16openssl33.0.6-r0ALPINE-CVE-2022-3358
Alpinev3.17, v3.18, v3.19 and 5 moreopenssl3.0.6-r0ALPINE-CVE-2022-3358

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; the Alpine secdb, CC BY-SA 4.0. 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 Low.

Red Hat's statement

Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7 and Red Hat Enterprise Linux 8 ship OpenSSL 1.0 which does not contain the vulnerable code.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9openssl-1:3.0.7-6.el9_2Fixed 2023-05-09RHSA-2023:2523
Red Hat Enterprise Linux 6opensslOut of support scope
Red Hat Enterprise Linux 7opensslOut of support scope
Red Hat Enterprise Linux 7ovmfOut of support scope
Red Hat Enterprise Linux 8compat-openssl10Not affected
Red Hat Enterprise Linux 8edk2Not affected
Red Hat Enterprise Linux 8opensslNot affected
Red Hat Enterprise Linux 8shimNot affected
Red Hat Enterprise Linux 9compat-openssl11Not affected
Red Hat Enterprise Linux 9edk2Not affected
Red Hat Enterprise Linux 9shimNot affected
Red Hat JBoss Core Servicesjbcs-httpd24-opensslNot affected
Red Hat JBoss Web Server 3opensslNot affected
Red Hat JBoss Web Server 5opensslNot 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-3358.

Public exploits

References

Check your stackJSON