cve.bz

CVE-2021-23840 Year 2038 problem, Y2K38, Y2038, Epochalypse

7.5 highEPSS 51%Fix available

High (7.5). EPSS 51% estimated probability of exploitation activity in the next 30 days. Fixed in openssl-src 111.14.0.

On this page
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).

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
51% (unchanged from 51% a week ago; 51% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-04-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-23840 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23840?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23840?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-23840 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openssl:opensslfrom 1.0.2 before 1.0.2y
openssl:opensslfrom 1.1.1 before 1.1.1j
debian:debian_linux10.0
tenable:log_correlation_enginebefore 6.0.8
tenable:nessus_network_monitor5.11.0
tenable:nessus_network_monitor5.11.1
tenable:nessus_network_monitor5.12.0
tenable:nessus_network_monitor5.12.1
tenable:nessus_network_monitor5.13.0
oracle:business_intelligence5.5.0.0.0
oracle:business_intelligence5.9.0.0.0
oracle:business_intelligence12.2.1.3.0
oracle:business_intelligence12.2.1.4.0
oracle:communications_cloud_native_core_policy1.15.0
oracle:enterprise_manager_for_storage_management13.4.0.0
oracle:enterprise_manager_ops_center12.4.0.0
oracle:graalvm19.3.5
oracle:graalvm20.3.1.2
oracle:graalvm21.0.0.2
oracle:jd_edwards_enterpriseone_toolsbefore 9.2.6.0
oracle:jd_edwards_world_securitya9.4
oracle:mysql_serverbefore 5.7.33
oracle:mysql_serverfrom 8.0.15 before 8.0.23
oracle:nosql_databasebefore 20.3
mcafee:epolicy_orchestratorbefore 5.10.0
mcafee:epolicy_orchestrator5.10.0
mcafee:epolicy_orchestrator5.10.0:update_1
mcafee:epolicy_orchestrator5.10.0:update_10
mcafee:epolicy_orchestrator5.10.0:update_2
mcafee:epolicy_orchestrator5.10.0:update_3
mcafee:epolicy_orchestrator5.10.0:update_4
mcafee:epolicy_orchestrator5.10.0:update_5
mcafee:epolicy_orchestrator5.10.0:update_6
mcafee:epolicy_orchestrator5.10.0:update_7
mcafee:epolicy_orchestrator5.10.0:update_8
mcafee:epolicy_orchestrator5.10.0:update_9
fujitsu:m10-1_firmwarebefore xcp2410
fujitsu:m10-4_firmwarebefore xcp2410
fujitsu:m10-4s_firmwarebefore xcp2410
fujitsu:m12-1_firmwarebefore xcp2410
fujitsu:m12-2_firmwarebefore xcp2410
fujitsu:m12-2s_firmwarebefore xcp2410
fujitsu:m10-1_firmwarebefore xcp3110
fujitsu:m10-4_firmwarebefore xcp3110
fujitsu:m10-4s_firmwarebefore xcp3110
fujitsu:m12-1_firmwarebefore xcp3110
fujitsu:m12-2_firmwarebefore xcp3110
fujitsu:m12-2s_firmwarebefore xcp3110
nodejs:node.jsfrom 10.0.0 through 10.12.0
nodejs:node.jsfrom 10.13.0 before 10.24.0
nodejs:node.jsfrom 12.0.0 through 12.12.0
nodejs:node.jsfrom 12.13.0 before 12.21.0
nodejs:node.jsfrom 14.0.0 through 14.14.0
nodejs:node.jsfrom 15.0.0 before 15.10.0
nodejs:node.js14.15.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qgm6-9472-pwq7crates.ioopenssl-src<111.14.0111.14.0
RUSTSEC-2021-0057crates.ioopenssl-src>=0.0.0-0 <111.14.0111.14.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9openssl1.1.0l-1~deb9u3DLA-2563-1
Debian9openssl1.01.0.2u-1~deb9u4DLA-2565-1
Debian10openssl1.1.1d-0+deb10u5DSA-4855-1
Debian12, 13, 14openssl1.1.1j-1DEBIAN-CVE-2021-23840
Ubuntu16.04:LTSopenssl1.0.2g-1ubuntu4.19UBUNTU-CVE-2021-23840 USN-4738-1
Ubuntu18.04:LTSopenssl1.1.1-1ubuntu2.1~18.04.8UBUNTU-CVE-2021-23840 USN-4738-1
Ubuntu18.04:LTSopenssl1.01.0.2n-1ubuntu5.6UBUNTU-CVE-2021-23840 USN-4738-1
Ubuntu20.04:LTSedk20~20191122.bd85bf54-2ubuntu3.3UBUNTU-CVE-2021-23840 USN-5088-1
Ubuntu20.04:LTSopenssl1.1.1f-1ubuntu2.2UBUNTU-CVE-2021-23840 USN-4738-1
UbuntuPro:14.04:LTSopenssl1.0.1f-1ubuntu2.27+esm10UBUNTU-CVE-2021-23840 USN-7018-1
UbuntuPro:16.04:LTS, Pro:18.04:LTSedk2no fix listedUBUNTU-CVE-2021-23840
UbuntuPro:FIPS-updates:16.04:LTSopenssl1.0.2g-1ubuntu4.fips.4.19.3UBUNTU-CVE-2021-23840
UbuntuPro:FIPS-updates:18.04:LTSopenssl1.1.1-1ubuntu2.fips.2.1~18.04.9.1UBUNTU-CVE-2021-23840
UbuntuPro:FIPS-updates:20.04:LTSopenssl1.1.1f-1ubuntu2.fips.7.2UBUNTU-CVE-2021-23840
UbuntuPro:FIPS:16.04:LTS, Pro:FIPS:18.04:LTSopensslno fix listedUBUNTU-CVE-2021-23840
UbuntuPro:FIPS:20.04:LTSopenssl1.1.1f-1ubuntu2.fips.2.8UBUNTU-CVE-2021-23840
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationopenssl, openssl-libs, openssl-perl and 3 more1:1.0.2k-22.el7_9RHSA-2021:3798
Red Hatenterprise_linux:7::computenodeopenssl-perl, openssl-devel, openssl-static and 1 more1:1.0.2k-22.el7_9RHSA-2021:3798
Red Hatenterprise_linux:8::appstreamedk2, edk2-ovmf, edk2-aarch640:20210527gite1999b264f1f-3.el8RHSA-2021:4198
Red Hatenterprise_linux:8::baseosopenssl, openssl-libs, openssl-perl and 4 more1:1.1.1k-4.el8RHSA-2021:4424
Red Hatjboss_core_services:1::el7jbcs-httpd24-apr, jbcs-httpd24-apr-devel, jbcs-httpd24-apr-debuginfo0:1.6.3-107.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-apr-util, jbcs-httpd24-apr-util-nss, jbcs-httpd24-apr-util-ldap and 7 more0:1.6.1-84.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:7.78.0-2.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.37-78.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_cluster-native, jbcs-httpd24-mod_cluster-native-debuginfo0:1.3.16-9.Final_redhat_2.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.7-21.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_jk, jbcs-httpd24-mod_jk-ap24, jbcs-httpd24-mod_jk-manual and 1 more0:1.2.48-20.redhat_1.jbcs.el7RHSA-2021:4614
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_md, jbcs-httpd24-mod_md-debuginfo1:2.0.8-40.jbcs.el7RHSA-2021:4614
26 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 morenodejs1010.24.0-1.33.2SUSE-SU-2021:0674-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 6 moreopenssl-1_11.1.0i-14.15.1SUSE-SU-2021:0753-1
SUSEEnterprise Storage 6, Linux Enterprise Module for Legacy 15 SP2, Linux Enterprise Server 15 SP1-BCL and 7 moreopenssl-1_0_01.0.2p-3.37.1SUSE-SU-2021:0769-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS and 7 moreopenssl1.0.2j-60.66.1SUSE-SU-2021:0939-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moreopenssl-1_11.1.0i-4.57.1SUSE-SU-2021:0755-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2openssl-1_11.1.1d-11.17.1SUSE-SU-2021:0754-1
SUSELinux Enterprise Module for Legacy 12, Linux Enterprise Server for SAP Applications 12 SP2, Linux Enterprise Server for SAP Applications 12 SP3 and 2 morecompat-openssl0980.9.8j-106.24.1SUSE-SU-2021:0793-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1010.24.0-1.36.2SUSE-SU-2021:0673-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1212.21.0-1.29.2SUSE-SU-2021:0649-1
SUSELinux Enterprise Module for Web and Scripting 15 SP2nodejs1212.21.0-4.13.2SUSE-SU-2021:0651-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSopenssl0.9.8j-0.106.37.1SUSE-SU-2021:14670-1
SUSELinux Enterprise Server 11-SECURITYopenssl11.0.1g-0.58.33.1SUSE-SU-2021:14667-1
2 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2nodejs1010.24.0-lp152.2.12.1openSUSE-SU-2021:0372-1
openSUSELeap 15.2nodejs1212.21.0-lp152.3.12.1openSUSE-SU-2021:0357-1
openSUSELeap 15.2openssl-1_0_01.0.2p-lp152.8.12.1openSUSE-SU-2021:0430-1
openSUSELeap 15.2openssl-1_11.1.1d-lp152.7.12.1openSUSE-SU-2021:0427-1
openSUSETumbleweedopenssl-1_0_01.0.2u-6.2openSUSE-SU-2024:11126-1
openSUSETumbleweedopenssl-1_11.1.1l-1.2openSUSE-SU-2024:11127-1
AlmaLinux8edk2-ovmf20210527gite1999b264f1f-3.el8ALSA-2021:4198
Rocky Linux8edk20:20210527gite1999b264f1f-3.el8RLSA-2021:4198
Rocky Linux8openssl1:1.1.1k-4.el8RLSA-2021:4424
Alpinev3.9, v3.10, v3.11 and 9 moreopenssl1.1.1j-r0ALPINE-CVE-2021-23840
Alpinev3.15, v3.16openssl, openssl31.1.1j-r0ALPINE-CVE-2021-23840
Alpinev3.17, v3.18openssl, openssl1.1-compat1.1.1j-r0ALPINE-CVE-2021-23840
Azure Linux3shim-unsigned-x641.1.1-1AZL-41976

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

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 as not affected as its already fixed in RHEL9 Alpha release.

ProductPackageStateAdvisory
JBoss Core Services for RHEL 8jbcs-httpd24-apr-0:1.6.3-107.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-apr-util-0:1.6.1-84.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-curl-0:7.78.0-2.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-httpd-0:2.4.37-78.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-mod_cluster-native-0:1.3.16-9.Final_redhat_2.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-mod_http2-0:1.15.7-21.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-mod_jk-0:1.2.48-20.redhat_1.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-mod_md-1:2.0.8-40.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-mod_security-0:2.9.2-67.GA.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-nghttp2-0:1.39.2-39.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-1:1.1.1g-8.el8jbcsFixed 2021-11-10RHSA-2021:4614
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-chil-0:1.0.0-7.el8jbcsFixed 2021-11-10RHSA-2021:4614
Red Hat Advanced Cluster Management for Kubernetes 2management-ingressAffected
Red Hat Enterprise Linux 6opensslNot affected
Red Hat Enterprise Linux 6openssl098eNot affected
Red Hat Enterprise Linux 7openssl098eNot affected
Red Hat Enterprise Linux 7ovmfAffected
Red Hat Enterprise Linux 8compat-openssl10Not affected
Red Hat Enterprise Linux 9opensslNot affected
Red Hat JBoss Enterprise Application Platform 6opensslOut of support scope
25 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-23840.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-130-06Mitsubishi Electric MELSOFT GT OPC UA2022-05-10Critical ManufacturingGT SoftGOT2000: Versions 1.215Z to 1.270G, MELSOFT GT OPC UA Client: Versions 1.00A to 1.02Cnone listed
ICSA-22-116-01Hitachi Energy System Data Manager2022-04-26EnergyAll System Data Manager - SDM600: versions prior to version 1.2 FP2 HF10 (Build Nr. 1.2.14002.506)none listed
ICSA-22-069-09Siemens SINEC INS2022-03-08MultipleSINEC INSnone listed
ICSA-21-336-06Hitachi Energy APM Edge2021-12-02EnergyAPM Edge: Version 3.0, APM Edge: Version 2.0, APM Edge: Version 1.0none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON