Home / OpenSSL / OpenSSL / CVE-2021-3712
CVE-2021-3712: is it exploited, and which versions of OpenSSL are affected and fixed?
CVE-2021-3712 is an out-of-bounds read vulnerability in OpenSSL. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: openssl-src before 111.16.0 (GitHub advisory GHSA-q9wj-f4qw-6vfj). Fixed in 111.16.0 (GitHub advisory GHSA-q9wj-f4qw-6vfj). Severity: High (7.4, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:55 UTC.
What is CVE-2021-3712?
Read buffer overruns processing ASN.1 strings
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).
From the CVE record by openssl, last updated April 16, 2026, 14:11 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| OpenSSL | OpenSSL | 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) |
As the CVE record by openssl states it, last updated April 16, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| crates.io | openssl-src | < 111.16.0 | 111.16.0 | GHSA-q9wj-f4qw-6vfj |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 27, 2026. Summary: Read buffer overruns processing ASN.1 strings.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| openssl | openssl | from 1.0.2 before 1.0.2za | application |
| openssl | openssl | from 1.1.1 before 1.1.1l | application |
| debian | debian linux | 9.0 | operating system |
| debian | debian linux | 10.0 | operating system |
| debian | debian linux | 11.0 | operating system |
| netapp | clustered data ontap | all versions | application |
| netapp | clustered data ontap antivirus connector | all versions | application |
| netapp | e-series santricity os controller | from 11.0 through 11.50.2 | application |
| netapp | hci management node | all versions | application |
| netapp | manageability software development kit | all versions | application |
| netapp | santricity smi-s provider | all versions | application |
| netapp | solidfire | all versions | application |
| netapp | storage encryption | all versions | application |
| mcafee | epolicy orchestrator | before 5.10.0 | application |
| mcafee | epolicy orchestrator | 5.10.0 | application |
| tenable | nessus network monitor | before 6.0.0 | application |
| tenable | tenable.sc | from 5.16.0 through 5.19.1 | application |
| oracle | essbase | before 11.1.2.4.047 | application |
| oracle | essbase | from 21.0 before 21.3 | application |
| oracle | essbase | 21.3 | application |
| oracle | mysql connectors | through 8.0.27 | application |
| oracle | mysql enterprise monitor | through 8.0.25 | application |
| oracle | mysql server | from 5.7.0 through 5.7.35 | application |
| oracle | mysql server | from 8.0.0 through 8.0.26 | application |
| oracle | mysql workbench | through 8.0.26 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:05 UTC.
How severe is CVE-2021-3712?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H | CISA-ADP |
| High 7.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H | NVD |
| Medium 5.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-3712 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, April 16, 2026)
- EPSS
- 48.1% probability of exploitation activity in the next 30 days, percentile 98.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-125 Out-of-bounds Read
Where are the vendor advisories and references?
- https://www.openssl.org/news/secadv/20210824.txt
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=94d23fcff9b2a7a8368dfe52214d5c2569882c11
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=ccb0a11145ee72b042d10593a64eaf9e8a55ec12
- DSA-4963 vendor-advisory
- [tomcat-dev] 20210825 OpenSSL security announcement - do we need a Tomcat Native release? mailing-list
- [oss-security] 20210825 OpenSSL SM2 Decryption Buffer Overflow (CVE-2021-3711), Read buffer overruns processing ASN.1 strings (CVE-2021-3712) mailing-list
- [tomcat-dev] 20210826 Re: OpenSSL security announcement - do we need a Tomcat Native release? mailing-list
- https://security.netapp.com/advisory/ntap-20210827-0010/
- [debian-lts-announce] 20210926 [SECURITY] [DLA 2766-1] openssl security update mailing-list
- [debian-lts-announce] 20210930 [SECURITY] [DLA 2774-1] openssl1.0 security update mailing-list
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.tenable.com/security/tns-2021-16
- https://kc.mcafee.com/corporate/index?page=content&id=SB10366
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.tenable.com/security/tns-2022-02
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-244969.pdf
- GLSA-202209-02 vendor-advisory
- GLSA-202210-02 vendor-advisory
- https://security.netapp.com/advisory/ntap-20240621-0006/
- https://cert-portal.siemens.com/productcert/html/ssa-244969.html
- https://cert-portal.siemens.com/productcert/html/ssa-389290.html
- https://cert-portal.siemens.com/productcert/html/ssa-028723.html
- https://cert-portal.siemens.com/productcert/html/ssa-019200.html
Who found and reported it?
- Ingo Schwarze (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- August 16, 2021
- Published
- August 24, 2021, 14:50 UTC
- CVE record updated
- April 16, 2026, 14:11 UTC by openssl
- NVD
- Modified, last modified June 17, 2026, 04:05 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:55 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect OpenSSL?
- Apr 7, 2014CVE-2014-0160 Openssl: out-of-bounds read exploited
- Dec 1, 2026CVE-2026-123780 OpenSSL: denial of service (resources allocated without limits)
- Dec 1, 2026CVE-2026-120667 OpenSSL: out-of-bounds write (memory corruption)
- Dec 1, 2026CVE-2026-120666 OpenSSL: data authenticity not verified
- Dec 1, 2026CVE-2026-120665 OpenSSL: improper certificate validation
- Nov 24, 2026CVE-2026-84785 OpenSSL: denial of service (resources allocated without limits)
- Nov 18, 2026CVE-2026-95690 OpenSSL: denial of service (resources allocated without limits)
- Nov 18, 2026CVE-2026-84786 OpenSSL: NULL pointer dereference (crash)
Questions about CVE-2021-3712
Is CVE-2021-3712 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 48.1% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of OpenSSL are affected by CVE-2021-3712?
openssl-src before 111.16.0, per the GitHub advisory GHSA-q9wj-f4qw-6vfj. The tables above give every range the sources list.
Which version fixes CVE-2021-3712?
111.16.0, per the GitHub advisory GHSA-q9wj-f4qw-6vfj. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-3712?
High (7.4, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2021-3712?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.