CVE-2021-3711
CVSS V2 High 7.5
CVSS V3 Critical 9.8
Description
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).
Overview
- CVE ID
- CVE-2021-3711
- Assigner
- openssl-security@openssl.org
- Vulnerability Status
- Analyzed
- Published Version
- 2021-08-24T15:15:09
- Last Modified Date
- 2022-12-06T21:23:05
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:* | 1 | OR | 1.1.1 | 1.1.1l |
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:* | 1 | OR | ||
cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:* | 1 | OR | ||
cpe:2.3:a:netapp:clustered_data_ontap:-:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:netapp:clustered_data_ontap_antivirus_connector:-:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:netapp:e-series_santricity_os_controller:*:*:*:*:*:*:*:* | 1 | OR | 11.0 | 11.50.2 |
cpe:2.3:a:netapp:hci_management_node:-:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:netapp:manageability_software_development_kit:-:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:netapp:oncommand_insight:-:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:netapp:santricity_smi-s_provider:-:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:netapp:snapcenter:-:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:netapp:solidfire:-:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:netapp:storage_encryption:-:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:communications_cloud_native_core_security_edge_protection_proxy:1.7.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:communications_cloud_native_core_unified_data_repository:1.15.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:communications_session_border_controller:8.4:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:communications_session_border_controller:9.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:communications_unified_session_manager:8.2.5:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:communications_unified_session_manager:8.4.5:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:enterprise_communications_broker:3.2.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:enterprise_communications_broker:3.3.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:enterprise_session_border_controller:8.4:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:enterprise_session_border_controller:9.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:essbase:*:*:*:*:*:*:*:* | 1 | OR | 11.1.2.4.47 | |
cpe:2.3:a:oracle:essbase:*:*:*:*:*:*:*:* | 1 | OR | 21.1 | 21.3 |
cpe:2.3:a:oracle:health_sciences_inform_publisher:6.2.1.1:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:health_sciences_inform_publisher:6.3.1.1:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:jd_edwards_enterpriseone_tools:*:*:*:*:*:*:*:* | 1 | OR | 9.2.6.3 | |
cpe:2.3:a:oracle:jd_edwards_world_security:a9.4:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:mysql_connectors:*:*:*:*:*:*:*:* | 1 | OR | 8.0.27 | |
cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:* | 1 | OR | 8.0.25 | |
cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:* | 1 | OR | 5.7.0 | 5.7.35 |
cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:* | 1 | OR | 8.0.0 | 8.0.26 |
cpe:2.3:a:oracle:peoplesoft_enterprise_peopletools:8.57:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:peoplesoft_enterprise_peopletools:8.58:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:peoplesoft_enterprise_peopletools:8.59:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:a:tenable:nessus_network_monitor:*:*:*:*:*:*:*:* | 1 | OR | 5.13.1 | |
cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:* | 1 | OR | 5.16.0 | 5.19.1 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:N/C:P/I:P/A:P
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- NONE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- PARTIAL
- Base Score
- 7.5
- Severity
- HIGH
- Exploitability Score
- 10
- Impact Score
- 6.4
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- HIGH
- Base Score
- 9.8
- Base Severity
- CRITICAL
- Exploitability Score
- 3.9
- Impact Score
- 5.9
References
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-3711 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3711 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-04-04 00:39:19 | Added to TrackCVE | |||
2022-12-05 08:48:57 | 2021-08-24T15:15Z | 2021-08-24T15:15:09 | CVE Published Date | updated |
2022-12-05 08:48:57 | 2022-10-16T17:15:13 | CVE Modified Date | updated | |
2022-12-05 08:48:57 | Undergoing Analysis | Vulnerability Status | updated | |
2022-12-05 08:49:02 | References | updated | ||
2022-12-06 22:13:29 | 2022-12-06T21:23:05 | CVE Modified Date | updated | |
2022-12-06 22:13:29 | Undergoing Analysis | Analyzed | Vulnerability Status | updated |