CVE-2021-3712

high
New! CVE Severity Now Using CVSS v3

The calculated severity for CVEs has been updated to use CVSS v3 by default. CVEs that do not have a CVSS v3 score will fall back CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Description

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

References

https://www.openssl.org/news/secadv/20210824.txt

https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=94d23fcff9b2a7a8368dfe52214d5c2569882c11

https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=ccb0a11145ee72b042d10593a64eaf9e8a55ec12

https://www.debian.org/security/2021/dsa-4963

https://lists.apache.org/thread.html/[email protected]%3Cdev.tomcat.apache.org%3E

http://www.openwall.com/lists/oss-security/2021/08/26/2

https://lists.apache.org/thread.html/[email protected]%3Cdev.tomcat.apache.org%3E

https://security.netapp.com/advisory/ntap-20210827-0010/

https://www.tenable.com/security/tns-2021-16

https://lists.debian.org/debian-lts-announce/2021/09/msg00014.html

https://lists.debian.org/debian-lts-announce/2021/09/msg00021.html

https://www.oracle.com/security-alerts/cpuoct2021.html

https://kc.mcafee.com/corporate/index?page=content&id=SB10366

Details

Source: MITRE

Published: 2021-08-24

Updated: 2021-10-22

Type: CWE-125

Risk Information

CVSS v2

Base Score: 5.8

Vector: AV:N/AC:M/Au:N/C:P/I:N/A:P

Impact Score: 4.9

Exploitability Score: 8.6

Severity: MEDIUM

CVSS v3

Base Score: 7.4

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

Impact Score: 5.2

Exploitability Score: 2.2

Severity: HIGH

Tenable Plugins

View all (63 total)

IDNameProductFamilySeverity
155533EulerOS Virtualization 2.9.0 : openssl (EulerOS-SA-2021-2770)NessusHuawei Local Security Checks
critical
155531EulerOS Virtualization 2.9.1 : shim (EulerOS-SA-2021-2758)NessusHuawei Local Security Checks
high
155496EulerOS Virtualization 2.9.0 : shim (EulerOS-SA-2021-2785)NessusHuawei Local Security Checks
high
155478EulerOS Virtualization 2.9.1 : openssl (EulerOS-SA-2021-2733)NessusHuawei Local Security Checks
critical
155287EulerOS 2.0 SP5 : openssl111d (EulerOS-SA-2021-2668)NessusHuawei Local Security Checks
critical
155284EulerOS 2.0 SP5 : openssl098e (EulerOS-SA-2021-2667)NessusHuawei Local Security Checks
high
155249EulerOS 2.0 SP9 : openssl (EulerOS-SA-2021-2717)NessusHuawei Local Security Checks
critical
155240EulerOS 2.0 SP5 : openssl (EulerOS-SA-2021-2666)NessusHuawei Local Security Checks
high
155238EulerOS 2.0 SP9 : openssl (EulerOS-SA-2021-2692)NessusHuawei Local Security Checks
critical
155223RHEL 7 : Red Hat JBoss Core Services Apache HTTP Server 2.4.37 SP10 (RHSA-2021:4614)NessusRed Hat Local Security Checks
critical
154911Amazon Linux 2 : openssl (ALAS-2021-1721)NessusAmazon Linux Local Security Checks
high
154799EulerOS 2.0 SP8 : compat-openssl10 (EulerOS-SA-2021-2625)NessusHuawei Local Security Checks
high
154790EulerOS 2.0 SP8 : openssl (EulerOS-SA-2021-2639)NessusHuawei Local Security Checks
critical
154686F5 Networks BIG-IP : OpenSSL vulnerability (K19559038)NessusF5 Networks Local Security Checks
high
154655Oracle MySQL Workbench < 8.0.27 Multiple Vulnertabilities (Oct 2021)NessusWindows
critical
154267Oracle MySQL Enterprise Monitor (Oct 2021 CPU)NessusCGI abuses
high
153900Amazon Linux 2 : openssl11 (ALAS-2021-1714)NessusAmazon Linux Local Security Checks
high
153863Amazon Linux AMI : openssl (ALAS-2021-1541)NessusAmazon Linux Local Security Checks
high
153846Debian DLA-2774-1 : openssl1.0 - LTS security updateNessusDebian Local Security Checks
high
153741Debian DLA-2766-1 : openssl - LTS security updateNessusDebian Local Security Checks
high
153591Ubuntu 20.04 LTS / 21.04 : EDK II vulnerabilities (USN-5088-1)NessusUbuntu Local Security Checks
critical
153589Tenable SecurityCenter OpenSSL < 1.1.1l Multiple Vulnerabilities (TNS-2021-16)NessusMisc.
critical
153489SUSE SLES12 Security Update : openssl (SUSE-SU-2021:3144-1)NessusSuSE Local Security Checks
high
153484SUSE SLES11 Security Update : openssl (SUSE-SU-2021:14802-1)NessusSuSE Local Security Checks
high
153477SUSE SLES11 Security Update : openssl1 (SUSE-SU-2021:14801-1)NessusSuSE Local Security Checks
high
153395openSUSE 15 Security Update : openssl-1_0_0 (openSUSE-SU-2021:1261-1)NessusSuSE Local Security Checks
high
153246SUSE SLES12 Security Update : compat-openssl098 (SUSE-SU-2021:3019-1)NessusSuSE Local Security Checks
high
153218openSUSE 15 Security Update : openssl-1_1 (openSUSE-SU-2021:1248-1)NessusSuSE Local Security Checks
high
153198SUSE SLES15 Security Update : openssl-1_0_0 (SUSE-SU-2021:2994-1)NessusSuSE Local Security Checks
high
153192SUSE SLED12 / SLES12 Security Update : openssl-1_0_0 (SUSE-SU-2021:2995-1)NessusSuSE Local Security Checks
high
153191SUSE SLED12 / SLES12 Security Update : openssl-1_1 (SUSE-SU-2021:2996-1)NessusSuSE Local Security Checks
high
153188openSUSE 15 Security Update : openssl-1_0_0 (openSUSE-SU-2021:2994-1)NessusSuSE Local Security Checks
high
153125SUSE SLES15 Security Update : openssl-1_1 (SUSE-SU-2021:2967-1)NessusSuSE Local Security Checks
high
153120SUSE SLES15 Security Update : openssl-1_1 (SUSE-SU-2021:2968-1)NessusSuSE Local Security Checks
high
153119SUSE SLED15 / SLES15 Security Update : openssl-1_1 (SUSE-SU-2021:2966-1)NessusSuSE Local Security Checks
high
153115openSUSE 15 Security Update : openssl-1_1 (openSUSE-SU-2021:2966-1)NessusSuSE Local Security Checks
high
153044Photon OS 4.0: Openssl PHSA-2021-4.0-0094NessusPhotonOS Local Security Checks
critical
152890SUSE SLES12 Security Update : compat-openssl098 (SUSE-SU-2021:2852-1)NessusSuSE Local Security Checks
high
152886Photon OS 3.0: Openssl PHSA-2021-3.0-0290NessusPhotonOS Local Security Checks
high
152885Photon OS 3.0: Nxtgn PHSA-2021-3.0-0290NessusPhotonOS Local Security Checks
critical
152882Photon OS 2.0: Nxtgn PHSA-2021-2.0-0383NessusPhotonOS Local Security Checks
critical
152881Photon OS 2.0: Openssl PHSA-2021-2.0-0383NessusPhotonOS Local Security Checks
high
152878Photon OS 1.0: Openssl PHSA-2021-1.0-0429NessusPhotonOS Local Security Checks
high
152870Ubuntu 18.04 LTS : OpenSSL vulnerability (USN-5051-3)NessusUbuntu Local Security Checks
high
152868Ubuntu 16.04 LTS : OpenSSL vulnerability (USN-5051-2)NessusUbuntu Local Security Checks
high
152841openSUSE 15 Security Update : openssl-1_1 (openSUSE-SU-2021:1188-1)NessusSuSE Local Security Checks
high
152839openSUSE 15 Security Update : openssl-1_0_0 (openSUSE-SU-2021:1189-1)NessusSuSE Local Security Checks
high
152818FreeBSD : OpenSSL -- multiple vulnerabilities (96811d4a-04ec-11ec-9b84-d4c9ef517024)NessusFreeBSD Local Security Checks
critical
152811SUSE SLES11 Security Update : openssl1 (SUSE-SU-2021:14792-1)NessusSuSE Local Security Checks
high
152810SUSE SLES11 Security Update : openssl (SUSE-SU-2021:14791-1)NessusSuSE Local Security Checks
high
152808SUSE SLED12 / SLES12 Security Update : openssl-1_1 (SUSE-SU-2021:2833-1)NessusSuSE Local Security Checks
high
152807SUSE SLES12 Security Update : openssl (SUSE-SU-2021:2825-1)NessusSuSE Local Security Checks
high
152805SUSE SLES15 Security Update : openssl-1_1 (SUSE-SU-2021:2829-1)NessusSuSE Local Security Checks
high
152803SUSE SLES15 Security Update : openssl-1_0_0 (SUSE-SU-2021:2827-1)NessusSuSE Local Security Checks
high
152802SUSE SLED12 / SLES12 Security Update : openssl-1_0_0 (SUSE-SU-2021:2826-1)NessusSuSE Local Security Checks
high
152801SUSE SLES15 Security Update : openssl-1_1 (SUSE-SU-2021:2831-1)NessusSuSE Local Security Checks
high
152800SUSE SLED15 / SLES15 Security Update : openssl-1_1 (SUSE-SU-2021:2830-1)NessusSuSE Local Security Checks
high
152799openSUSE 15 Security Update : openssl-1_0_0 (openSUSE-SU-2021:2827-1)NessusSuSE Local Security Checks
high
152798openSUSE 15 Security Update : openssl-1_1 (openSUSE-SU-2021:2830-1)NessusSuSE Local Security Checks
high
152784Ubuntu 18.04 LTS / 20.04 LTS / 21.04 : OpenSSL vulnerabilities (USN-5051-1)NessusUbuntu Local Security Checks
critical
152783Debian DSA-4963-1 : openssl - security updateNessusDebian Local Security Checks
high
152782OpenSSL 1.1.1 < 1.1.1l VulnerabilityNessusWeb Servers
critical
152780OpenSSL 1.0.2 < 1.0.2za VulnerabilityNessusWeb Servers
high