CVE-2021-3711

Aliases:GHSA-5ww6-px42-wc85RUSTSEC-2021-0097
Modified
Published: 24 Aug 2021, 14:50
Last modified:16 Sept 2024, 18:29

Vulnerability Summary

Overall Risk (default)
high
70/100
CVSS Score
9.8 CRITICAL
v3.1 (nvd)
EPSS Score
2.54% LOW
3% probability -0.18%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

24 Aug 2021, 14:50
Published
Vulnerability first disclosed
16 Sept 2024, 18:29
Last Modified
Vulnerability information updated

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

CVSS Metrics

  • v3.1CRITICALScore: 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • v2.0HIGHScore: 7.5AV:N/AC:L/Au:N/C:P/I:P/A:P

EPSS Trends

Current EPSS score: 2.54% Percentile: 86%

Techniques & Countermeasures

  • CWE-120Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

    The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.

Affected Systems

  • Crates.Ioopenssl-src

    < 111.16.0 | ≥ 0.0.0-0, < 111.16.0

  • debiandebian_linux

    10.0 | 11.0

  • netappactive_iq_unified_manager

    na

  • netappclustered_data_ontap

    na

  • netappclustered_data_ontap_antivirus_connector

    na

  • netappe-series_santricity_os_controller

    ≥ 11.0, ≤ 11.50.2

  • netapphci_management_node

    na

  • netappmanageability_software_development_kit

    na

  • netapponcommand_insight

    na

  • netapponcommand_workflow_automation

    na

  • netappsantricity_smi-s_provider

    na

  • netappsnapcenter

    na

  • netappsolidfire

    na

  • netappstorage_encryption

    na

  • UnknownOpenSSL

    ≥ 1.1.1, < 1.1.1l | Fixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k)

  • oraclecommunications_cloud_native_core_security_edge_protection_proxy

    1.7.0

  • oraclecommunications_cloud_native_core_unified_data_repository

    1.15.0

  • oraclecommunications_session_border_controller

    8.4 | 9.0

  • oraclecommunications_unified_session_manager

    8.2.5 | 8.4.5

  • oracleenterprise_communications_broker

    3.2.0 | 3.3.0

  • oracleenterprise_session_border_controller

    8.4 | 9.0

  • oracleessbase

    < 11.1.2.4.47 | ≥ 21.1, < 21.3

  • oraclehealth_sciences_inform_publisher

    6.2.1.1 | 6.3.1.1

  • oraclejd_edwards_enterpriseone_tools

    < 9.2.6.3

  • oraclejd_edwards_world_security

    a9.4

  • oraclemysql_connectors

    ≤ 8.0.27

  • oraclemysql_enterprise_monitor

    ≤ 8.0.25

  • oraclemysql_server

    ≥ 5.7.0, ≤ 5.7.35 | ≥ 8.0.0, ≤ 8.0.26

  • oraclepeoplesoft_enterprise_peopletools

    8.57 | 8.58 | 8.59

  • oraclezfs_storage_appliance_kit

    8.8

  • tenablenessus_network_monitor

    ≤ 5.13.1

  • tenabletenable.sc

    ≥ 5.16.0, ≤ 5.19.1

References (26)