cve.bz

CVE-2021-23841 NULL Pointer Dereference

5.9 mediumEPSS 7.5%Fix available

Medium (5.9). EPSS 7.5% estimated probability of exploitation activity in the next 30 days. Fixed in openssl-src 111.14.0.

On this page
The OpenSSL public API function X509_issuer_and_serial_hash() attempts to create a unique hash value based on the issuer and serial number data contained within an X509 certificate. However it fails to correctly handle any errors that may occur while parsing the issuer field (which might occur if the issuer field is maliciously constructed). This may subsequently result in a NULL pointer deref and a crash leading to a potential denial of service attack. The function X509_issuer_and_serial_hash() is never directly called by OpenSSL itself so applications are only vulnerable if they use this function directly and they use it on certificates that may have been obtained from untrusted sources. OpenSSL versions 1.1.1i and below are affected by this issue. Users of these versions should upgrade to OpenSSL 1.1.1j. OpenSSL versions 1.0.2x and below are affected by this issue. However OpenSSL 1.0.2 is out of support and no longer receiving public updates. Premium support customers of OpenSSL 1.0.2 should upgrade to 1.0.2y. Other users should upgrade to 1.1.1j. Fixed in OpenSSL 1.1.1j (Affected 1.1.1-1.1.1i). Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x).

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
7.5% (unchanged from 7.5% a week ago; 7.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-06-26. 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-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-2021-23841 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23841?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23841?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-2021-23841 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 1.0.2 before 1.0.2y
openssl:opensslfrom 1.1.1 before 1.1.1j
debian:debian_linux10.0
tenable:nessus_network_monitor5.11.0
tenable:nessus_network_monitor5.11.1
tenable:nessus_network_monitor5.12.0
tenable:nessus_network_monitor5.12.1
tenable:nessus_network_monitor5.13.0
tenable:tenable.scfrom 5.13.0 through 5.17.0
apple:safaribefore 14.1.1
apple:ipadosbefore 14.6
apple:iphone_osbefore 14.6
apple:macosfrom 11.1 before 11.4
oracle:business_intelligence5.5.0.0.0
oracle:business_intelligence5.9.0.0.0
oracle:business_intelligence12.2.1.3.0
oracle:business_intelligence12.2.1.4.0
oracle:communications_cloud_native_core_policy1.15.0
oracle:enterprise_manager_for_storage_management13.4.0.0
oracle:enterprise_manager_ops_center12.4.0.0
oracle:essbase21.2
oracle:graalvm19.3.5
oracle:graalvm20.3.1.2
oracle:graalvm21.0.0.2
oracle:jd_edwards_world_securitya9.4
oracle:mysql_enterprise_monitorbefore 8.0.23
oracle:mysql_serverbefore 5.7.33
oracle:mysql_serverfrom 8.0.15 before 8.0.23
oracle:peoplesoft_enterprise_peopletools8.57
oracle:peoplesoft_enterprise_peopletools8.58
oracle:peoplesoft_enterprise_peopletools8.59
oracle:zfs_storage_appliance_kit8.8
siemens:sinec_insbefore 1.0
siemens:sinec_ins1.0
siemens:sinec_ins1.0:sp1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-84rm-qf37-fgc2crates.ioopenssl-src<111.14.0111.14.0
RUSTSEC-2021-0058crates.ioopenssl-src>=0.0.0-0 <111.14.0111.14.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9openssl1.1.0l-1~deb9u3DLA-2563-1
Debian9openssl1.01.0.2u-1~deb9u4DLA-2565-1
Debian10openssl1.1.1d-0+deb10u5DSA-4855-1
Debian12, 13, 14openssl1.1.1j-1DEBIAN-CVE-2021-23841
Ubuntu16.04:LTSopenssl1.0.2g-1ubuntu4.19UBUNTU-CVE-2021-23841 USN-4738-1
Ubuntu18.04:LTSopenssl1.1.1-1ubuntu2.1~18.04.8UBUNTU-CVE-2021-23841 USN-4738-1
Ubuntu18.04:LTSopenssl1.01.0.2n-1ubuntu5.6UBUNTU-CVE-2021-23841 USN-4738-1
Ubuntu20.04:LTSopenssl1.1.1f-1ubuntu2.2UBUNTU-CVE-2021-23841 USN-4738-1
UbuntuPro:14.04:LTSopenssl1.0.1f-1ubuntu2.27+esm2UBUNTU-CVE-2021-23841 USN-4745-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationopenssl, openssl-libs, openssl-perl and 3 more1:1.0.2k-22.el7_9RHSA-2021:3798
Red Hatenterprise_linux:7::computenodeopenssl-perl, openssl-devel, openssl-static and 1 more1:1.0.2k-22.el7_9RHSA-2021:3798
Red Hatenterprise_linux:8::appstreamedk2, edk2-ovmf, edk2-aarch640:20210527gite1999b264f1f-3.el8RHSA-2021:4198
Red Hatenterprise_linux:8::baseosopenssl, openssl-libs, openssl-perl and 4 more1:1.1.1k-4.el8RHSA-2021:4424
Red Hatjboss_core_services:1::el7jbcs-httpd24-apr, jbcs-httpd24-apr-devel, jbcs-httpd24-apr-debuginfo0:1.6.3-107.jbcs.el7RHSA-2021:4614
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-84.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:7.78.0-2.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.37-78.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_cluster-native, jbcs-httpd24-mod_cluster-native-debuginfo0:1.3.16-9.Final_redhat_2.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.7-21.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_jk, jbcs-httpd24-mod_jk-ap24, jbcs-httpd24-mod_jk-manual and 1 more0:1.2.48-20.redhat_1.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_md, jbcs-httpd24-mod_md-debuginfo1:2.0.8-40.jbcs.el7RHSA-2021:4614
26 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 6 moreopenssl-1_11.1.0i-14.15.1SUSE-SU-2021:0753-1
SUSEEnterprise Storage 6, Linux Enterprise Module for Legacy 15 SP2, Linux Enterprise Server 15 SP1-BCL and 7 moreopenssl-1_0_01.0.2p-3.37.1SUSE-SU-2021:0769-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS and 7 moreopenssl1.0.2j-60.66.1SUSE-SU-2021:0939-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moreopenssl-1_11.1.0i-4.57.1SUSE-SU-2021:0755-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2openssl-1_11.1.1d-11.17.1SUSE-SU-2021:0754-1
SUSELinux Enterprise Module for Legacy 12, Linux Enterprise Server for SAP Applications 12 SP2, Linux Enterprise Server for SAP Applications 12 SP3 and 2 morecompat-openssl0980.9.8j-106.24.1SUSE-SU-2021:0793-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSopenssl0.9.8j-0.106.37.1SUSE-SU-2021:14670-1
SUSELinux Enterprise Server 11-SECURITYopenssl11.0.1g-0.58.33.1SUSE-SU-2021:14667-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 4 moreopenssl-1_0_01.0.2p-3.36.1SUSE-SU-2021:0725-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.30.1SUSE-SU-2021:0752-1
openSUSELeap 15.2openssl-1_0_01.0.2p-lp152.8.12.1openSUSE-SU-2021:0430-1
openSUSELeap 15.2openssl-1_11.1.1d-lp152.7.12.1openSUSE-SU-2021:0427-1
openSUSETumbleweedopenssl-1_0_01.0.2u-6.2openSUSE-SU-2024:11126-1
openSUSETumbleweedopenssl-1_11.1.1l-1.2openSUSE-SU-2024:11127-1
AlmaLinux8edk2-ovmf20210527gite1999b264f1f-3.el8ALSA-2021:4198
Rocky Linux8edk20:20210527gite1999b264f1f-3.el8RLSA-2021:4198
Rocky Linux8openssl1:1.1.1k-4.el8RLSA-2021:4424
Alpinev3.9, v3.10, v3.11 and 9 moreopenssl1.1.1j-r0ALPINE-CVE-2021-23841
Alpinev3.15, v3.16openssl, openssl31.1.1j-r0ALPINE-CVE-2021-23841
Alpinev3.17, v3.18openssl, openssl1.1-compat1.1.1j-r0ALPINE-CVE-2021-23841
Azure Linux3shim-unsigned-aarch6415.8-5AZL-41571
Azure Linux3shim-unsigned-x6415.8-5AZL-40768

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

This is a a null pointer dereference in the X509_issuer_and_serial_hash() function, which can result in crash if called by an application compiled with OpenSSL, by passing a specially-crafted certificate. OpenSSL internally does not use this function.

Red Hat's mitigation

As per upstream "The function X509_issuer_and_serial_hash() is never directly called by OpenSSL itself so applications are only vulnerable if they use this function directly and they use it on certificates that may have been obtained from untrusted sources."

ProductPackageStateAdvisory
JBoss Core Services for RHEL 8jbcs-httpd24-apr-0:1.6.3-107.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-apr-util-0:1.6.1-84.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-curl-0:7.78.0-2.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-httpd-0:2.4.37-78.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-mod_cluster-native-0:1.3.16-9.Final_redhat_2.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-mod_http2-0:1.15.7-21.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-mod_jk-0:1.2.48-20.redhat_1.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-mod_md-1:2.0.8-40.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-mod_security-0:2.9.2-67.GA.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-nghttp2-0:1.39.2-39.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-1:1.1.1g-8.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-chil-0:1.0.0-7.el8jbcsFixed 2021-11-10RHSA-2021:4614
Red Hat Advanced Cluster Management for Kubernetes 2management-ingressAffected
Red Hat Enterprise Linux 6opensslOut of support scope
Red Hat Enterprise Linux 6openssl098eOut of support scope
Red Hat Enterprise Linux 7openssl098eWill not fix
Red Hat Enterprise Linux 7ovmfAffected
Red Hat Enterprise Linux 8compat-openssl10Will not fix
Red Hat Enterprise Linux 9opensslNot affected
Red Hat JBoss Enterprise Application Platform 6opensslOut of support scope
25 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-2021-23841.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-258-05Siemens SINEC INS2022-09-13MultipleSINEC INSnone listed
ICSA-21-336-06Hitachi Energy APM Edge2021-12-02EnergyAPM Edge: Version 3.0, APM Edge: Version 2.0, APM Edge: Version 1.0none 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