CVE-2021-3711Openssl
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · Openssl · Openssl We alert you by email or Slack (account required).
- 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).
What to do
- Apply the vendor's security update for Openssl.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| openssl | openssl | ≥ 1.1.1 < 1.1.1l |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
| netapp | active_iq_unified_manager | all |
| netapp | active_iq_unified_manager | all |
| netapp | clustered_data_ontap | all |
| netapp | clustered_data_ontap_antivirus_connector | all |
| netapp | e-series_santricity_os_controller | ≥ 11.0 ≤ 11.50.2 |
| netapp | hci_management_node | all |
| netapp | manageability_software_development_kit | all |
| netapp | oncommand_insight | all |
| netapp | oncommand_workflow_automation | all |
| netapp | santricity_smi-s_provider | all |
| netapp | snapcenter | all |
| netapp | solidfire | all |
| netapp | storage_encryption | all |
| 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.47 |
| oracle | essbase | ≥ 21.1 < 21.3 |
| oracle | health_sciences_inform_publisher | 6.2.1.1 |
| 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 | peoplesoft_enterprise_peopletools | 8.57 |
| oracle | peoplesoft_enterprise_peopletools | 8.58 |
| oracle | peoplesoft_enterprise_peopletools | 8.59 |
| oracle | zfs_storage_appliance_kit | 8.8 |
| tenable | nessus_network_monitor | ≤ 5.13.1 |
| tenable | tenable.sc | ≥ 5.16.0 ≤ 5.19.1 |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Third Party Advisory
- cert-portal.siemens.com Third Party Advisory
- git.openssl.org
- lists.apache.org
- lists.apache.org
- security.gentoo.org Third Party Advisory
- security.gentoo.org Third Party Advisory
- security.netapp.com Third Party Advisory
- security.netapp.com Third Party Advisory
- security.netapp.com
- www.debian.org Third Party Advisory
- www.openssl.org Vendor Advisory
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.tenable.com Third Party Advisory
- www.tenable.com Third Party Advisory