Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🦀
🦀 crates.io
Not in CISA KEV
HIGH severity

CVE-2021-23840 — openssl-src

HIGH

CVE-2021-23840 is a high-severity (CVSS 7.5) CWE-190 vulnerability in openssl-src. EPSS puts its 30-day exploitation probability at 50.7% (99th percentile). A fix is available for openssl-src — see the affected versions and patch details below.

Integer Overflow in openssl-src

Also known asBIT-node-2021-23840BIT-node-min-2021-23840GHSA-qgm6-9472-pwq7RUSTSEC-2021-0057
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Oct 10, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2021-23840.

EPSS Exploitation Probability

via FIRST.org ↗
50.7%probability of exploitation in next 30 days
High Risk0.00%
Lower risk than most CVEs99th percentile — riskier than 99% of all scored CVEsHighest risk
0.00%21.9%43.9%65.8%0.6%50.7%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2021-23840 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).

Where this sits among everything scored

Of 385,386 CVEs with a current EPSS score, this one falls in the 50–90% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected
🦀openssl-src

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.

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

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🦀crates.ioopenssl-srcall versions111.14.0cargo update -p openssl-src --precise 111.14.0

Affected Products

21 products · 55 configurations
OS
debian linuxdebian
1 version
10.0
OS
m10-1 firmwarefujitsu
< xcp3110
range
OS
m10-4 firmwarefujitsu
< xcp3110
range
OS
m10-4s firmwarefujitsu
< xcp3110
range
OS
m12-1 firmwarefujitsu
< xcp3110
range
OS
m12-2 firmwarefujitsu
< xcp3110
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for openssl-src, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update openssl-src to 111.14.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-23840 is resolved across your whole dependency graph.

  3. Workarounds

    Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

This flaw only affects applications which are compiled with OpenSSL and using EVP_CipherUpdate, EVP_EncryptUpdate or EVP_DecryptUpdate functions. When specially-crafted values are passed to these functions, it can cause the application to crash or behave incorrectly. OpenSSL in Red Hat Enterprise Linux 9 was marked…

ProductFixed inAdvisory
JBoss Core Services for RHEL 8jbcs-httpd24-apr-0:1.6.3-107.el8jbcsRHSA-2021:4614
Red Hat Enterprise Linux 7openssl-1:1.0.2k-22.el7_9RHSA-2021:3798
Red Hat Enterprise Linux 8edk2-0:20210527gite1999b264f1f-3.el8RHSA-2021:4198
Red Hat Enterprise Linux 8openssl-1:1.1.1k-4.el8RHSA-2021:4424
Red Hat JBoss Core ServicesopensslRHSA-2021:4613
Red Hat JBoss Web Server 5see advisoryRHSA-2021:4863
Red Hat JBoss Web Server 5.6 on RHEL 7jws5-tomcat-0:9.0.50-3.redhat_00004.1.el7jwsRHSA-2021:4861

Frequently Asked Questions

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. Howev
O3 Security · Impact-Aware SCA

Is CVE-2021-23840 in your dependencies?

Find it across crates.io, including transitive dependencies.

CVE-2021-23840: openssl-src — Fixed in 111.14.0