CVE-2021-3711
publishedSM2 Decryption Buffer Overflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenSSL | — | OpenSSLFixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k) | Affected | Not stated | openssl |
| Alpine Linux | edge | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Debian | bullseye | openssl | Advisory build | 1.1.1k-1+deb11u1 | DSA-4963-1 |
| SUSE / openSUSE | SLE-12-SP3 | golang-github-prometheus-node_exporteraarch64 | Advisory build | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| Alpine Linux | v3.11 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.12 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.13 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.14 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.15 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.15 | openssl3 | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.16 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.16 | openssl3 | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.17 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.17 | openssl1.1-compat | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.18 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.18 | openssl1.1-compat | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.19 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.20 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.21 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.22 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.23 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Alpine Linux | v3.24 | openssl | Fixed | 1.1.1l-r0 | Package fix record |
| Debian | buster | openssl | Advisory build | 1.1.1d-0+deb10u7 | DSA-4963-1 |
| SUSE / openSUSE | SLE-12-SP3 | golang-github-prometheus-node_exporterppc64le | Advisory build | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| SUSE / openSUSE | SLE-12-SP3 | golang-github-prometheus-node_exporters390x | Advisory build | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| SUSE / openSUSE | SLE-12-SP3 | golang-github-prometheus-node_exporterx86_64 | Advisory build | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| SUSE / openSUSE | SLE-12-SP4 | golang-github-prometheus-node_exporteraarch64 | Advisory build | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| SUSE / openSUSE | SLE-12-SP4 | golang-github-prometheus-node_exporterppc64le | Advisory build | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| SUSE / openSUSE | SLE-12-SP4 | golang-github-prometheus-node_exporters390x | Advisory build | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| SUSE / openSUSE | SLE-12-SP4 | golang-github-prometheus-node_exporterx86_64 | Advisory build | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| SUSE / openSUSE | SLE-12-SP4 | libopenssl1_1aarch64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP4 | libopenssl1_1ppc64le | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP4 | libopenssl1_1s390x | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP4 | libopenssl1_1x86_64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP4 | libopenssl1_1-32bits390x | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP4 | libopenssl1_1-32bitx86_64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP4 | openssl-1_1aarch64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP4 | openssl-1_1ppc64le | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP4 | openssl-1_1s390x | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP4 | openssl-1_1x86_64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | golang-github-prometheus-node_exporteraarch64 | Advisory build | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| SUSE / openSUSE | SLE-12-SP5 | golang-github-prometheus-node_exporterppc64le | Advisory build | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| SUSE / openSUSE | SLE-12-SP5 | golang-github-prometheus-node_exporters390x | Advisory build | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| SUSE / openSUSE | SLE-12-SP5 | golang-github-prometheus-node_exporterx86_64 | Advisory build | 1.3.0-1.15.3 | SUSE-SU-2022:2134-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_1-develaarch64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_1-develppc64le | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_1-devels390x | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_1-develx86_64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_1-devel-32bits390x | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_1-devel-32bitx86_64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1aarch64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1ppc64le | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1s390x | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1x86_64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1-32bits390x | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1-32bitx86_64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_1aarch64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_1ppc64le | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_1s390x | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_1x86_64 | Advisory build | 1.1.1d-2.36.2 | SUSE-SU-2021:2833-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl-1_1-develaarch64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl-1_1-develppc64le | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl-1_1-devels390x | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl-1_1-develx86_64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl1_1aarch64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl1_1ppc64le | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl1_1s390x | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl1_1x86_64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl1_1-32bitx86_64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl1_1-hmacaarch64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl1_1-hmacppc64le | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl1_1-hmacs390x | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl1_1-hmacx86_64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | libopenssl1_1-hmac-32bitx86_64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | openssl-1_1aarch64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | openssl-1_1ppc64le | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | openssl-1_1s390x | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP2 | openssl-1_1x86_64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl-1_1-develaarch64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl-1_1-develppc64le | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl-1_1-devels390x | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl-1_1-develx86_64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl1_1aarch64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl1_1ppc64le | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl1_1s390x | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl1_1x86_64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl1_1-32bitx86_64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl1_1-hmacaarch64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl1_1-hmacppc64le | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl1_1-hmacs390x | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl1_1-hmacx86_64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | libopenssl1_1-hmac-32bitx86_64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | openssl-1_1aarch64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | openssl-1_1ppc64le | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | openssl-1_1s390x | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP3 | openssl-1_1x86_64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanaaarch64 | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanappc64le | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanas390x | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | SLE-15-SP4 | grafanax86_64 | Advisory build | 8.5.13-150200.3.29.5 | SUSE-SU-2022:4428-1 |
| SUSE / openSUSE | SLE-5 | libopenssl1_1aarch64 | Advisory build | 1.1.1d-11.27.1 | SUSE-SU-2021:2830-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenSSL | OpenSSL | Fixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k) (affected) | openssl · cna |
Weaknesses
1- Buffer overflow
References
17- [oss-security] 20210825 OpenSSL SM2 Decryption Buffer Overflow (CVE-2021-3711), Read buffer overruns processing ASN.1 strings (CVE-2021-3712) http://www.openwall.com/lists/oss-security/2021/08/26/2
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=59f5e75f3bced8fc0e130d72a3f582cf7b480b46
- [tomcat-dev] 20210825 OpenSSL security announcement - do we need a Tomcat Native release? https://lists.apache.org/thread.html/r18995de860f0e63635f3008fd2a6aca82394249476d21691e7c59c9e%40%3Cdev.tomcat.apache.org%3E
- [tomcat-dev] 20210826 Re: OpenSSL security announcement - do we need a Tomcat Native release? https://lists.apache.org/thread.html/rad5d9f83f0d11fb3f8bb148d179b8a9ad7c6a17f18d70e5805a713d1%40%3Cdev.tomcat.apache.org%3E
- GLSA-202209-02 https://security.gentoo.org/glsa/202209-02
- GLSA-202210-02 https://security.gentoo.org/glsa/202210-02
- https://security.netapp.com/advisory/ntap-20210827-0010/
- https://security.netapp.com/advisory/ntap-20211022-0003/
- https://security.netapp.com/advisory/ntap-20240621-0006/
- DSA-4963 https://www.debian.org/security/2021/dsa-4963
- https://www.openssl.org/news/secadv/20210824.txt
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.tenable.com/security/tns-2021-16
- https://www.tenable.com/security/tns-2022-02
Provider assertions
3openssl · cna
SM2 Decryption Buffer Overflow
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e0d8961d7a1d0f271be0deeed963476dd0473a9e610876409afc0d11a893b0e0
- Ingested
- 09 Oct 2026, 16:22:05 UTC
- Source record
- Official CVE record