Security mailing lists by PureSourceCode

CVE-2021-3711

CRITICAL 9.8CVSS 3.1

SM2 Decryption Buffer Overflow

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

Published
24 Aug 2021
Last modified
8 Oct 2026
Assigned by
openssl-security@openssl.org
NVD status
Modified
Weakness
CWE-120
Also known as
GHSA-5ww6-px42-wc85RUSTSEC-2021-0097
Sources
NVDJSONOSV GHSA-5ww6-px42-wc85JSONOSV RUSTSEC-2021-0097JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV RustSec CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD openssl openssl
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*
>= 1.1.1, < 1.1.1l 1.1.1l
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
= 10.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
= 11.0
NVD netapp active_iq_unified_manager
cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*
(no version)
NVD netapp active_iq_unified_manager
cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:*
(no version)
NVD netapp clustered_data_ontap
cpe:2.3:a:netapp:clustered_data_ontap:-:*:*:*:*:*:*:*
(no version)
NVD netapp clustered_data_ontap_antivirus_connector
cpe:2.3:a:netapp:clustered_data_ontap_antivirus_connector:-:*:*:*:*:*:*:*
(no version)
NVD netapp e-series_santricity_os_controller
cpe:2.3:a:netapp:e-series_santricity_os_controller:*:*:*:*:*:*:*:*
>= 11.0, <= 11.50.2
NVD netapp hci_management_node
cpe:2.3:a:netapp:hci_management_node:-:*:*:*:*:*:*:*
(no version)
NVD netapp manageability_software_development_kit
cpe:2.3:a:netapp:manageability_software_development_kit:-:*:*:*:*:*:*:*
(no version)
NVD netapp oncommand_insight
cpe:2.3:a:netapp:oncommand_insight:-:*:*:*:*:*:*:*
(no version)
NVD netapp oncommand_workflow_automation
cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:*
(no version)
NVD netapp santricity_smi-s_provider
cpe:2.3:a:netapp:santricity_smi-s_provider:-:*:*:*:*:*:*:*
(no version)
NVD netapp snapcenter
cpe:2.3:a:netapp:snapcenter:-:*:*:*:*:*:*:*
(no version)
NVD netapp solidfire
cpe:2.3:a:netapp:solidfire:-:*:*:*:*:*:*:*
(no version)
NVD netapp storage_encryption
cpe:2.3:a:netapp:storage_encryption:-:*:*:*:*:*:*:*
(no version)
NVD oracle communications_cloud_native_core_security_edge_protection_proxy
cpe:2.3:a:oracle:communications_cloud_native_core_security_edge_protection_proxy:1.7.0:*:*:*:*:*:*:*
= 1.7.0
NVD oracle communications_cloud_native_core_unified_data_repository
cpe:2.3:a:oracle:communications_cloud_native_core_unified_data_repository:1.15.0:*:*:*:*:*:*:*
= 1.15.0
NVD oracle communications_session_border_controller
cpe:2.3:a:oracle:communications_session_border_controller:8.4:*:*:*:*:*:*:*
= 8.4
NVD oracle communications_session_border_controller
cpe:2.3:a:oracle:communications_session_border_controller:9.0:*:*:*:*:*:*:*
= 9.0
NVD oracle communications_unified_session_manager
cpe:2.3:a:oracle:communications_unified_session_manager:8.2.5:*:*:*:*:*:*:*
= 8.2.5
NVD oracle communications_unified_session_manager
cpe:2.3:a:oracle:communications_unified_session_manager:8.4.5:*:*:*:*:*:*:*
= 8.4.5
NVD oracle enterprise_communications_broker
cpe:2.3:a:oracle:enterprise_communications_broker:3.2.0:*:*:*:*:*:*:*
= 3.2.0
NVD oracle enterprise_communications_broker
cpe:2.3:a:oracle:enterprise_communications_broker:3.3.0:*:*:*:*:*:*:*
= 3.3.0
NVD oracle enterprise_session_border_controller
cpe:2.3:a:oracle:enterprise_session_border_controller:8.4:*:*:*:*:*:*:*
= 8.4
NVD oracle enterprise_session_border_controller
cpe:2.3:a:oracle:enterprise_session_border_controller:9.0:*:*:*:*:*:*:*
= 9.0
NVD oracle essbase
cpe:2.3:a:oracle:essbase:*:*:*:*:*:*:*:*
< 11.1.2.4.47 11.1.2.4.47
NVD oracle essbase
cpe:2.3:a:oracle:essbase:*:*:*:*:*:*:*:*
>= 21.1, < 21.3 21.3
NVD oracle health_sciences_inform_publisher
cpe:2.3:a:oracle:health_sciences_inform_publisher:6.2.1.1:*:*:*:*:*:*:*
= 6.2.1.1
NVD oracle health_sciences_inform_publisher
cpe:2.3:a:oracle:health_sciences_inform_publisher:6.3.1.1:*:*:*:*:*:*:*
= 6.3.1.1
NVD oracle jd_edwards_enterpriseone_tools
cpe:2.3:a:oracle:jd_edwards_enterpriseone_tools:*:*:*:*:*:*:*:*
< 9.2.6.3 9.2.6.3
NVD oracle jd_edwards_world_security
cpe:2.3:a:oracle:jd_edwards_world_security:a9.4:*:*:*:*:*:*:*
= a9.4
NVD oracle mysql_connectors
cpe:2.3:a:oracle:mysql_connectors:*:*:*:*:*:*:*:*
<= 8.0.27
NVD oracle mysql_enterprise_monitor
cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*
<= 8.0.25
NVD oracle mysql_server
cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:*
>= 5.7.0, <= 5.7.35
NVD oracle mysql_server
cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:*
>= 8.0.0, <= 8.0.26
NVD oracle peoplesoft_enterprise_peopletools
cpe:2.3:a:oracle:peoplesoft_enterprise_peopletools:8.57:*:*:*:*:*:*:*
= 8.57
NVD oracle peoplesoft_enterprise_peopletools
cpe:2.3:a:oracle:peoplesoft_enterprise_peopletools:8.58:*:*:*:*:*:*:*
= 8.58
NVD oracle peoplesoft_enterprise_peopletools
cpe:2.3:a:oracle:peoplesoft_enterprise_peopletools:8.59:*:*:*:*:*:*:*
= 8.59
NVD oracle zfs_storage_appliance_kit
cpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:*
= 8.8
NVD tenable nessus_network_monitor
cpe:2.3:a:tenable:nessus_network_monitor:*:*:*:*:*:*:*:*
<= 5.13.1
NVD tenable tenable.sc
cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:*
>= 5.16.0, <= 5.19.1
OSV crates.io openssl-src < 111.16.0 111.16.0
OSV crates.io openssl-src >= 0.0.0-0, < 111.16.0 111.16.0

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 24 Aug 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Aug 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.