CVE & CISA-KEV Catalog

CVE-2021-3711

CRITICALEPSS 100th pctl
9.8
CVSS v3
NVD

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

How to fix

Remediation Available
opensslDebian
Fixed in:1.1.1k-1+deb11u1CVE-2021-3711
Fixed in:1.1.1l-1CVE-2021-3711
Fixed in:1.1.1l-1CVE-2021-3711
Fixed in:1.1.1l-1CVE-2021-3711
libssl1.1Ubuntu
Fixed in:1.1.1-1ubuntu2.1~18.04.13USN-5051-1
Fixed in:1.1.1f-1ubuntu2.8USN-5051-1
opensslUbuntu
Fixed in:1.1.1-1ubuntu2.1~18.04.13USN-5051-1
Fixed in:1.1.1f-1ubuntu2.8USN-5051-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

87.82%probability of exploitation in 30 days
100thpercentile

Very high risk: more likely to be exploited than 100% of all known CVEs.

References

Related Vulnerabilities

Other CWE-120 (Classic Buffer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2014-0195Medium6.8100%-Fix
CVE-2017-7269Critical9.8100%KEV-
CVE-2019-11043High8.799%KEV + RansomFix
CVE-2011-4862High10.095%-Fix
CVE-2007-5659High7.894%KEVFix
CVE-2022-3786High7.592%-Fix
Embed a live status badge for CVE-2021-3711
CVE-2021-3711 severity badge

Markdown

[![CVE-2021-3711](https://tridentstack.com/cve/badge/CVE-2021-3711.svg)](https://tridentstack.com/cve/CVE-2021-3711)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-3711"><img src="https://tridentstack.com/cve/badge/CVE-2021-3711.svg" alt="CVE-2021-3711"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.