Skip to content
Noroxi
NVD / CVE Program· CNA openssl

CVE-2021-3711: SM2 Decryption Buffer Overflow

CriticalCVSS 9.8 · v3.1—Proof of concept Fix available

Noroxi assessment

Priority: This week (action score 65/100)

  • Public proof-of-concept code exists (GitHub); there is no record of exploitation in the wild.
  • Probability of exploitation in the next 30 days: 87.8% (FIRST EPSS); higher than 99.7% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • According to CISA the attack is automatable: targets can be found by mass scanning.
  • Fixed version: openssl (Alpine:v3.11) 1.1.1l-r0; openssl3 (Alpine:v3.15) 1.1.1l-r0; openssl1.1-compat (Alpine:v3.17) 1.1.1l-r0.
  • Mentioned 6 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Don’t wait for the next maintenance window. Upgrade to openssl (Alpine:v3.11) 1.1.1l-r0; openssl3 (Alpine:v3.15) 1.1.1l-r0; openssl1.1-compat (Alpine:v3.17) 1.1.1l-r0 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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
Aug 24, 2021
Updated
Oct 8, 2026
EPSS
87.8% · 99th percentile

Report tools

JSON

Action score

65

This week

Don’t wait for the next maintenance window.

CVSS
39 / 40 · 9.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
26 / 30 · 87.8%

CISA SSVC decision

Exploitation
none
Automatable
yes
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • Proof of concept exists, no weaponized module
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2021-3711

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Check your server's TLS configurationRun the SSL check

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Check your server's TLS configurationRun the SSL check

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
opensslopenssl
debiandebian linux
netappactive iq unified manager
netappclustered data ontap
netappclustered data ontap antivirus connector
netappe-series santricity os controller
netapphci management node
netappmanageability software development kit
netapponcommand insight
netapponcommand workflow automation
netappsantricity smi-s provider
netappsnapcenter

and 19 more

Check your server's TLS configuration

The OpenSSL version can't be seen from outside; the free SSL checker tests your certificate, enabled TLS versions and weak ciphers. Confirm the version on your server with the package manager.

Run the SSL check

Versions reported by the vendor

Affected version ranges reported by the assigning authority (openssl). Independent of NVD's CPE analysis and usually ahead of it.

  • OpenSSL OpenSSL

    • Fixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k)affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.11opensslfrom 1.1.1 · before 1.1.1l-r01.1.1l-r0
Alpine:v3.15openssl3before 1.1.1l-r01.1.1l-r0
Alpine:v3.17openssl1.1-compatbefore 1.1.1l-r01.1.1l-r0
crates.ioopenssl-srcfrom 0.0.0-0 · before 111.16.0111.16.0
crates.ioopenssl-srcbefore 111.16.0111.16.0
Debian:10opensslbefore 1.1.1d-0+deb10u71.1.1d-0+deb10u7
Debian:11opensslbefore 1.1.1k-1+deb11u11.1.1k-1+deb11u1
Debian:12opensslbefore 1.1.1l-11.1.1l-1
openSUSE:Leap 15.2openssl-1_1before 1.1.1d-lp152.7.21.11.1.1d-lp152.7.21.1
openSUSE:Leap 15.3dracut-saltbootbefore 0.1.1665997480.587fa10-150000.1.41.10.1.1665997480.587fa10-150000.1.41.1
openSUSE:Leap 15.3golang-github-boynux-squid_exporterbefore 1.6-150000.1.9.11.6-150000.1.9.1
openSUSE:Leap 15.3golang-github-prometheus-promubefore 0.13.0-150000.3.9.10.13.0-150000.3.9.1
openSUSE:Leap 15.3grafanabefore 8.5.13-150200.3.29.58.5.13-150200.3.29.5
openSUSE:Leap 15.3grafanabefore 8.3.5-150200.3.21.18.3.5-150200.3.21.1
openSUSE:Leap 15.3openssl-1_1before 1.1.1d-11.27.11.1.1d-11.27.1
openSUSE:Leap 15.3prometheus-postgres_exporterbefore 0.10.0-150000.1.3.10.10.0-150000.1.3.1
openSUSE:Leap 15.3rhnlibbefore 4.2.6-150000.3.34.14.2.6-150000.3.34.1
openSUSE:Leap 15.3spacecmdbefore 4.3.16-150000.3.89.14.3.16-150000.3.89.1
openSUSE:Leap 15.3spacecmdbefore 4.2.16-150000.3.77.14.2.16-150000.3.77.1
openSUSE:Leap 15.4prometheus-blackbox_exporterbefore 0.19.0-150000.1.14.30.19.0-150000.1.14.3
openSUSE:Leap 15.4wirebefore 0.5.0-150000.1.9.30.5.0-150000.1.9.3
openSUSE:Tumbleweedgrafanabefore 8.3.4-1.18.3.4-1.1
openSUSE:Tumbleweedgrypebefore 0.92.1-1.10.92.1-1.1
SUSE:Enterprise Storage 6grafanabefore 8.5.13-150100.3.12.18.5.13-150100.3.12.1

+89

Other highest-scoring records for the same primary product.

  • CVE-2014-0160The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packets, which allows…KEV
    90Now
  • CVE-2003-0545Double free vulnerability in OpenSSL 0.9.7 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code…
    65This week
  • CVE-2016-2108The ASN.1 implementation in OpenSSL before 1.0.1o and 1.0.2 before 1.0.2c allows remote attackers to execute arbitrary code or cause a…
    62This week

Published before and after this one in the same product

  • ← EarlierCVE-2021-3450Mar 25, 2021 · CA certificate check bypass with X509_V_FLAG_X509_STRICT
    35Monitor
  • ← EarlierCVE-2021-3712Aug 24, 2021 · Read buffer overruns processing ASN.1 strings
    43Plan
  • Later →CVE-2021-4044Dec 14, 2021 · Invalid handling of X509_verify_cert() internal errors in libssl
    45Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:openssl1.1.1l-r0 · Alpine:v3.11Package registry (OSV)
alpine:openssl1.1-compat1.1.1l-r0 · Alpine:v3.17Package registry (OSV)
alpine:openssl31.1.1l-r0 · Alpine:v3.15Package registry (OSV)
crates.io:openssl-src111.16.0Package registry (OSV)
debian:openssl1.1.1l-1 · Debian:12Package registry (OSV)
opensuse:dracut-saltboot0.1.1665997480.587fa10-150000.1.41.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:golang-github-boynux-squid_exporter1.6-150000.1.9.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:golang-github-prometheus-promu0.13.0-150000.3.9.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:grafana8.3.5-150200.3.21.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:grype0.92.1-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:openssl-1_11.1.1d-lp152.7.21.1 · openSUSE:Leap 15.2Package registry (OSV)
opensuse:prometheus-blackbox_exporter0.19.0-150000.1.14.3 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:prometheus-postgres_exporter0.10.0-150000.1.3.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:rhnlib4.2.6-150000.3.34.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:spacecmd4.2.16-150000.3.77.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:wire0.5.0-150000.1.9.3 · openSUSE:Leap 15.4Package registry (OSV)
suse:grafana8.3.5-150000.1.30.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:mgr-cfg4.2.8-150000.1.24.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:mgr-osad4.2.8-150000.1.36.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:mgr-push4.2.5-150000.1.18.2 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:mgr-virtualization4.2.4-150000.1.26.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:openssl-1_11.1.1d-11.27.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP2Package registry (OSV)
suse:prometheus-postgres_exporter0.10.0-150000.1.3.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:rhnlib4.2.6-150000.3.34.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:spacecmd4.2.16-150000.3.77.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:spacewalk-client-tools4.2.18-150000.3.59.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:spacewalk-koan4.2.6-150000.3.27.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:spacewalk-oscap4.2.4-150000.3.18.1 · SUSE:Manager Client Tools 15Package registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Proof-of-concept repository on GitHub ×1

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Proof-of-concept repository on GitHubstars:02026-11-09

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoC+1902 d
  3. TodayNov 14, 2026+1907 d

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Not on record for this CVE: EPSS history · patch commit or PR link · variant or chain candidate.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

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

nvd-primary

Root cause

When data is copied, the source length is not compared with the size of the destination buffer. Excess data overwrites adjacent memory.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

c
char buf[256];memcpy(buf, pkt->data, pkt->len);

Fixed

c
char buf[256];if (pkt->len > sizeof(buf)) {  return -EINVAL;}memcpy(buf, pkt->data, pkt->len);

Change log

  1. Exploit maturitynone → poc
  2. SSVC exploitation— → none
  3. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records