cve.bz

CVE-2021-3711 Classic Buffer Overflow

9.8 criticalEPSS 88%Fix available

Critical (9.8). EPSS 88% estimated probability of exploitation activity in the next 30 days. Fixed in openssl-src 111.16.0.

On this page
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).

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
88% (unchanged from 88% a week ago; 88% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3711 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3711?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3711?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3711 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-3711

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

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

HTML:

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

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openssl:opensslfrom 1.1.1 before 1.1.1l
debian:debian_linux10.0
debian:debian_linux11.0
netapp:e-series_santricity_os_controllerfrom 11.0 through 11.50.2
oracle:communications_cloud_native_core_security_edge_protection_proxy1.7.0
oracle:communications_cloud_native_core_unified_data_repository1.15.0
oracle:communications_session_border_controller8.4
oracle:communications_session_border_controller9.0
oracle:communications_unified_session_manager8.2.5
oracle:communications_unified_session_manager8.4.5
oracle:enterprise_communications_broker3.2.0
oracle:enterprise_communications_broker3.3.0
oracle:enterprise_session_border_controller8.4
oracle:enterprise_session_border_controller9.0
oracle:essbasebefore 11.1.2.4.47
oracle:essbasefrom 21.1 before 21.3
oracle:health_sciences_inform_publisher6.2.1.1
oracle:health_sciences_inform_publisher6.3.1.1
oracle:jd_edwards_enterpriseone_toolsbefore 9.2.6.3
oracle:jd_edwards_world_securitya9.4
oracle:mysql_connectorsthrough 8.0.27
oracle:mysql_enterprise_monitorthrough 8.0.25
oracle:mysql_serverfrom 5.7.0 through 5.7.35
oracle:mysql_serverfrom 8.0.0 through 8.0.26
oracle:peoplesoft_enterprise_peopletools8.57
oracle:peoplesoft_enterprise_peopletools8.58
oracle:peoplesoft_enterprise_peopletools8.59
oracle:zfs_storage_appliance_kit8.8
tenable:nessus_network_monitorthrough 5.13.1
tenable:tenable.scfrom 5.16.0 through 5.19.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5ww6-px42-wc85crates.ioopenssl-src<111.16.0111.16.0
RUSTSEC-2021-0097crates.ioopenssl-src>=0.0.0-0 <111.16.0111.16.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10openssl1.1.1d-0+deb10u7DSA-4963-1
Debian11openssl1.1.1k-1+deb11u1DSA-4963-1
Debian12, 13, 14openssl1.1.1l-1DEBIAN-CVE-2021-3711
Ubuntu18.04:LTSopenssl1.1.1-1ubuntu2.1~18.04.13UBUNTU-CVE-2021-3711 USN-5051-1
Ubuntu20.04:LTSopenssl1.1.1f-1ubuntu2.8UBUNTU-CVE-2021-3711 USN-5051-1
Ubuntu22.04:LTSopenssl1.1.1l-1ubuntu1UBUNTU-CVE-2021-3711
UbuntuPro:FIPS-updates:18.04:LTSopenssl1.1.1-1ubuntu2.fips.2.1~18.04.13.2UBUNTU-CVE-2021-3711
UbuntuPro:FIPS-updates:20.04:LTSopenssl1.1.1f-1ubuntu2.fips.7.2UBUNTU-CVE-2021-3711
UbuntuPro:FIPS:18.04:LTS, Pro:FIPS:20.04:LTSopensslno fix listedUBUNTU-CVE-2021-3711
SUSEEnterprise Storage 6grafana8.5.13-150100.3.12.1SUSE-SU-2022:3676-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP3-LTSS and 10 moregolang-github-prometheus-node_exporter1.3.0-1.15.3SUSE-SU-2022:2134-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3openssl-1_11.1.1d-11.27.1SUSE-SU-2021:2830-1
SUSELinux Enterprise Module for Package Hub 15 SP4grafana8.5.13-150200.3.29.5SUSE-SU-2022:4428-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 4 moreopenssl-1_11.1.1d-2.36.2SUSE-SU-2021:2833-1
SUSEManager Client Tools 12golang-github-QubitProducts-exporter_exporter0.4.0-1.6.1SUSE-SU-2022:2134-1
SUSEManager Client Tools 12golang-github-boynux-squid_exporter1.6-1.9.1SUSE-SU-2022:4439-1
SUSEManager Client Tools 12golang-github-prometheus-alertmanager0.23.0-1.12.3SUSE-SU-2022:2134-1
SUSEManager Client Tools 12grafana8.3.5-1.30.3SUSE-SU-2022:2134-1
SUSEManager Client Tools 12grafana8.5.13-1.36.2SUSE-SU-2022:4439-1
SUSEManager Client Tools 12mgr-cfg4.3.6-1.27.4SUSE-SU-2022:2134-1
SUSEManager Client Tools 12mgr-custom-info4.3.3-1.18.1SUSE-SU-2022:2134-1
77 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2openssl-1_11.1.1d-lp152.7.21.1openSUSE-SU-2021:1188-1
openSUSELeap 15.3openssl-1_11.1.1d-11.27.1openSUSE-SU-2021:2830-1
openSUSELeap 15.3prometheus-postgres_exporter0.10.0-150000.1.3.1SUSE-SU-2022:1396-1
openSUSELeap 15.3rhnlib4.2.6-150000.3.34.1SUSE-SU-2022:1396-1
openSUSELeap 15.3spacecmd4.2.16-150000.3.77.1SUSE-SU-2022:1396-1
openSUSELeap 15.3, Leap 15.4dracut-saltboot0.1.1665997480.587fa10-150000.1.41.1SUSE-SU-2022:4437-1
openSUSELeap 15.3, Leap 15.4golang-github-boynux-squid_exporter1.6-150000.1.9.1SUSE-SU-2022:4437-1
openSUSELeap 15.3, Leap 15.4golang-github-prometheus-promu0.13.0-150000.3.9.1SUSE-SU-2022:4437-1
openSUSELeap 15.3, Leap 15.4grafana8.3.5-150200.3.21.1SUSE-FU-2022:1419-1
openSUSELeap 15.3, Leap 15.4grafana8.5.13-150200.3.29.5SUSE-SU-2022:4428-1
openSUSELeap 15.3, Leap 15.4spacecmd4.3.16-150000.3.89.1SUSE-SU-2022:4437-1
openSUSELeap 15.4prometheus-blackbox_exporter0.19.0-150000.1.14.3SUSE-SU-2022:4437-1
4 more for openSUSE in the JSON and on openSUSE's page.
Alpinev3.11, v3.12, v3.13 and 7 moreopenssl1.1.1l-r0ALPINE-CVE-2021-3711
Alpinev3.15, v3.16openssl, openssl31.1.1l-r0ALPINE-CVE-2021-3711
Alpinev3.17, v3.18openssl, openssl1.1-compat1.1.1l-r0ALPINE-CVE-2021-3711
Azure Linux2openssl1.1.1k-11AZL-6779

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

OpenSSL packages shipped with Red Hat Enterprise Linux 8 are not compiled with support for SM2 algorithm and therefore are not affected by this flaw. Packages shipped with Red Hat Enterprise Linux 7 and older do not support the SM2 algorithm.

The Red Hat Advanced Cluster Management for Kubernetes 2.3.1 and the previous versions are using the vulnerable version of the OpenSSL library, however the vulnerable code path is not reachable.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/management-ingress-rhel8Affected
Red Hat Enterprise Linux 6opensslNot affected
Red Hat Enterprise Linux 6openssl098eNot affected
Red Hat Enterprise Linux 7opensslNot affected
Red Hat Enterprise Linux 7openssl098eNot affected
Red Hat Enterprise Linux 8compat-openssl10Not affected
Red Hat Enterprise Linux 8opensslNot affected
Red Hat Enterprise Linux 9opensslNot affected
Red Hat JBoss Core ServicesopensslNot affected
Red Hat JBoss Web Server 3opensslNot affected
Red Hat JBoss Web Server 5opensslNot affected
Red Hat Virtualization 4redhat-virtualization-hostNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3711.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-226-21Siemens BFCClient2025-08-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesBFCClientnone listed
ICSA-23-143-02Hitachi Energy's RTU500 Series Product (UPDATE B)2023-05-05EnergyRTU500 series CMU Firmware: >=12.0.1|<=12.0.15, RTU500 series CMU Firmware: >=12.2.1|<=12.2.12, RTU500 series CMU Firmware: >=12.4.1|<=12.4.12 and 5 morenone listed
ICSA-22-342-02AVEVA InTouch Access Anywhere and Plant SCADA Access Anywhere2022-12-08Critical ManufacturingInTouch Access Anywhere - Versions 2023 and prior, Plant SCADA Access Anywhere - Versions 2020 R2 and priornone listed
ICSA-22-132-02Mitsubishi Electric MELSOFT iQ AppPortal2022-05-12Critical ManufacturingMELSOFT iQ AppPortal (SW1DND-IQAPL-M): Versions 1.00A through 1.26Cnone listed
ICSA-22-069-09Siemens SINEC INS2022-03-08MultipleSINEC INSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

  • Truyen08/CVE_2021_3711 0 stars, Python, created
    Demo CVE 2021-3711 showing a Docker container crash.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON