Back to the CVE list
CVE-2021-3711Suited to automated attack · CISA

SM2 Decryption Buffer Overflow

CVSS score

9.8

EPSS probability

%87.8

Risk score

8.6

Published

5 y ago

Official patch verified

Etkilenen ürün ve sürüm için yayımlanan güvenlik güncellemesini uygulayın.

Impact on My Inventory

Only the personal products you have added to your account are assessed; an organisation's inventory does not appear here.

Checking session…

Vulnerability description

DayBreach CVE AI Research

CVE-2021-3711 has vendor, distribution, patch and security-source records on file. We can compare them and prepare an explanation linked to the evidence.

In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Typically an application will call this function twice. The first time, on entry, the "out" parameter can be NULL and, on exit, the "outlen" parameter is populated with the buffer size required to hold the decrypted plaintext. The application can then allocate a sufficiently sized buffer and call EVP_PKEY_decrypt() again, but this time passing a non-NULL value for the "out" parameter. A bug in the implementation of the SM2 decryption code means that the calculation of the buffer size required to hold the plaintext returned by the first call to EVP_PKEY_decrypt() can be smaller than the actual size required by the second call. This can lead to a buffer overflow when EVP_PKEY_decrypt() is called by the application a second time with a buffer that is too small. A malicious attacker who is able present SM2 content for decryption to an application could cause attacker chosen data to overflow the buffer by up to a maximum of 62 bytes altering the contents of other data held after the buffer, possibly changing application behaviour or causing the application to crash. The location of the buffer is application dependent but is typically heap allocated. Fixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k).

IMPACT: Affected Products and Software

Affected Products

The following products are affected by CVE-2021-3711 vulnerability. Where our threat engine knows the exact affected versions, they are listed below.

IDVENDORPRODUCTACTION
1opensslopenssl View
2opensslopenssl View
3debiandebian linux View
4debiandebian linux View
5netappactive iq unified manager View
6netappclustered data ontap View
7netappclustered data ontap antivirus connector View
8netappe-series santricity os controller View
9netapphci management node View
10netappmanageability software development kit View
11netapponcommand insight View
12netapponcommand workflow automation View
13netappsantricity smi-s provider View
14netappsnapcenter View
15netappsolidfire View
16netappstorage encryption View
17oraclecommunications cloud native core security edge protection proxy View
18oraclecommunications cloud native core unified data repository View
19oraclecommunications session border controller View
20oraclecommunications session border controller View
21oraclecommunications unified session manager View
22oraclecommunications unified session manager View
23oracleenterprise communications broker View
24oracleenterprise communications broker View
25oracleenterprise session border controller View
26oracleenterprise session border controller View
27oracleessbase View
28oracleessbase View
29oraclehealth sciences inform publisher View
30oraclehealth sciences inform publisher View
31oraclejd edwards enterpriseone tools View
32oraclejd edwards world security View
33oraclemysql connectors View
34oraclemysql enterprise monitor View
35oraclemysql server View
36oraclemysql server View
37oraclepeoplesoft enterprise peopletools View
38oraclepeoplesoft enterprise peopletools View
39oraclepeoplesoft enterprise peopletools View
40oraclezfs storage appliance kit View
41tenablenessus network monitor View
42tenabletenable.sc View
Total affected vendors: 5|Products: 42

RED HAT CSAF/VEX: Product Impact Check

Red Hat has not yet published a CSAF/VEX impact record for this CVE. This does not mean “not affected”.

SCORING: CVSS from Multiple Sources

CVSS Scores

The Common Vulnerability Scoring System is a standardised framework for assessing the severity of vulnerabilities in software and systems. We collect and display CVSS scores from several sources for each CVE.

SCOREVERSIONSEVERITYVECTORSOURCE
9.8CVSS V31CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD
7.5CVSS V2—AV:N/AC:L/Au:N/C:P/I:P/A:PNVD

Patch and Remediation Guide

Solution & Remediation Advisory

Patch verified

3 doğrulanmış yama veya düzeltilmiş sürüm kanıtı bulundu.

nvd

NVD tarafından Patch olarak etiketlenmiş referans

Open source
nvd

NVD tarafından Patch olarak etiketlenmiş referans

Open source
nvd

NVD tarafından Patch olarak etiketlenmiş referans

Open source
Confirm the affected product and version against the source evidence above.
Restrict access to internet-facing services and apply network segmentation.
Apply the official update named in the evidence only to the matching product and version.
Monitor server logs and network endpoints for signs of anomalous execution.

Public exploit and active exploitation status

Verified exploit intelligence

No verified public PoC, exploit repository or Metasploit module has been found for this CVE yet.

Weakness Classification and Attack Patterns (CWE & CAPEC)

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorises the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-3711 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-3711 weaknesses.

Attack Vector and Accessibility

ExposureAğ üzerinden
PermissionsGerekmiyor
UserGerekmiyor

Official Sources and Advisories

CVSS Vector Radar Chart

9.8 / 10
Attack VectorNetworkComplexityLowPrivilegesNoneUser Interact.NoneConfidentialityLowIntegrityNoneAvailabilityHigh

Vulnerability Scoring Details

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone required
User InteractionNone required
Confidentiality (Gizlilik)Low
Integrity (Bütünlük)None
Availability (Erişilebilirlik)High

Yama doğrulandı

3 doğrulanmış yama veya düzeltilmiş sürüm kanıtı bulundu.

Follow the vendor

O
openssl logo
openssl
D
debian logo
debian
N
netapp logo
netapp
O
oracle logo
oracle
T
tenable logo
tenable

Weakness Type (CWE & CAPEC)

Similar Vulnerabilities

Get this vulnerability through the API

Affected products, version ranges, exploitation status and patch information in a single request, with a free key.

curl -H "x-api-key: $DAYBREACH_API_KEY" \
  "https://api.enginteksut.com.tr/api/v1/intel/cves/CVE-2021-3711"