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-2021-23841

openssl: NULL pointer dereference in X509_issuer_and_serial_hash()

Overview

Published
16 Feb 2021
Modified
17 Jun 2026
Medium CVE
4 Registry packages
95 OS packages
16 Linux distributions
Yes Fix available

Description

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

Source: OX vulnerability database

Severity

5.9 · MEDIUM

CVSS 3.1 base score, scored by NVD.

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

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

Weakness: CWE-476

Affected packages · 4

Packages affected by CVE-2021-23841
EcosystemPackageVulnerableFixed in
Cargo (Rust) openssl-src <111.14.0 111.14.0
Conan (C/C++) openssl >=1.0.2 <1.0.2y||>=1.1.1 <1.1.1j 1.1.0l1.1.1p
Julia Openresty_jll <1.19.9+0 1.19.9+0
Julia OpenSSL_jll <1.1.10+0 1.1.10+0

Open a package to see all its vulnerabilities.

Operating systems · 83 fixes

Azure Linux 1 release · 1 package

fixed 1
shim-unsigned-aarch64
Azure Linux fixes for CVE-2021-23841
ReleasePackageFixed in
3.0 shim-unsigned-aarch64 +1 0:15.8-5.azl3

Oracle Linux 2 releases · 1 package

fixed 5
openssl
Oracle Linux fixes for CVE-2021-23841
ReleasePackageFixed in
7 openssl +4 10:1.0.2k-22.el7_9_fips
7 openssl +4 1:1.0.2k-22.el7_9
7 openssl +4 2:1.0.2k-22.ksplice1.el7_9
8 openssl +3 1:1.1.1k-4.el8
8 openssl +5 2:1.1.1k-4.ksplice1.el8

Photon OS 1 release · 1 package

fixed 1
openssl
Photon OS fixes for CVE-2021-23841
ReleasePackageFixed in
4.0 openssl +4 1.1.1k-1.ph4

Red Hat 2 releases · 21 packages

wont fix 2 fixed 37
aavmf jbcs-httpd24-openssl-pkcs11 jbcs-httpd24-openssl-chil jws5-tomcat-vault jbcs-httpd24-mod-http2 jws5-tomcat-native +15
Red Hat fixes for CVE-2021-23841
ReleasePackageFixed inAdvisory
7 aavmf +2 wont fix —
7 jbcs-httpd24-openssl-pkcs11 0:0.4.10-22.jbcs.el7 RHSA-2021:4614
7 jbcs-httpd24-openssl-chil 0:1.0.0-7.jbcs.el7 RHSA-2021:4614
7 jws5-tomcat-vault +1 0:1.1.8-4.Final_redhat_00004.1.el7jws RHSA-2021:4861
7 jbcs-httpd24-mod-http2 0:1.15.7-21.jbcs.el7 RHSA-2021:4614
7 jws5-tomcat-native 0:1.2.30-3.redhat_3.el7jws RHSA-2021:4861

33 more rows

SUSE Linux Enterprise 1 release · 3 packages

fixed 3
libopenssl0-9-8 libopenssl-1-0-0-devel libopenssl-1-1-devel
SUSE Linux Enterprise fixes for CVE-2021-23841
ReleasePackageFixed inAdvisory
12.5 libopenssl0-9-8 0.9.8j-106.24.1 SUSE-SU-2021:0793-1
12.5 libopenssl-1-0-0-devel +6 1.0.2p-3.36.1 SUSE-SU-2021:0725-1
12.5 libopenssl-1-1-devel +4 1.1.1d-2.30.1 SUSE-SU-2021:0752-1

SUSE Linux Enterprise Micro 1 release · 1 package

fixed 1
libopenssl1-1
SUSE Linux Enterprise Micro fixes for CVE-2021-23841
ReleasePackageFixed inAdvisory
5.0 libopenssl1-1 +1 1.1.1d-11.17.1 SUSE-SU-2021:0754-1

alma 1 release · 1 package

fixed 1
edk2-ovmf
alma fixes for CVE-2021-23841
ReleasePackageFixed in
8 edk2-ovmf 20210527gite1999b264f1f-3.el8

alpine 4 releases · 1 package

fixed 4
openssl
alpine fixes for CVE-2021-23841
ReleasePackageFixed in
3.22 openssl 1.1.1j-r0
3.23 openssl 1.1.1j-r0
3.24 openssl 1.1.1j-r0
edge openssl 1.1.1j-r0

debian 6 releases · 2 packages

fixed 7
openssl openssl1-0
debian fixes for CVE-2021-23841
ReleasePackageFixed in
10 openssl 1.1.1d-0+deb10u5
11 openssl 1.1.1j-1
12 openssl 1.1.1j-1
13 openssl 1.1.1j-1
14 openssl 1.1.1j-1
9 openssl1-0 1.0.2u-1~deb9u4

1 more row

echo 1 release · 4 packages

fixed 4
openssl-1-0-1g openssl-1-1-1c openssl-1-1-1g openssl
echo fixes for CVE-2021-23841
ReleasePackageFixed in
openssl-1-0-1g 1.0.1g+e1
openssl-1-1-1c 1.1.1c+e1
openssl-1-1-1g 1.1.1g+e1
openssl 1.1.1j-1

openSUSE 1 release · 2 packages

fixed 2
libopenssl-1-0-0-devel libopenssl-1-1-devel
openSUSE fixes for CVE-2021-23841
ReleasePackageFixed inAdvisory
Tumbleweed libopenssl-1-0-0-devel +11 1.0.2u-6.2 openSUSE-SU-2024:11126-1
Tumbleweed libopenssl-1-1-devel +6 1.1.1l-1.2 openSUSE-SU-2024:11127-1

rocky 1 release · 2 packages

fixed 2
openssl edk2-aarch64
rocky fixes for CVE-2021-23841
ReleasePackageFixed in
8 openssl +3 1:1.1.1k-4.el8
8 edk2-aarch64 +1 20210527gite1999b264f1f-3.el8

root.io alpine 1 release · 1 package

fixed 1
rootio-openssl
root.io alpine fixes for CVE-2021-23841
ReleasePackageFixed in
3.23 rootio-openssl 1.1.1j-r0

root.io debian 2 releases · 1 package

fixed 2
rootio-openssl
root.io debian fixes for CVE-2021-23841
ReleasePackageFixed in
11 rootio-openssl 1.1.1j-1
12 rootio-openssl 1.1.1j-1

seal Red Hat 3 releases · 1 package

fixed 4
openssl
seal Red Hat fixes for CVE-2021-23841
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
9 openssl +1 1:3.2.2-6.el9_5+sp999

ubuntu 4 releases · 2 packages

fixed 6
openssl1-0 openssl
ubuntu fixes for CVE-2021-23841
ReleasePackageFixed in
18.04 openssl1-0 1.0.2n-1ubuntu5.6
18.04 openssl 1.1.1-1ubuntu2.1~18.04.8
18.04-ESM openssl1-0 1.0.2n-1ubuntu5.6
18.04-ESM openssl 1.1.1-1ubuntu2.1~18.04.8
20.04 openssl 1.1.1f-1ubuntu2.2
20.04-ESM openssl 1.1.1f-1ubuntu2.2

References

Show all 52 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.