CVE-2021-3711CWE-120

CVE-2021-3711

Critical · published August 24, 2021

Patch now

High probability of exploitation

CVSS calls it critical at 9.8. It sits in the 99.8th percentile for exploit probability.

CVSS v3.1
9.8
EPSS
88%
Percentile
99.8
In the wild
Unconfirmed
What it is

⚠️ A sneaky bug in SM2 decryption could lead to a buffer overflow—imagine a balloon that's just a little too full, ready to burst! 🎈 Think of this vulnerability like an overstuffed suitcase: you might think you've packed just the right amount, but when you try to close it (or call the decryption function a second time), the excess bursts out, potentially ruining everything around it! If an attacker manages to present SM2 encrypted data, they could overflow the buffer by up to 62 bytes, which might alter other critical data in memory. This could lead to unpredictable application behavior, crashes, or even worse—compromising sensitive information!

Put simply

Think of this vulnerability like an overstuffed suitcase: you might think you've packed just the right amount, but when you try to close it (or call the decryption function a second time), the excess bursts out, potentially ruining everything around it! This vulnerability arises from an incorrect calculation of the buffer size required by the EVP_PKEY_decrypt() function, allowing for a buffer overflow when the function is called a second time with a too-small buffer, leading to potential code execution or application instability.

What to do

If an attacker manages to present SM2 encrypted data, they could overflow the buffer by up to 62 bytes, which might alter other critical data in memory. This could lead to unpredictable application behavior, crashes, or even worse—compromising sensitive information! To protect against this vulnerability, upgrade your OpenSSL to version 1.1.1l or later immediately. Review your application code to ensure proper buffer handling when decrypting SM2 content, and consider implementing input validation to safeguard against unexpected data. 🛡️ You’ve got this! With a quick update, you’ll keep your applications safe and sound! 💪✨

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.87816 · 99.8th percentile
Weakness
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Published
2021-08-24T19:15Z
Affected products (42)
ProductVersionsFixed in
openssl/openssl≥ 1.1.1, < 1.1.1l1.1.1l
debian/debian_linuxall versions—
debian/debian_linuxall versions—
netapp/active_iq_unified_managerall versions—
netapp/active_iq_unified_managerall versions—
netapp/clustered_data_ontapall versions—
netapp/clustered_data_ontap_antivirus_connectorall versions—
netapp/e-series_santricity_os_controller≥ 11.0, ≤ 11.50.2—
netapp/hci_management_nodeall versions—
netapp/manageability_software_development_kitall versions—
netapp/oncommand_insightall versions—
netapp/oncommand_workflow_automationall versions—
netapp/santricity_smi-s_providerall versions—
netapp/snapcenterall versions—
netapp/solidfireall versions—
netapp/storage_encryptionall versions—
oracle/communications_cloud_native_core_security_edge_protection_proxyall versions—
oracle/communications_cloud_native_core_unified_data_repositoryall versions—
oracle/communications_session_border_controllerall versions—
oracle/communications_session_border_controllerall versions—
oracle/communications_unified_session_managerall versions—
oracle/communications_unified_session_managerall versions—
oracle/enterprise_communications_brokerall versions—
oracle/enterprise_communications_brokerall versions—
oracle/enterprise_session_border_controllerall versions—
oracle/enterprise_session_border_controllerall versions—
oracle/essbase< 11.1.2.4.4711.1.2.4.47
oracle/essbase≥ 21.1, < 21.321.3
oracle/health_sciences_inform_publisherall versions—
oracle/health_sciences_inform_publisherall versions—
oracle/jd_edwards_enterpriseone_tools< 9.2.6.39.2.6.3
oracle/jd_edwards_world_securityall versions—
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/peoplesoft_enterprise_peopletoolsall versions—
oracle/peoplesoft_enterprise_peopletoolsall versions—
oracle/peoplesoft_enterprise_peopletoolsall versions—
oracle/zfs_storage_appliance_kitall versions—
tenable/nessus_network_monitor≤ 5.13.1—
tenable/tenable.sc≥ 5.16.0, ≤ 5.19.1—
References (34)
http://www.openwall.com/lists/oss-security/2021/08/26/2 · [email protected]https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf · [email protected]https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=59f5e75f3bced8fc0e130d72a3f582cf7b480b46 · [email protected]https://lists.apache.org/thread.html/r18995de860f0e63635f3008fd2a6aca82394249476d21691e7c59c9e%40%3Cdev.tomcat.apache.org%3E · [email protected]https://lists.apache.org/thread.html/rad5d9f83f0d11fb3f8bb148d179b8a9ad7c6a17f18d70e5805a713d1%40%3Cdev.tomcat.apache.org%3E · [email protected]https://security.gentoo.org/glsa/202209-02 · [email protected]https://security.gentoo.org/glsa/202210-02 · [email protected]https://security.netapp.com/advisory/ntap-20210827-0010/ · [email protected]https://security.netapp.com/advisory/ntap-20211022-0003/ · [email protected]https://security.netapp.com/advisory/ntap-20240621-0006/ · [email protected]https://www.debian.org/security/2021/dsa-4963 · [email protected]https://www.openssl.org/news/secadv/20210824.txt · [email protected]https://www.oracle.com/security-alerts/cpuapr2022.html · [email protected]https://www.oracle.com/security-alerts/cpujan2022.html · [email protected]https://www.oracle.com/security-alerts/cpuoct2021.html · [email protected]https://www.tenable.com/security/tns-2021-16 · [email protected]https://www.tenable.com/security/tns-2022-02 · [email protected]http://www.openwall.com/lists/oss-security/2021/08/26/2 · af854a3a-2127-422b-91ae-364da2661108https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf · af854a3a-2127-422b-91ae-364da2661108https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=59f5e75f3bced8fc0e130d72a3f582cf7b480b46 · af854a3a-2127-422b-91ae-364da2661108https://lists.apache.org/thread.html/r18995de860f0e63635f3008fd2a6aca82394249476d21691e7c59c9e%40%3Cdev.tomcat.apache.org%3E · af854a3a-2127-422b-91ae-364da2661108https://lists.apache.org/thread.html/rad5d9f83f0d11fb3f8bb148d179b8a9ad7c6a17f18d70e5805a713d1%40%3Cdev.tomcat.apache.org%3E · af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202209-02 · af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202210-02 · af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20210827-0010/ · af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20211022-0003/ · af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20240621-0006/ · af854a3a-2127-422b-91ae-364da2661108https://www.debian.org/security/2021/dsa-4963 · af854a3a-2127-422b-91ae-364da2661108https://www.openssl.org/news/secadv/20210824.txt · af854a3a-2127-422b-91ae-364da2661108https://www.oracle.com/security-alerts/cpuapr2022.html · af854a3a-2127-422b-91ae-364da2661108https://www.oracle.com/security-alerts/cpujan2022.html · af854a3a-2127-422b-91ae-364da2661108https://www.oracle.com/security-alerts/cpuoct2021.html · af854a3a-2127-422b-91ae-364da2661108https://www.tenable.com/security/tns-2021-16 · af854a3a-2127-422b-91ae-364da2661108https://www.tenable.com/security/tns-2022-02 · af854a3a-2127-422b-91ae-364da2661108
EPSS history
Timeline
  • 24 AUG 14:50Z
    SM2 Decryption Buffer Overflow
    cvelistv5