CVE-2021-23840
JSON

7.5high

Integer overflow in CipherUpdate

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
51.1% (higher than 98% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
openssl
Also known as
GHSA-qgm6-9472-pwq7BIT-NODE-2021-23840BIT-NODE-MIN-2021-23840RUSTSEC-2021-0057

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

Product or packageVersionsReported by
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), from 1.0.2 before 1.0.2y, from 1.1.1 before 1.1.1jCVE List, NVD
openssl-src (crates.io)before 111.14.0, from 0.0.0-0 before 111.14.0GitHub Advisory Database, RustSec Advisory Database
debian debian_linux10.0NVD
tenable log_correlation_enginebefore 6.0.8NVD
tenable nessus_network_monitor5.11.0, 5.11.1, 5.12.0, 5.12.1, 5.13.0NVD
oracle business_intelligence5.5.0.0.0, 5.9.0.0.0, 12.2.1.3.0, 12.2.1.4.0NVD
oracle communications_cloud_native_core_policy1.15.0NVD
oracle enterprise_manager_for_storage_management13.4.0.0NVD
oracle enterprise_manager_ops_center12.4.0.0NVD
oracle graalvm19.3.5, 20.3.1.2, 21.0.0.2NVD
oracle jd_edwards_enterpriseone_toolsbefore 9.2.6.0NVD
oracle jd_edwards_world_securitya9.4NVD

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
RustSec Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P
Bitnami Vulnerability Databasehigh rating

Classification

CWE-190

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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

RustSec Advisory Database

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.

NVD (es)

Las llamadas a EVP_CipherUpdate, EVP_EncryptUpdate y EVP_DecryptUpdate, pueden desbordar el argumento de la longitud de salida en algunos casos en los que la longitud de entrada está cerca de la longitud máxima permitida para un entero en la plataforma. En tales casos, el valor de retorno de la llamada a la función será 1 (indicando success), pero el valor de la longitud de salida será negativo. Esto podría causar que las aplicaciones se comporten de forma incorrecta o se bloqueen. Las versiones de OpenSSL 1.1.1i e inferiores están afectadas por este problema. Los usuarios de estas versiones deberían actualizar a OpenSSL versión 1.1.1j. Las versiones de OpenSSL 1.0.2x e inferiores están afectadas por este problema. Sin embargo, OpenSSL versión 1.0.2 está fuera de soporte y ya no recibe actualizaciones públicas. Los clientes con soporte Premium de OpenSSL versión 1.0.2 deben actualizar a la versión 1.0.2y. Los demás usuarios deben actualizar a la versión 1.1.1j. Corregido en OpenSSL versión 1.1.1j (Afectó versiones 1.1.1-1.1.1i). Corregido en OpenSSL versión 1.0.2y (Afectó versiones 1.0.2-1.0.2x)

References

https://www.openssl.org/news/secadv/20210216.txtadvisory, vendor-advisory, web
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=6a51b9e1d0cf0bf8515f7201b68fb0a3482b3dc1web
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=9b1129239f3ebb1d1c98ce9ed41d5c9476c47cb2web
https://www.debian.org/security/2021/dsa-4855advisory, third-party-advisory, vendor-advisory, web
https://security.gentoo.org/glsa/202103-03advisory, third-party-advisory, vendor-advisory, web
https://www.oracle.com/security-alerts/cpuApr2021.htmladvisory, patch, third-party-advisory, web
https://www.tenable.com/security/tns-2021-10advisory, third-party-advisory, web
https://www.tenable.com/security/tns-2021-09advisory, third-party-advisory, web
https://security.netapp.com/advisory/ntap-20210219-0009/advisory, third-party-advisory
https://www.tenable.com/security/tns-2021-03advisory, third-party-advisory, web
https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3Emailing-list, web
https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3Emailing-list, web

Sources

SourceRecordLicence
CVE ListCVE-2021-23840 changed 2026-04-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-qgm6-9472-pwq7 changed 2024-12-16CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0057 changed 2024-12-16CC0-1.0
NVDCVE-2021-23840 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-NODE-2021-23840 changed 2026-10-16Apache-2.0
Bitnami Vulnerability DatabaseBIT-NODE-MIN-2021-23840 changed 2026-10-16Apache-2.0