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).
AI analysis not yet available
Plain-English explanation, risk summary, and remediation steps will appear here once AI analysis is complete.
No Fix Known
No patch has been released yet. Apply workarounds or mitigations where available.
| Vendor | Product | Versions | Fixed In |
|---|---|---|---|
| openssl | openssl | 1.1.1 - 1.1.1l | - |
| debian | debian_linux | - |
Published
CVE disclosed publicly
Last Modified
Most recent update
Indexed to CVEInsight
Added to this platform
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
42
Affected Products
34
References
openssl / openssl
| - |
| debian | debian_linux | - | - |
| netapp | active_iq_unified_manager | - | - |
| netapp | active_iq_unified_manager | - | - |
| netapp | clustered_data_ontap | - | - |
| netapp | clustered_data_ontap_antivirus_connector | - | - |
| netapp | e-series_santricity_os_controller | 11.0 - 11.50.2 | - |
| netapp | hci_management_node | - | - |
| netapp | manageability_software_development_kit | - | - |
| netapp | oncommand_insight | - | - |
| netapp | oncommand_workflow_automation | - | - |
| netapp | santricity_smi-s_provider | - | - |
| netapp | snapcenter | - | - |
| netapp | solidfire | - | - |
| netapp | storage_encryption | - | - |
| oracle | communications_cloud_native_core_security_edge_protection_proxy | - | - |
| oracle | communications_cloud_native_core_unified_data_repository | - | - |
| oracle | communications_session_border_controller | - | - |
| oracle | communications_session_border_controller | - | - |
| oracle | communications_unified_session_manager | - | - |
| oracle | communications_unified_session_manager | - | - |
| oracle | enterprise_communications_broker | - | - |
| oracle | enterprise_communications_broker | - | - |
| oracle | enterprise_session_border_controller | - | - |
| oracle | enterprise_session_border_controller | - | - |
| oracle | essbase | 11.1.2.4.47 | - |
| oracle | essbase | 21.1 - 21.3 | - |
| oracle | health_sciences_inform_publisher | - | - |
| oracle | health_sciences_inform_publisher | - | - |
| oracle | jd_edwards_enterpriseone_tools | 9.2.6.3 | - |
| oracle | jd_edwards_world_security | - | - |
| 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 | - | - |
| oracle | peoplesoft_enterprise_peopletools | - | - |
| oracle | peoplesoft_enterprise_peopletools | - | - |
| oracle | zfs_storage_appliance_kit | - | - |
| tenable | nessus_network_monitor | 5.13.1 | - |
| tenable | tenable.sc | 5.16.0 - 5.19.1 | - |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Exploitability
Impact