CVE-2021-23840
published high CVSS 3.1 · 7.5Integer overflow in CipherUpdate
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenSSL | — | OpenSSLFixed in OpenSSL 1.1.1j (Affected 1.1.1-1.1.1i) · Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x) | Affected | Not stated | openssl |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1608 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1612 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2502 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | edk2-ovmf | Advisory build | 20210527gite1999b264f1f-3.el8 | ALSA-2021:4198 |
| Alpine Linux | edge | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Debian | buster | openssl | Advisory build | 1.1.1d-0+deb10u5 | DSA-4855-1 |
| Oracle Linux | 7 | opensslaarch64 | Advisory build | 10:1.0.2k-22.el7_9_fips | ELSA-2021-9528 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-7 | opensslppc64 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Alpine Linux | v3.10 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.11 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.12 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.13 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.14 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.15 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.15 | openssl3 | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.16 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.16 | openssl3 | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.17 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.17 | openssl1.1-compat | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.18 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.18 | openssl1.1-compat | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.19 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.20 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.21 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.22 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.23 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.24 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Alpine Linux | v3.9 | openssl | Fixed | 1.1.1j-r0 | Package fix record |
| Debian | stretch | openssl | Advisory build | 1.1.0l-1~deb9u3 | DLA-2563-1 |
| Debian | stretch | openssl1.0 | Advisory build | 1.0.2u-1~deb9u4 | DLA-2565-1 |
| Oracle Linux | 7 | opensslaarch64 | Advisory build | 1:1.0.2k-22.el7_9 | ELSA-2021-3798 |
| Oracle Linux | 7 | opensslaarch64 | Advisory build | 2:1.0.2k-22.ksplice1.el7_9 | ELSA-2021-9478 |
| Oracle Linux | 7 | opensslx86_64 | Advisory build | 10:1.0.2k-22.el7_9_fips | ELSA-2021-9528 |
| Oracle Linux | 7 | opensslx86_64 | Advisory build | 1:1.0.2k-22.el7_9 | ELSA-2021-3798 |
| Oracle Linux | 7 | opensslx86_64 | Advisory build | 2:1.0.2k-22.ksplice1.el7_9 | ELSA-2021-9478 |
| Oracle Linux | 7 | openssl-develaarch64 | Advisory build | 10:1.0.2k-22.el7_9_fips | ELSA-2021-9528 |
| Oracle Linux | 7 | openssl-develaarch64 | Advisory build | 1:1.0.2k-22.el7_9 | ELSA-2021-3798 |
| Oracle Linux | 7 | openssl-develaarch64 | Advisory build | 2:1.0.2k-22.ksplice1.el7_9 | ELSA-2021-9478 |
| Oracle Linux | 7 | openssl-develx86_64 | Advisory build | 10:1.0.2k-22.el7_9_fips | ELSA-2021-9528 |
| Oracle Linux | 7 | openssl-develx86_64 | Advisory build | 1:1.0.2k-22.el7_9 | ELSA-2021-3798 |
| Oracle Linux | 7 | openssl-develx86_64 | Advisory build | 2:1.0.2k-22.ksplice1.el7_9 | ELSA-2021-9478 |
| Oracle Linux | 7 | openssl-libsaarch64 | Advisory build | 10:1.0.2k-22.el7_9_fips | ELSA-2021-9528 |
| Oracle Linux | 7 | openssl-libsaarch64 | Advisory build | 1:1.0.2k-22.el7_9 | ELSA-2021-3798 |
| Oracle Linux | 7 | openssl-libsaarch64 | Advisory build | 2:1.0.2k-22.ksplice1.el7_9 | ELSA-2021-9478 |
| Oracle Linux | 7 | openssl-libsx86_64 | Advisory build | 10:1.0.2k-22.el7_9_fips | ELSA-2021-9528 |
| Oracle Linux | 7 | openssl-libsx86_64 | Advisory build | 1:1.0.2k-22.el7_9 | ELSA-2021-3798 |
| Oracle Linux | 7 | openssl-libsx86_64 | Advisory build | 2:1.0.2k-22.ksplice1.el7_9 | ELSA-2021-9478 |
| Oracle Linux | 7 | openssl-perlaarch64 | Advisory build | 10:1.0.2k-22.el7_9_fips | ELSA-2021-9528 |
| Oracle Linux | 7 | openssl-perlaarch64 | Advisory build | 1:1.0.2k-22.el7_9 | ELSA-2021-3798 |
| Oracle Linux | 7 | openssl-perlaarch64 | Advisory build | 2:1.0.2k-22.ksplice1.el7_9 | ELSA-2021-9478 |
| Oracle Linux | 7 | openssl-perlx86_64 | Advisory build | 10:1.0.2k-22.el7_9_fips | ELSA-2021-9528 |
| Oracle Linux | 7 | openssl-perlx86_64 | Advisory build | 1:1.0.2k-22.el7_9 | ELSA-2021-3798 |
| Oracle Linux | 7 | openssl-perlx86_64 | Advisory build | 2:1.0.2k-22.ksplice1.el7_9 | ELSA-2021-9478 |
| Oracle Linux | 7 | openssl-staticaarch64 | Advisory build | 10:1.0.2k-22.el7_9_fips | ELSA-2021-9528 |
| Oracle Linux | 7 | openssl-staticaarch64 | Advisory build | 1:1.0.2k-22.el7_9 | ELSA-2021-3798 |
| Oracle Linux | 7 | openssl-staticaarch64 | Advisory build | 2:1.0.2k-22.ksplice1.el7_9 | ELSA-2021-9478 |
| Oracle Linux | 7 | openssl-staticx86_64 | Advisory build | 10:1.0.2k-22.el7_9_fips | ELSA-2021-9528 |
| Oracle Linux | 7 | openssl-staticx86_64 | Advisory build | 1:1.0.2k-22.el7_9 | ELSA-2021-3798 |
| Oracle Linux | 7 | openssl-staticx86_64 | Advisory build | 2:1.0.2k-22.ksplice1.el7_9 | ELSA-2021-9478 |
| Oracle Linux | 8 | opensslaarch64 | Advisory build | 1:1.1.1k-4.el8 | ELSA-2021-4424 |
| Oracle Linux | 8 | opensslaarch64 | Advisory build | 2:1.1.1k-4.ksplice1.el8 | ELSA-2021-9561 |
| Oracle Linux | 8 | opensslx86_64 | Advisory build | 1:1.1.1k-4.el8 | ELSA-2021-4424 |
| Oracle Linux | 8 | opensslx86_64 | Advisory build | 2:1.1.1k-4.ksplice1.el8 | ELSA-2021-9561 |
| Oracle Linux | 8 | openssl-debugsourceaarch64 | Advisory build | 2:1.1.1k-4.ksplice1.el8 | ELSA-2021-9561 |
| Oracle Linux | 8 | openssl-develaarch64 | Advisory build | 1:1.1.1k-4.el8 | ELSA-2021-4424 |
| Oracle Linux | 8 | openssl-develaarch64 | Advisory build | 2:1.1.1k-4.ksplice1.el8 | ELSA-2021-9561 |
| Oracle Linux | 8 | openssl-develx86_64 | Advisory build | 1:1.1.1k-4.el8 | ELSA-2021-4424 |
| Oracle Linux | 8 | openssl-develx86_64 | Advisory build | 2:1.1.1k-4.ksplice1.el8 | ELSA-2021-9561 |
| Oracle Linux | 8 | openssl-libsaarch64 | Advisory build | 1:1.1.1k-4.el8 | ELSA-2021-4424 |
| Oracle Linux | 8 | openssl-libsaarch64 | Advisory build | 2:1.1.1k-4.ksplice1.el8 | ELSA-2021-9561 |
| Oracle Linux | 8 | openssl-libsx86_64 | Advisory build | 1:1.1.1k-4.el8 | ELSA-2021-4424 |
| Oracle Linux | 8 | openssl-libsx86_64 | Advisory build | 2:1.1.1k-4.ksplice1.el8 | ELSA-2021-9561 |
| Oracle Linux | 8 | openssl-perlaarch64 | Advisory build | 1:1.1.1k-4.el8 | ELSA-2021-4424 |
| Oracle Linux | 8 | openssl-perlaarch64 | Advisory build | 2:1.1.1k-4.ksplice1.el8 | ELSA-2021-9561 |
| Oracle Linux | 8 | openssl-perlx86_64 | Advisory build | 1:1.1.1k-4.el8 | ELSA-2021-4424 |
| Oracle Linux | 8 | openssl-perlx86_64 | Advisory build | 2:1.1.1k-4.ksplice1.el8 | ELSA-2021-9561 |
| Oracle Linux | 8 | openssl-staticaarch64 | Advisory build | 2:1.1.1k-4.ksplice1.el8 | ELSA-2021-9561 |
| Red Hat Enterprise Linux | RHEL-7 | opensslppc64le | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssls390x | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | opensslsrc | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | opensslx86_64 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-debuginfoi686 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-debuginfoppc | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-debuginfoppc64 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-debuginfoppc64le | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-debuginfos390 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-debuginfos390x | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-debuginfox86_64 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-develi686 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-develppc | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-develppc64 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-develppc64le | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-devels390 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-devels390x | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-develx86_64 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-libsi686 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-libsppc | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-libsppc64 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-libsppc64le | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-libss390 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-libss390x | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-libsx86_64 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux | RHEL-7 | openssl-perlppc64 | Advisory build | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
Calls to EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate may overflow the output length argument in some cases where the input length is close to the maximum permissable length for an integer on the platform. In such cases the return value from the function call will be 1 (indicating success), but the output length value will be negative. This could cause applications to behave incorrectly or crash. OpenSSL versions 1.1.1i and below are affected by this issue. Users of these versions should upgrade to OpenSSL 1.1.1j. OpenSSL versions 1.0.2x and below are affected by this issue. However OpenSSL 1.0.2 is out of support and no longer receiving public updates. Premium support customers of OpenSSL 1.0.2 should upgrade to 1.0.2y. Other users should upgrade to 1.1.1j. Fixed in OpenSSL 1.1.1j (Affected 1.1.1-1.1.1i). Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x).
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.1j (Affected 1.1.1-1.1.1i) (affected)Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x) (affected) | openssl · cna |
Weaknesses
2- Overflow
- CWE-190 CWE-190 Integer Overflow or Wraparound
References
20- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=6a51b9e1d0cf0bf8515f7201b68fb0a3482b3dc1
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=9b1129239f3ebb1d1c98ce9ed41d5c9476c47cb2
- https://kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44846
- https://kc.mcafee.com/corporate/index?page=content&id=SB10366
- [bookkeeper-issues] 20210629 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
- [bookkeeper-issues] 20210628 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
- GLSA-202103-03 https://security.gentoo.org/glsa/202103-03
- https://security.netapp.com/advisory/ntap-20210219-0009/
- https://security.netapp.com/advisory/ntap-20240621-0006/
- DSA-4855 https://www.debian.org/security/2021/dsa-4855
- https://www.openssl.org/news/secadv/20210216.txt
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuApr2021.html
- 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-03
- https://www.tenable.com/security/tns-2021-09
- https://www.tenable.com/security/tns-2021-10
Provider assertions
3openssl · cna
Integer overflow in CipherUpdate
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- db14600d25f491d0a5c4a0f57a22cf45c61e0325520b42e30cbd901c16231e4f
- Ingested
- 23 Sep 2026, 07:52:52 UTC
- Source record
- Official CVE record