1. Archivio CVE
  2. 2021
  3. CVE-2021-3712

CVE-2021-3712

7.4 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H 7.4 – Alta

Descrizione

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

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 9.0 –
debian debian linux 10.0 –
debian debian linux 11.0 –
mcafee epolicy orchestrator < 5.10.0 –
mcafee epolicy orchestrator 5.10.0 –
mcafee epolicy orchestrator 5.10.0 update_1 –
mcafee epolicy orchestrator 5.10.0 update_10 –
mcafee epolicy orchestrator 5.10.0 update_2 –
mcafee epolicy orchestrator 5.10.0 update_3 –
mcafee epolicy orchestrator 5.10.0 update_4 –
mcafee epolicy orchestrator 5.10.0 update_5 –
mcafee epolicy orchestrator 5.10.0 update_6 –
mcafee epolicy orchestrator 5.10.0 update_7 –
mcafee epolicy orchestrator 5.10.0 update_8 –
mcafee epolicy orchestrator 5.10.0 update_9 –
netapp clustered data ontap tutte –
netapp clustered data ontap antivirus connector tutte –
netapp e-series santricity os controller >= 11.0 <= 11.50.2 –
netapp hci management node tutte –
netapp manageability software development kit tutte –
netapp santricity smi-s provider tutte –
netapp solidfire tutte –
netapp storage encryption tutte –
openssl openssl >= 1.0.2 < 1.0.2za –
openssl openssl >= 1.1.1 < 1.1.1l –
oracle communications cloud native core console 1.9.0 –
oracle communications cloud native core security edge protection proxy 1.7.0 –
oracle communications cloud native core unified data repository 1.15.0 –
oracle communications session border controller 8.4 –
oracle communications session border controller 9.0 –
oracle communications unified session manager 8.2.5 –
oracle communications unified session manager 8.4.5 –
oracle enterprise communications broker 3.2.0 –
oracle enterprise communications broker 3.3.0 –
oracle enterprise session border controller 8.4 –
oracle enterprise session border controller 9.0 –
oracle essbase < 11.1.2.4.047 –
oracle essbase >= 21.0 < 21.3 –
oracle essbase 21.3 –
oracle health sciences inform publisher 6.2.1.0 –
oracle health sciences inform publisher 6.3.1.1 –
oracle jd edwards enterpriseone tools < 9.2.6.3 –
oracle jd edwards world security a9.4 –
oracle mysql connectors <= 8.0.27 –
oracle mysql enterprise monitor <= 8.0.25 –
oracle mysql server >= 5.7.0 <= 5.7.35 –
oracle mysql server >= 8.0.0 <= 8.0.26 –
oracle mysql workbench <= 8.0.26 –
oracle peoplesoft enterprise peopletools 8.57 –
oracle peoplesoft enterprise peopletools 8.58 –
oracle peoplesoft enterprise peopletools 8.59 –
oracle secure backup 18.1.0.1.0 –
oracle zfs storage appliance kit 8.8 –
siemens sinec infrastructure network services < 1.0.1.1 –
tenable nessus network monitor < 6.0.0 –
tenable tenable.sc >= 5.16.0 <= 5.19.1 –
Tutte le 340 vulnerabilità di Openssl

Tipo di vulnerabilità

CWE-125 Lettura fuori dai limiti (out-of-bounds read)

Il prodotto legge dati oltre la fine, o prima dell’inizio, del buffer previsto.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere la memoria
Riservatezza Aggirare i meccanismi di protezione
Disponibilità Interruzione del servizio: arresto o riavvio
Altro Dipende dal contesto

Come si previene

Sviluppo · Validazione dell’input Assume all input is malicious. Use an accept known good input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, boat may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as red or blue. Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright. To reduce the likelihood of introducing an out-of-bounds read, ensure that you validate and ensure correct calculations for any length argument, buffer size calculation, or offset. Be especially careful of relying on a sentinel (i.e. special character such as NUL) in untrusted inputs.
Architettura e progettazione · Scelta del linguaggio Use a language that provides appropriate memory abstractions.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 10.508 CVE di tipo CWE-125, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org