LiveActive security incident?Get immediate response
CVE Record

CVE-2021-23840: Integer overflow in CipherUpdate

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).

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2021-23840 is an OpenSSL integer overflow that can make affected applications crash or behave incorrectly when processing extremely large cipher update inputs. The business impact is availability, not data theft, but OpenSSL’s broad use makes inventory and vendor patch tracking important.

Executive priority

Treat this as a high-priority availability patching issue, especially for exposed services and products bundling OpenSSL. It is not evidenced here as actively exploited, so prioritize by exposure and business criticality.

Technical view

Affected OpenSSL EVP_CipherUpdate, EVP_EncryptUpdate, and EVP_DecryptUpdate calls can return success while setting a negative output length when input length is near platform integer limits. OpenSSL 1.1.1 through 1.1.1i and 1.0.2 through 1.0.2x are affected. Fixed releases are 1.1.1j and 1.0.2y for premium 1.0.2 support customers.

Likely exposure

Exposure is most likely in servers, appliances, containers, or applications using affected OpenSSL libraries. Practical risk depends on whether reachable code paths pass attacker-influenced, very large input lengths into the affected EVP cipher update APIs.

Exploitation context

The provided bundle does not support active exploitation. It marks KEV as false and includes vendor advisories and fixes, but no cited source here reports in-the-wild exploitation or public weaponization.

Researcher notes

The core issue is CWE-190 in output length handling for EVP cipher update functions. Validation should focus on reachable affected API usage and deployed library versions. Avoid assuming all OpenSSL consumers are exploitable without confirming data flow into near-integer-limit input lengths.

Mitigation direction

  • Upgrade OpenSSL 1.1.1 deployments to 1.1.1j or later supported vendor packages.
  • For OpenSSL 1.0.2, move to a supported branch or obtain vendor-supported 1.0.2y fixes.
  • Apply relevant OS, appliance, and product vendor updates that bundle OpenSSL.
  • Prioritize internet-facing and high-availability services using OpenSSL for remediation first.
  • Check vendor guidance where OpenSSL is embedded or statically linked.

Validation and detection

  • Inventory OpenSSL versions across hosts, containers, appliances, and application dependencies.
  • Confirm runtime libraries, not only build-time packages, are fixed.
  • Review SBOMs and vendor advisories for products embedding OpenSSL.
  • Identify services accepting untrusted large encrypted or decrypted inputs.
  • Run regression testing for applications updated to patched OpenSSL packages.
Prepared
Confidence
high
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-190: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-23840 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
21Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H3.93.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2021-23840Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
OpenSSLOpenSSLFixed 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)Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-190 · source CWE mapping

Integer Overflow or Wraparound

Integer Overflow or Wraparound represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.