cve.bz

CVE-2021-3712 Out-of-bounds Read

7.4 highEPSS 48%Fix available

High (7.4). EPSS 48% estimated probability of exploitation activity in the next 30 days. Fixed in openssl-src 111.16.0.

On this page
ASN.1 strings are represented internally within OpenSSL as an ASN1_STRING structure which contains a buffer holding the string data and a field holding the buffer length. This contrasts with normal C strings which are repesented as a buffer for the string data which is terminated with a NUL (0) byte. Although not a strict requirement, ASN.1 strings that are parsed using OpenSSL's own "d2i" functions (and other similar parsing functions) as well as any string whose value has been set with the ASN1_STRING_set() function will additionally NUL terminate the byte array in the ASN1_STRING structure. However, it is possible for applications to directly construct valid ASN1_STRING structures which do not NUL terminate the byte array by directly setting the "data" and "length" fields in the ASN1_STRING array. This can also happen by using the ASN1_STRING_set0() function. Numerous OpenSSL functions that print ASN.1 data have been found to assume that the ASN1_STRING byte array will be NUL terminated, even though this is not guaranteed for strings that have been directly constructed. Where an application requests an ASN.1 structure to be printed, and where that ASN.1 structure contains ASN1_STRINGs that have been directly constructed by the application without NUL terminating the "data" field, then a read buffer overrun can occur. The same thing can also occur during name constraints processing of certificates (for example if a certificate has been directly constructed by the application instead of loading it via the OpenSSL parsing functions, and the certificate contains non NUL terminated ASN1_STRING structures). It can also occur in the X509_get1_email(), X509_REQ_get1_email() and X509_get1_ocsp() functions. If a malicious actor can cause an application to directly construct an ASN1_STRING and then process it through one of the affected OpenSSL functions then this issue could be hit. This might result in a crash (causing a Denial of Service attack). It could also result in the disclosure of private memory contents (such as private keys, or sensitive plaintext). Fixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k). Fixed in OpenSSL 1.0.2za (Affected 1.0.2-1.0.2y).

Severity

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS
48% (unchanged from 48% a week ago; 50% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th 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 2026-04-16. 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-125 Out-of-bounds Read
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-3712 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3712?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3712?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-3712 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.2za
openssl:opensslfrom 1.1.1 before 1.1.1l
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0
netapp:e-series_santricity_os_controllerfrom 11.0 through 11.50.2
mcafee:epolicy_orchestratorbefore 5.10.0
mcafee:epolicy_orchestrator5.10.0
mcafee:epolicy_orchestrator5.10.0:update_1
mcafee:epolicy_orchestrator5.10.0:update_10
mcafee:epolicy_orchestrator5.10.0:update_2
mcafee:epolicy_orchestrator5.10.0:update_3
mcafee:epolicy_orchestrator5.10.0:update_4
mcafee:epolicy_orchestrator5.10.0:update_5
mcafee:epolicy_orchestrator5.10.0:update_6
mcafee:epolicy_orchestrator5.10.0:update_7
mcafee:epolicy_orchestrator5.10.0:update_8
mcafee:epolicy_orchestrator5.10.0:update_9
tenable:nessus_network_monitorbefore 6.0.0
tenable:tenable.scfrom 5.16.0 through 5.19.1
oracle:essbasebefore 11.1.2.4.047
oracle:essbasefrom 21.0 before 21.3
oracle:essbase21.3
oracle:mysql_connectorsthrough 8.0.27
oracle:mysql_enterprise_monitorthrough 8.0.25
oracle:mysql_serverfrom 5.7.0 through 5.7.35
oracle:mysql_serverfrom 8.0.0 through 8.0.26
oracle:mysql_workbenchthrough 8.0.26
oracle:peoplesoft_enterprise_peopletools8.57
oracle:peoplesoft_enterprise_peopletools8.58
oracle:peoplesoft_enterprise_peopletools8.59
oracle:secure_backup18.1.0.1.0
oracle:zfs_storage_appliance_kit8.8
siemens:sinec_infrastructure_network_servicesbefore 1.0.1.1
oracle:communications_cloud_native_core_console1.9.0
oracle:communications_cloud_native_core_security_edge_protection_proxy1.7.0
oracle:communications_cloud_native_core_unified_data_repository1.15.0
oracle:communications_session_border_controller8.4
oracle:communications_session_border_controller9.0
oracle:communications_unified_session_manager8.2.5
oracle:communications_unified_session_manager8.4.5
oracle:enterprise_communications_broker3.2.0
oracle:enterprise_communications_broker3.3.0
oracle:enterprise_session_border_controller8.4
oracle:enterprise_session_border_controller9.0
oracle:health_sciences_inform_publisher6.2.1.0
oracle:health_sciences_inform_publisher6.3.1.1
oracle:jd_edwards_enterpriseone_toolsbefore 9.2.6.3
oracle:jd_edwards_world_securitya9.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-q9wj-f4qw-6vfjcrates.ioopenssl-src<111.16.0111.16.0
RUSTSEC-2021-0098crates.ioopenssl-src>=0.0.0-0 <111.16.0111.16.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9openssl1.1.0l-1~deb9u4DLA-2766-1
Debian9openssl1.01.0.2u-1~deb9u6DLA-2774-1
Debian10openssl1.1.1d-0+deb10u7DSA-4963-1
Debian11openssl1.1.1k-1+deb11u1DSA-4963-1
Debian12, 13, 14openssl1.1.1l-1DEBIAN-CVE-2021-3712
Ubuntu18.04:LTSopenssl1.1.1-1ubuntu2.1~18.04.13UBUNTU-CVE-2021-3712 USN-5051-1
Ubuntu18.04:LTSopenssl1.01.0.2n-1ubuntu5.7UBUNTU-CVE-2021-3712 USN-5051-3
Ubuntu20.04:LTSedk20~20191122.bd85bf54-2ubuntu3.3UBUNTU-CVE-2021-3712 USN-5088-1
Ubuntu20.04:LTSopenssl1.1.1f-1ubuntu2.8UBUNTU-CVE-2021-3712 USN-5051-1
Ubuntu22.04:LTSedk22022.02-3ubuntu0.22.04.4UBUNTU-CVE-2021-3712 USN-7894-1
Ubuntu22.04:LTSopenssl1.1.1l-1ubuntu1UBUNTU-CVE-2021-3712
Ubuntu24.04:LTSedk22024.02-2ubuntu0.6USN-7894-1
UbuntuPro:14.04:LTSopenssl1.0.1f-1ubuntu2.27+esm4UBUNTU-CVE-2021-3712 USN-5051-2
UbuntuPro:16.04:LTSopenssl1.0.2g-1ubuntu4.20+esm1UBUNTU-CVE-2021-3712 USN-5051-2
UbuntuPro:16.04:LTS, Pro:18.04:LTSedk2no fix listedUBUNTU-CVE-2021-3712
UbuntuPro:FIPS-updates:16.04:LTSopenssl1.0.2g-1ubuntu4.fips.4.20.1UBUNTU-CVE-2021-3712
UbuntuPro:FIPS-updates:18.04:LTSopenssl1.1.1-1ubuntu2.fips.2.1~18.04.13.2UBUNTU-CVE-2021-3712
2 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationopenssl, openssl-libs, openssl-perl and 3 more1:1.0.2k-23.el7_9RHSA-2022:0064
Red Hatenterprise_linux:7::computenodeopenssl-perl, openssl-devel, openssl-static and 1 more1:1.0.2k-23.el7_9RHSA-2022:0064
Red Hatenterprise_linux:8::baseosopenssl, openssl-libs, openssl-perl and 4 more1:1.1.1k-5.el8_5RHSA-2021:5226
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
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_security, jbcs-httpd24-mod_security-debuginfo0:2.9.2-67.GA.jbcs.el7RHSA-2021:4614
25 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 3 moreopenssl-1_11.1.0i-14.21.2SUSE-SU-2021:2968-1
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.18.1SUSE-SU-2021:2831-1
SUSEEnterprise Storage 6, Linux Enterprise Module for Legacy 15 SP2, Linux Enterprise Module for Legacy 15 SP3 and 5 moreopenssl-1_0_01.0.2p-3.43.1SUSE-SU-2021:2994-1
SUSEEnterprise Storage 6, Linux Enterprise Module for Legacy 15 SP2, Linux Enterprise Module for Legacy 15 SP3 and 8 moreopenssl-1_0_01.0.2p-3.40.2SUSE-SU-2021:2827-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 4 moreopenssl1.0.2j-60.69.3SUSE-SU-2021:2825-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 4 moreopenssl1.0.2j-60.72.2SUSE-SU-2021:3144-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.60.1SUSE-SU-2021:2829-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.63.1SUSE-SU-2021:2967-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3openssl-1_11.1.1d-11.27.1SUSE-SU-2021:2830-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3openssl-1_11.1.1d-11.30.1SUSE-SU-2021:2966-1
SUSELinux Enterprise Micro 5.1openssl-1_11.1.1d-11.30.1SUSE-SU-2021:2966-2
SUSELinux Enterprise Module for Legacy 12, Linux Enterprise Server for SAP Applications 12 SP3, Linux Enterprise Server for SAP Applications 12 SP4 and 1 morecompat-openssl0980.9.8j-106.27.2SUSE-SU-2021:2852-1
9 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2openssl-1_0_01.0.2p-lp152.8.15.1openSUSE-SU-2021:1189-1
openSUSELeap 15.2openssl-1_0_01.0.2p-lp152.8.18.1openSUSE-SU-2021:1261-1
openSUSELeap 15.2openssl-1_11.1.1d-lp152.7.21.1openSUSE-SU-2021:1188-1
openSUSELeap 15.2openssl-1_11.1.1d-lp152.7.24.1openSUSE-SU-2021:1248-1
openSUSELeap 15.3openssl-1_0_01.0.2p-3.40.2openSUSE-SU-2021:2827-1
openSUSELeap 15.3openssl-1_0_01.0.2p-3.43.1openSUSE-SU-2021:2994-1
openSUSELeap 15.3openssl-1_11.1.1d-11.27.1openSUSE-SU-2021:2830-1
openSUSELeap 15.3openssl-1_11.1.1d-11.30.1openSUSE-SU-2021:2966-1
openSUSETumbleweednmap7.93-1.1openSUSE-SU-2024:12303-1
openSUSETumbleweedopenssl-1_0_01.0.2u-6.2openSUSE-SU-2024:11126-1
openSUSETumbleweedopenssl-1_11.1.1l-1.2openSUSE-SU-2024:11127-1
Rocky Linux8openssl1:1.1.1k-5.el8_5RLSA-2021:5226
Alpinev3.11, v3.12, v3.13 and 7 moreopenssl1.1.1l-r0ALPINE-CVE-2021-3712
Alpinev3.15, v3.16openssl, openssl31.1.1l-r0ALPINE-CVE-2021-3712
Alpinev3.17, v3.18openssl, openssl1.1-compat1.1.1l-r0ALPINE-CVE-2021-3712
Azure Linux2openssl1.1.1k-11AZL-6780

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; 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

The following Red Hat products do not ship the affected OpenSSL component but rely on the Red Hat Enterprise Linux to consume them:

* Red Hat Satellite

* Red Hat Update Infrastructure

* Red Hat CloudForms

The Red Hat Advanced Cluster Management for Kubernetes is using the vulnerable version of the library, however the vulnerable code path is not reachable.

compat-openssl10 is deprecated and has been removed from RHEL 9 and later. No further patches would be available for this component except on a case by case basis.

Red Hat's mitigation

Customers should make an attempt to run current binaries/architectures and not rely on compatibility layers to run older binaries/architectures. In case older binaries/architectures are needed, sandboxing should be used to address such problems and guard the bug.

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
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-pkcs11-0:0.4.10-22.el8jbcsFixed 2021-11-10RHSA-2021:4614
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/management-ingress-rhel8Affected
Red Hat Enterprise Linux 6opensslOut of support scope
Red Hat Enterprise Linux 6openssl098eOut of support scope
Red Hat Enterprise Linux 7openssl098eOut of support scope
Red Hat Enterprise Linux 8compat-openssl10Will not fix
Red Hat Enterprise Linux 9opensslNot affected
Red Hat JBoss Web Server 3opensslOut of support scope
23 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-3712.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-111-07Siemens SCALANCE2026-04-14Communications, Information Technology, Critical ManufacturingSCALANCE W721-1 RJ45 (6GK5721-1FC00-0AA0), SCALANCE W721-1 RJ45 (6GK5721-1FC00-0AB0), SCALANCE W722-1 RJ45 (6GK5722-1FC00-0AA0) and 46 morenone listed
ICSA-25-226-21Siemens BFCClient2025-08-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesBFCClientnone listed
ICSA-23-143-02Hitachi Energy's RTU500 Series Product (UPDATE B)2023-05-05EnergyRTU500 series CMU Firmware: >=12.0.1|<=12.0.15, RTU500 series CMU Firmware: >=12.2.1|<=12.2.12, RTU500 series CMU Firmware: >=12.4.1|<=12.4.12 and 5 morenone listed
ICSA-22-130-06Mitsubishi Electric MELSOFT GT OPC UA2022-05-10Critical ManufacturingGT SoftGOT2000: Versions 1.215Z to 1.270G, MELSOFT GT OPC UA Client: Versions 1.00A to 1.02Cnone listed
ICSA-22-069-09Siemens SINEC INS2022-03-08MultipleSINEC INSnone listed
ICSA-25-259-05Siemens OpenSSL Vulnerability in Industrial Products2022-02-08Critical ManufacturingIndustrial Edge - Machine Insight App, Industrial Edge - PROFINET IO Connector, RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2) and 47 morenone 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.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON