Live threats

All CVEs / Openssl

CVE-2021-3711Openssl

Critical 9.8 No auth neededHigh EPSS

Priority
83
CVSS 3.1
9.8
EPSS
88.6%
probability of exploitation in 30 days · percentile 100
Auth required
No
Published
Aug 24, 2021
Updated
Oct 8, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-120
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Openssl.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io openssl-src < 111.16.0 111.16.0 cargo update -p openssl-src --precise 111.16.0
crates.io openssl-src ≥ 0.0.0-0 < 111.16.0 111.16.0 cargo update -p openssl-src --precise 111.16.0

Per OSV / GitHub Advisories (GHSA-5ww6-px42-wc85, RUSTSEC-2021-0097). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
opensslopenssl≥ 1.1.1 < 1.1.1l
debiandebian_linux10.0
debiandebian_linux11.0
netappactive_iq_unified_managerall
netappactive_iq_unified_managerall
netappclustered_data_ontapall
netappclustered_data_ontap_antivirus_connectorall
netappe-series_santricity_os_controller≥ 11.0 ≤ 11.50.2
netapphci_management_nodeall
netappmanageability_software_development_kitall
netapponcommand_insightall
netapponcommand_workflow_automationall
netappsantricity_smi-s_providerall
netappsnapcenterall
netappsolidfireall
netappstorage_encryptionall
oraclecommunications_cloud_native_core_security_edge_protection_proxy1.7.0
oraclecommunications_cloud_native_core_unified_data_repository1.15.0
oraclecommunications_session_border_controller8.4
oraclecommunications_session_border_controller9.0
oraclecommunications_unified_session_manager8.2.5
oraclecommunications_unified_session_manager8.4.5
oracleenterprise_communications_broker3.2.0
oracleenterprise_communications_broker3.3.0
oracleenterprise_session_border_controller8.4
oracleenterprise_session_border_controller9.0
oracleessbase< 11.1.2.4.47
oracleessbase≥ 21.1 < 21.3
oraclehealth_sciences_inform_publisher6.2.1.1
oraclehealth_sciences_inform_publisher6.3.1.1
oraclejd_edwards_enterpriseone_tools< 9.2.6.3
oraclejd_edwards_world_securitya9.4
oraclemysql_connectors≤ 8.0.27
oraclemysql_enterprise_monitor≤ 8.0.25
oraclemysql_server≥ 5.7.0 ≤ 5.7.35
oraclemysql_server≥ 8.0.0 ≤ 8.0.26
oraclepeoplesoft_enterprise_peopletools8.57
oraclepeoplesoft_enterprise_peopletools8.58
oraclepeoplesoft_enterprise_peopletools8.59
oraclezfs_storage_appliance_kit8.8
tenablenessus_network_monitor≤ 5.13.1
tenabletenable.sc≥ 5.16.0 ≤ 5.19.1

Official sources

References

Links published by the sources. Open them with care.