Integer overflow in CipherUpdate

Summary

CVECVE-2021-23840
StatePUBLISHED
Assigneropenssl
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-02-16 17:15:13 UTC
Updated2026-04-16 15:16:45 UTC
DescriptionCalls 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).

Risk And Classification

Primary CVSS: v3.1 7.5 HIGH from [email protected]

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

Problem Types: CWE-190 | Overflow | CWE-190 CWE-190 Integer Overflow or Wraparound


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1ADPDECLARED7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
2.0[email protected]Primary5AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
None
Integrity
None
Availability
Partial

AV:N/AC:L/Au:N/C:N/I:N/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Openssl Openssl All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA OpenSSL OpenSSL affected Fixed in OpenSSL 1.1.1j (Affected 1.1.1-1.1.1i) Not specified
CNA OpenSSL OpenSSL affected Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x) Not specified

References

ReferenceSourceLinkTags
git.openssl.org Git af854a3a-2127-422b-91ae-364da2661108 git.openssl.org
git.openssl.org Git - openssl.git/commitdiff af854a3a-2127-422b-91ae-364da2661108 git.openssl.org
Oracle Critical Patch Update Advisory - April 2022 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com Patch, Third Party Advisory
Oracle Critical Patch Update Advisory - October 2021 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com Patch, Third Party Advisory
Security Bulletin - ePolicy Orchestrator update addresses two product vulnerabilities (CVE-2021-31834 and CVE-2021-31835) and updates Java, OpenSSL, and Tomcat af854a3a-2127-422b-91ae-364da2661108 kc.mcafee.com Third Party Advisory
www.openssl.org/news/secadv/20210216.txt af854a3a-2127-422b-91ae-364da2661108 www.openssl.org Vendor Advisory
Oracle Critical Patch Update Advisory - July 2021 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com Patch, Third Party Advisory
February 2021 OpenSSL Vulnerabilities in NetApp Products | NetApp Product Security af854a3a-2127-422b-91ae-364da2661108 security.netapp.com Third Party Advisory
[R1] Stand-alone Security Patches Available for Tenable.sc versions 5.13.0 to 5.17.0 - Security Advisory | Tenable® af854a3a-2127-422b-91ae-364da2661108 www.tenable.com Third Party Advisory
OpenSSL: Multiple vulnerabilities (GLSA 202103-03) — Gentoo security af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org Third Party Advisory
lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e69... af854a3a-2127-422b-91ae-364da2661108 lists.apache.org
Oracle Critical Patch Update Advisory - January 2022 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com Patch, Third Party Advisory
Oracle Critical Patch Update Advisory - April 2021 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com Patch, Third Party Advisory
security.netapp.com/advisory/ntap-20240621-0006 af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
[R1] Nessus Network Monitor 5.13.1 Fixes Multiple Third-party Vulnerabilities - Security Advisory | Tenable® af854a3a-2127-422b-91ae-364da2661108 www.tenable.com Third Party Advisory
[R1] LCE 6.0.9 Fixes Multiple Third-party Vulnerabilities - Security Advisory | Tenable® af854a3a-2127-422b-91ae-364da2661108 www.tenable.com Third Party Advisory
Debian -- Security Information -- DSA-4855-1 openssl af854a3a-2127-422b-91ae-364da2661108 www.debian.org Third Party Advisory
lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450... af854a3a-2127-422b-91ae-364da2661108 lists.apache.org
cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf af854a3a-2127-422b-91ae-364da2661108 cert-portal.siemens.com Third Party Advisory
Public KB - SA44846 - OpenSSL Security Advisory CVE-2021-23841 af854a3a-2127-422b-91ae-364da2661108 kb.pulsesecure.net Third Party Advisory
git.openssl.org Git - openssl.git/commitdiff MITRE git.openssl.org
git.openssl.org Git - openssl.git/commitdiff MITRE git.openssl.org
Pony Mail! MITRE lists.apache.org
Pony Mail! MITRE lists.apache.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Paul Kehrer (en)

Legacy QID Mappings

  • 159414 Oracle Enterprise Linux Security Update for Open Secure Sockets Layer (OpenSSL) (ELSA-2021-3798)
  • 159423 Oracle Enterprise Linux Security Update for Open Secure Sockets Layer (OpenSSL) (ELSA-2021-9478)
  • 159438 Oracle Enterprise Linux Security Update for Open Secure Sockets Layer (OpenSSL) (ELSA-2021-9528)
  • 159512 Oracle Enterprise Linux Security Update for Open Secure Sockets Layer (OpenSSL) (ELSA-2021-4424)
  • 159562 Oracle Enterprise Linux Security Update for Open Secure Sockets Layer (OpenSSL) (ELSA-2021-9561)
  • 174786 SUSE Enterprise Linux Security update for openssl-1_1 (SUSE-SU-2021:0754-1)
  • 174789 SUSE Enterprise Linux Security update for openssl-1_0_0 (SUSE-SU-2021:0769-1)
  • 174794 SUSE Enterprise Linux Security update for compat-openssl098 (SUSE-SU-2021:0793-1)
  • 174839 SUSE Enterprise Linux Security update for openssl (SUSE-SU-2021:0939-1)
  • 174858 SUSE Enterprise Linux Security update for openssl (SUSE-SU-2021:0939-1)
  • 180566 Debian Security Update for Open Secure Sockets Layer (OpenSSL) (CVE-2021-23840)
  • 198517 Ubuntu Security Notification for EDK II Vulnerabilities (USN-5088-1)
  • 239678 Red Hat Update for Open Secure Sockets Layer (OpenSSL) (RHSA-2021:3798)
  • 239793 Red Hat Update for edk2 security (RHSA-2021:4198)
  • 239823 Red Hat Update for Open Secure Sockets Layer (OpenSSL) (RHSA-2021:4424)
  • 239865 Red Hat Update for red hat jboss core services apache Hypertext Transfer Protocol (HTTP) server 2.4.37 sp10 (RHSA-2021:4614)
  • 257128 CentOS Security Update for Open Secure Sockets Layer (OpenSSL) (CESA-2021:3798)
  • 296067 Oracle Solaris 11.4 Support Repository Update (SRU) 33.94.0 Missing (CPUAPR2021)
  • 330081 IBM AIX Multiple Vulnerabilities in Openssl (openssl_advisory33)
  • 352246 Amazon Linux Security Advisory for openssl11: ALAS2-2021-1612
  • 352296 Amazon Linux Security Update for Open Secure Sockets Layer (OpenSSL): AL2012-2021-339
  • 357333 Amazon Linux Security Advisory for edk2 : ALAS2-2024-2502
  • 375467 Node.js Multiple Vulnerabilities
  • 375658 Node.js Multiple Vulnerabilities (February 2021) (Installed with Nodlist)
  • 376544 F5 BIG-IP Application Security Manager (ASM), Local Traffic Manager (LTM), Access Policy Manager (APM) Open Secure Sockets Layer (OpenSSL) Vulnerability (K24624116)
  • 377475 Alibaba Cloud Linux Security Update for Open Secure Sockets Layer (OpenSSL) (ALINUX2-SA-2021:0056)
  • 379452 IBM Cognos Analytics Multiple Vulnerabilities (7123154)
  • 38845 Pulse Connect Secure and Pulse Policy Secure Multiple Vulnerabilities (SA44846)
  • 500497 Alpine Linux Security Update for Open Secure Sockets Layer (OpenSSL)
  • 500565 Alpine Linux Security Update for Open Secure Sockets Layer (OpenSSL)
  • 500764 Alpine Linux Security Update for openssl
  • 501164 Alpine Linux Security Update for openssl
  • 501983 Alpine Linux Security Update for Open Secure Sockets Layer3 (OpenSSL3)
  • 502902 Alpine Linux Security Update for openssl1.1-compat
  • 504256 Alpine Linux Security Update for openssl
  • 591054 Mitsubishi Electric MELSOFT GT OPC UA, GT SoftGOT2000 Multiple Vulnerabilities (ICSA-22-130-06)
  • 591311 Bosch Rexroth PRA-ES8P2S Ethernet-Switch Multiple Vulnerabilities (BOSCH-SA-247053-BT)
  • 670250 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL098e) (EulerOS-SA-2021-1826)
  • 670251 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2021-1825)
  • 670315 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL11d) (EulerOS-SA-2021-1909)
  • 670316 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL098e) (EulerOS-SA-2021-1908)
  • 670317 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2021-1907)
  • 670342 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2021-1882)
  • 670369 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2021-1956)
  • 670390 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2021-1935)
  • 670658 EulerOS Security Update for Open Secure Sockets Layer (OpenSSL) (EulerOS-SA-2021-2416)
  • 670659 EulerOS Security Update for Open Secure Sockets Layer098e (OpenSSL098e) openssl098e (EulerOS-SA-2021-2417)
  • 670660 EulerOS Security Update for Open Secure Sockets Layer110f (openssl110f) (EulerOS-SA-2021-2418)
  • 670698 EulerOS Security Update for Compat-Open Secure Sockets Layer10 (compat-openssl10) (EulerOS-SA-2021-2456)
  • 670784 EulerOS Security Update for shim (EulerOS-SA-2021-2542)
  • 670808 EulerOS Security Update for shim (EulerOS-SA-2021-2566)
  • 690211 Free Berkeley Software Distribution (FreeBSD) Security Update for node.js (2f3cd69e-7dee-11eb-b92e-0022489ad614)
  • 710009 Gentoo Linux OpenSSL Multiple Vulnerabilities (GLSA 202103-03)
  • 730228 McAfee Web Gateway Multiple Vulnerabilities (WP-3445, WP-3483, WP-3527, WP-3528, WP-3547, WP-3584,WP-3589,WP-3611)
  • 750308 OpenSUSE Security Update for openssl-1_0_0 (openSUSE-SU-2021:0430-1)
  • 750310 OpenSUSE Security Update for openssl-1_1 (openSUSE-SU-2021:0427-1)
  • 750335 OpenSUSE Security Update for nodejs10 (openSUSE-SU-2021:0372-1)
  • 750340 OpenSUSE Security Update for nodejs12 (openSUSE-SU-2021:0357-1)
  • 91782 IBM Integration Bus and IBM App Connect Enterprise Open Secure Sockets Layer (OpenSSL) Multiple Vulnerabilities (6463979)
  • 940020 AlmaLinux Security Update for edk2 (ALSA-2021:4198)
  • 940234 AlmaLinux Security Update for Open Secure Sockets Layer (OpenSSL) (ALSA-2021:4424)
  • 960698 Rocky Linux Security Update for edk2 (RLSA-2021:4198)
  • 960795 Rocky Linux Security Update for Open Secure Sockets Layer (OpenSSL) (RLSA-2021:4424)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report