CVE-2021-3712

libssl3t64: ASN.1 strings are represented internally within OpenSSL as an ASN1_STRINGstructure which contains a buffer holding th...

CVE-2021-3712 is fixed in 15 products on 1 platform, first by libssl1.0.0 1.0.2n-1ubuntu5.7, released August 23, 2021. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
7.4
Medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.4808
98th percentile

ASN.1 strings are represented internally within OpenSSL as an ASN1_STRINGstructure which contains a buffer holding the string data and a fieldholding the buffer length. This contrasts with normal C strings which arerepesented 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 parsedusing 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_STRINGstructure. However, it is possible for applications to directly constructvalid ASN1_STRING structures which do not NUL terminate the byte array bydirectly setting the "data" and "length" fields in the ASN1_STRING array.This can also happen by using the ASN1_STRING_set0() function. NumerousOpenSSL functions that print ASN.1 data have been found to assume that theASN1_STRING byte array will be NUL terminated, even though this is notguaranteed for strings that have been directly constructed. Where anapplication requests an ASN.1 structure to be printed, and where that ASN.1structure contains ASN1_STRINGs that have been directly constructed by theapplication without NUL terminating the "data" field, then a read bufferoverrun can occur. The same thing can also occur during name constraintsprocessing of certificates (for example if a certificate has been directlyconstructed by the application instead of loading it via the OpenSSLparsing functions, and the certificate contains non NUL terminatedASN1_STRING structures). It can also occur in the X509_get1_email(),X509_REQ_get1_email() and X509_get1_ocsp() functions. If a malicious actorcan cause an application to directly construct an ASN1_STRING and thenprocess it through one of the affected OpenSSL functions then this issuecould be hit. This might result in a crash (causing a Denial of Serviceattack). 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).

Where it's fixed

ProductFixed inFixReleased
Linux
libssl1.0.0 · Ubuntu 18.04.6 LTS (bionic) 1.0.2n-1ubuntu5.7 libssl1.0.0 1.0.2n-1ubuntu5.7 Aug 23, 2021
libssl1.1 · Ubuntu 18.04.6 LTS (bionic) 1.1.1-1ubuntu2.1~18.04.13 libssl1.1 1.1.1-1ubuntu2.1~18.04.13 Aug 23, 2021
libssl1.1 · Ubuntu 20.04 LTS (focal) 1.1.1f-1ubuntu2.8 libssl1.1 1.1.1f-1ubuntu2.8 Aug 23, 2021
libssl1.1 · Ubuntu 22.04.1 LTS (jammy) 1.1.1l-1ubuntu1 libssl1.1 1.1.1l-1ubuntu1 Aug 23, 2021
libssl3t64 · Ubuntu 24.10 (oracular) 1.1.1l-1ubuntu1 libssl3t64 1.1.1l-1ubuntu1 Aug 24, 2021
libssl3t64 · Ubuntu 25.04 (plucky) 1.1.1l-1ubuntu1 libssl3t64 1.1.1l-1ubuntu1 Aug 24, 2021
openssl · RHEL 8 1:1.1.1k-5.el8_5 RHSA-2021:5226 Dec 21, 2021
openssl · Ubuntu 18.04.6 LTS (bionic) 1.1.1-1ubuntu2.1~18.04.13 openssl 1.1.1-1ubuntu2.1~18.04.13 Aug 23, 2021
openssl · Ubuntu 20.04 LTS (focal) 1.1.1f-1ubuntu2.8 openssl 1.1.1f-1ubuntu2.8 Aug 23, 2021
openssl · Ubuntu 22.04.1 LTS (jammy) 1.1.1l-1ubuntu1 openssl 1.1.1l-1ubuntu1 Aug 23, 2021
openssl · Ubuntu 24.10 (oracular) 1.1.1l-1ubuntu1 openssl 1.1.1l-1ubuntu1 Aug 24, 2021
openssl · Ubuntu 25.04 (plucky) 1.1.1l-1ubuntu1 openssl 1.1.1l-1ubuntu1 Aug 24, 2021
openssl · ol 8 1:1.1.1k-5.el8_5 ELSA-2021-5226 Dec 22, 2021
openssl · rocky 8 1:1.1.1k-5.el8_5 RLSA-2021:5226 Dec 21, 2021
openssl-debugsource · ol 8 2:1.1.1k-5.ksplice1.el8_5 ELSA-2021-9632 Dec 23, 2021
openssl-devel · RHEL 8 1:1.1.1k-5.el8_5 RHSA-2021:5226 Dec 21, 2021
openssl-devel · ol 8 1:1.1.1k-5.el8_5 ELSA-2021-5226 Dec 22, 2021
openssl-libs · RHEL 8 1:1.1.1k-5.el8_5 RHSA-2021:5226 Dec 21, 2021
openssl-libs · ol 8 1:1.1.1k-5.el8_5 ELSA-2021-5226 Dec 22, 2021
openssl-perl · RHEL 8 1:1.1.1k-5.el8_5 RHSA-2021:5226 Dec 21, 2021
openssl-perl · ol 8 1:1.1.1k-5.el8_5 ELSA-2021-5226 Dec 22, 2021
openssl-static · ol 8 2:1.1.1k-5.ksplice1.el8_5 ELSA-2021-9632 Dec 23, 2021
openssl1.0 · Ubuntu 18.04.6 LTS (bionic) 1.0.2n-1ubuntu5.7 openssl1.0 1.0.2n-1ubuntu5.7 Aug 23, 2021
ovmf · Ubuntu 20.04 LTS (focal) 0~20191122.bd85bf54-2ubuntu3.3 ovmf 0~20191122.bd85bf54-2ubuntu3.3 Sep 13, 2021
ovmf · Ubuntu 22.04.1 LTS (jammy) 2022.02-3ubuntu0.22.04.4 ovmf 2022.02-3ubuntu0.22.04.4 Aug 12, 2025
ovmf-ia32 · Ubuntu 22.04.1 LTS (jammy) 2022.02-3ubuntu0.22.04.4 ovmf-ia32 2022.02-3ubuntu0.22.04.4 Aug 12, 2025
qemu-efi · Ubuntu 20.04 LTS (focal) 0~20191122.bd85bf54-2ubuntu3.3 qemu-efi 0~20191122.bd85bf54-2ubuntu3.3 Sep 13, 2021
qemu-efi · Ubuntu 22.04.1 LTS (jammy) 2022.02-3ubuntu0.22.04.4 qemu-efi 2022.02-3ubuntu0.22.04.4 Aug 12, 2025
qemu-efi-aarch64 · Ubuntu 20.04 LTS (focal) 0~20191122.bd85bf54-2ubuntu3.3 qemu-efi-aarch64 0~20191122.bd85bf54-2ubuntu3.3 Sep 13, 2021
qemu-efi-aarch64 · Ubuntu 22.04.1 LTS (jammy) 2022.02-3ubuntu0.22.04.4 qemu-efi-aarch64 2022.02-3ubuntu0.22.04.4 Aug 12, 2025
qemu-efi-arm · Ubuntu 20.04 LTS (focal) 0~20191122.bd85bf54-2ubuntu3.3 qemu-efi-arm 0~20191122.bd85bf54-2ubuntu3.3 Sep 13, 2021
qemu-efi-arm · Ubuntu 22.04.1 LTS (jammy) 2022.02-3ubuntu0.22.04.4 qemu-efi-arm 2022.02-3ubuntu0.22.04.4 Aug 12, 2025

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.