Skip to main content
Network Thinking Solutions Logo

CVE-2021-3711

OpenSSL buffer overflow in SM2 decryption

All CVEs
CVE-2021-3711Published 8/24/2021

OpenSSL buffer overflow in SM2 decryption

Vendor advisory
CVSS9.8Critical

Overview

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
8/24/2021
Last modified
10/8/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
openssl
openssl
≥ 1.1.1, < 1.1.1l

Verify advisory

Source
debian linux
debian
10.0

Verify advisory

Source
debian linux
debian
11.0

Verify advisory

Source
active iq unified manager
netapp
Range not specified — verify advisory

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
active iq unified manager
netapp
Range not specified — verify advisory

windows

Source
clustered data ontap
netapp
Range not specified — verify advisory

Verify advisory

Source
clustered data ontap antivirus connector
netapp
Range not specified — verify advisory

Verify advisory

Source
e-series santricity os controller
netapp
≥ 11.0, ≤ 11.50.2

Verify advisory

Source
hci management node
netapp
Range not specified — verify advisory

Verify advisory

Source
manageability software development kit
netapp
Range not specified — verify advisory

Verify advisory

Source
oncommand insight
netapp
Range not specified — verify advisory

Verify advisory

Source
oncommand workflow automation
netapp
Range not specified — verify advisory

Verify advisory

Source
santricity smi-s provider
netapp
Range not specified — verify advisory

Verify advisory

Source
snapcenter
netapp
Range not specified — verify advisory

Verify advisory

Source
solidfire
netapp
Range not specified — verify advisory

Verify advisory

Source
storage encryption
netapp
Range not specified — verify advisory

Verify advisory

Source
communications cloud native core security edge protection proxy
oracle
1.7.0

Verify advisory

Source
communications cloud native core unified data repository
oracle
1.15.0

Verify advisory

Source
communications session border controller
oracle
8.4

Verify advisory

Source
communications session border controller
oracle
9.0

Verify advisory

Source
communications unified session manager
oracle
8.2.5

Verify advisory

Source
communications unified session manager
oracle
8.4.5

Verify advisory

Source
enterprise communications broker
oracle
3.2.0

Verify advisory

Source
enterprise communications broker
oracle
3.3.0

Verify advisory

Source
enterprise session border controller
oracle
8.4

Verify advisory

Source
enterprise session border controller
oracle
9.0

Verify advisory

Source
essbase
oracle
< 11.1.2.4.47

Verify advisory

Source
essbase
oracle
≥ 21.1, < 21.3

Verify advisory

Source
health sciences inform publisher
oracle
6.2.1.1

Verify advisory

Source
health sciences inform publisher
oracle
6.3.1.1

Verify advisory

Source
jd edwards enterpriseone tools
oracle
< 9.2.6.3

Verify advisory

Source
jd edwards world security
oracle
a9.4

Verify advisory

Source
mysql connectors
oracle
≤ 8.0.27

Verify advisory

Source
mysql enterprise monitor
oracle
≤ 8.0.25

Verify advisory

Source
mysql server
oracle
≥ 5.7.0, ≤ 5.7.35

Verify advisory

Source
mysql server
oracle
≥ 8.0.0, ≤ 8.0.26

Verify advisory

Source
peoplesoft enterprise peopletools
oracle
8.57

Verify advisory

Source
peoplesoft enterprise peopletools
oracle
8.58

Verify advisory

Source
peoplesoft enterprise peopletools
oracle
8.59

Verify advisory

Source
zfs storage appliance kit
oracle
8.8

Verify advisory

Source
nessus network monitor
tenable
≤ 5.13.1

Verify advisory

Source
tenable.sc
tenable
≥ 5.16.0, ≤ 5.19.1

Verify advisory

Source
OpenSSL
OpenSSL
Fixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k)

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 9.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.