{"id":"CVE-2021-23840","aliases":["CVE-2021-23840","GHSA-qgm6-9472-pwq7","BIT-NODE-2021-23840","BIT-NODE-MIN-2021-23840","RUSTSEC-2021-0057"],"related":[],"kind":"vulnerability","state":"published","title":"Integer overflow in CipherUpdate","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"},{"lang":"en","text":"Calls to `EVP_CipherUpdate`, `EVP_EncryptUpdate` and `EVP_DecryptUpdate` may overflow\nthe output length argument in some cases where the input length is close to the\nmaximum permissable length for an integer on the platform. In such cases the\nreturn value from the function call will be 1 (indicating success), but the\noutput length value will be negative. This could cause applications to behave\nincorrectly or crash.","format":"markdown","source":"rustsec"},{"lang":"es","text":"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)","source":"nvd"}],"published":"2021-02-16T16:55:18.192Z","modified":"2026-10-16T09:45:28.346Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"Fixed in OpenSSL 1.1.1j (Affected 1.1.1-1.1.1i)","status":"affected"},{"version":"Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x)","status":"affected"}],"vendor":"OpenSSL","product":"OpenSSL","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"111.14.0"}],"ecosystem":"crates.io","package":"openssl-src","purl":"pkg:cargo/openssl-src","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"111.14.0"}],"ecosystem":"crates.io","package":"openssl-src","purl":"pkg:cargo/openssl-src","source":"rustsec"},{"ranges":[{"status":"affected","introduced":"1.0.2","fixed":"1.0.2y"},{"status":"affected","introduced":"1.1.1","fixed":"1.1.1j"}],"vendor":"openssl","product":"openssl","cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"6.0.8"}],"vendor":"tenable","product":"log_correlation_engine","cpe":"cpe:2.3:a:tenable:log_correlation_engine:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"5.11.0"},{"status":"affected","version":"5.11.1"},{"status":"affected","version":"5.12.0"},{"status":"affected","version":"5.12.1"},{"status":"affected","version":"5.13.0"}],"vendor":"tenable","product":"nessus_network_monitor","cpe":"cpe:2.3:a:tenable:nessus_network_monitor:5.11.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"5.5.0.0.0"},{"status":"affected","version":"5.9.0.0.0"},{"status":"affected","version":"12.2.1.3.0"},{"status":"affected","version":"12.2.1.4.0"}],"vendor":"oracle","product":"business_intelligence","cpe":"cpe:2.3:a:oracle:business_intelligence:5.5.0.0.0:*:*:*:enterprise:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.15.0"}],"vendor":"oracle","product":"communications_cloud_native_core_policy","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.15.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"13.4.0.0"}],"vendor":"oracle","product":"enterprise_manager_for_storage_management","cpe":"cpe:2.3:a:oracle:enterprise_manager_for_storage_management:13.4.0.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"12.4.0.0"}],"vendor":"oracle","product":"enterprise_manager_ops_center","cpe":"cpe:2.3:a:oracle:enterprise_manager_ops_center:12.4.0.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"19.3.5"},{"status":"affected","version":"20.3.1.2"},{"status":"affected","version":"21.0.0.2"}],"vendor":"oracle","product":"graalvm","cpe":"cpe:2.3:a:oracle:graalvm:19.3.5:*:*:*:enterprise:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"9.2.6.0"}],"vendor":"oracle","product":"jd_edwards_enterpriseone_tools","cpe":"cpe:2.3:a:oracle:jd_edwards_enterpriseone_tools:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"a9.4"}],"vendor":"oracle","product":"jd_edwards_world_security","cpe":"cpe:2.3:a:oracle:jd_edwards_world_security:a9.4:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"5.7.33"},{"status":"affected","introduced":"8.0.15","fixed":"8.0.23"}],"vendor":"oracle","product":"mysql_server","cpe":"cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"20.3"}],"vendor":"oracle","product":"nosql_database","cpe":"cpe:2.3:a:oracle:nosql_database:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"5.10.0"},{"status":"affected","version":"5.10.0"},{"status":"affected","version":"5.10.0"},{"status":"affected","version":"5.10.0"},{"status":"affected","version":"5.10.0"},{"status":"affected","version":"5.10.0"},{"status":"affected","version":"5.10.0"},{"status":"affected","version":"5.10.0"},{"status":"affected","version":"5.10.0"},{"status":"affected","version":"5.10.0"},{"status":"affected","version":"5.10.0"},{"status":"affected","version":"5.10.0"}],"vendor":"mcafee","product":"epolicy_orchestrator","cpe":"cpe:2.3:a:mcafee:epolicy_orchestrator:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"xcp2410"},{"status":"affected","fixed":"xcp3110"}],"vendor":"fujitsu","product":"m10-1_firmware","cpe":"cpe:2.3:o:fujitsu:m10-1_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"xcp2410"},{"status":"affected","fixed":"xcp3110"}],"vendor":"fujitsu","product":"m10-4_firmware","cpe":"cpe:2.3:o:fujitsu:m10-4_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"xcp2410"},{"status":"affected","fixed":"xcp3110"}],"vendor":"fujitsu","product":"m10-4s_firmware","cpe":"cpe:2.3:o:fujitsu:m10-4s_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"xcp2410"},{"status":"affected","fixed":"xcp3110"}],"vendor":"fujitsu","product":"m12-1_firmware","cpe":"cpe:2.3:o:fujitsu:m12-1_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"xcp2410"},{"status":"affected","fixed":"xcp3110"}],"vendor":"fujitsu","product":"m12-2_firmware","cpe":"cpe:2.3:o:fujitsu:m12-2_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"xcp2410"},{"status":"affected","fixed":"xcp3110"}],"vendor":"fujitsu","product":"m12-2s_firmware","cpe":"cpe:2.3:o:fujitsu:m12-2s_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"10.0.0","lastAffected":"10.12.0"},{"status":"affected","introduced":"10.13.0","fixed":"10.24.0"},{"status":"affected","introduced":"12.0.0","lastAffected":"12.12.0"},{"status":"affected","introduced":"12.13.0","fixed":"12.21.0"},{"status":"affected","introduced":"14.0.0","lastAffected":"14.14.0"},{"status":"affected","introduced":"15.0.0","fixed":"15.10.0"},{"status":"affected","version":"14.15.0"}],"vendor":"nodejs","product":"node.js","cpe":"cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.12.1"},{"type":"semver","introduced":"10.13.0","status":"affected","fixed":"10.24.0"},{"type":"semver","introduced":"12.0.0","status":"affected","fixed":"12.12.1"},{"type":"semver","introduced":"12.13.0","status":"affected","fixed":"12.21.0"},{"type":"semver","introduced":"14.0.0","status":"affected","fixed":"14.14.1"},{"type":"semver","introduced":"14.15.0","status":"affected","fixed":"14.15.1"},{"type":"semver","introduced":"15.0.0","status":"affected","fixed":"15.10.0"}],"ecosystem":"Bitnami","package":"node","purl":"pkg:bitnami/node","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.12.1"},{"type":"semver","introduced":"10.13.0","status":"affected","fixed":"10.24.0"},{"type":"semver","introduced":"12.0.0","status":"affected","fixed":"12.12.1"},{"type":"semver","introduced":"12.13.0","status":"affected","fixed":"12.21.0"},{"type":"semver","introduced":"14.0.0","status":"affected","fixed":"14.14.1"},{"type":"semver","introduced":"14.15.0","status":"affected","fixed":"14.15.1"},{"type":"semver","introduced":"15.0.0","status":"affected","fixed":"15.10.0"}],"ecosystem":"Bitnami","package":"node-min","purl":"pkg:bitnami/node-min","source":"bitnami"}],"references":[{"url":"https://www.openssl.org/news/secadv/20210216.txt","tags":["advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd","bitnami"]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=6a51b9e1d0cf0bf8515f7201b68fb0a3482b3dc1","tags":["web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=9b1129239f3ebb1d1c98ce9ed41d5c9476c47cb2","tags":["web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.debian.org/security/2021/dsa-4855","tags":["advisory","third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202103-03","tags":["advisory","third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html","tags":["advisory","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.tenable.com/security/tns-2021-10","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.tenable.com/security/tns-2021-09","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20210219-0009/","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.tenable.com/security/tns-2021-03","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["advisory","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44846","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["advisory","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://kc.mcafee.com/corporate/index?page=content&id=SB10366","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["advisory","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["advisory","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0006/","tags":["web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23840","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20210219-0009","tags":["web"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0057.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4@%3Cissues.bookkeeper.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b@%3Cissues.bookkeeper.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/alexcrichton/openssl-src-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=9b1129239f3ebb1d1c98ce9ed41d5c9476c47cb2","tags":["web"],"sources":["ghsa"]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=6a51b9e1d0cf0bf8515f7201b68fb0a3482b3dc1","tags":["web"],"sources":["ghsa"]},{"url":"https://crates.io/crates/openssl-src","tags":["package"],"sources":["rustsec"]}],"credits":["Paul Kehrer"],"assigner":"openssl","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-16T14:12:28.645Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23840","url":"https://www.cve.org/CVERecord?id=CVE-2021-23840","licence":"CVE Terms of Use","modified":"2026-04-16T14:12:36.721Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qgm6-9472-pwq7","url":"https://github.com/advisories/GHSA-qgm6-9472-pwq7","licence":"CC-BY-4.0","modified":"2024-12-16T15:27:07.565Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0057","url":"https://rustsec.org/advisories/RUSTSEC-2021-0057.html","licence":"CC0-1.0","modified":"2024-12-16T15:27:07.565Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23840","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23840","licence":"Public domain","modified":"2026-06-17T03:38:54.593Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-NODE-2021-23840","url":"https://osv.dev/vulnerability/BIT-NODE-2021-23840","licence":"Apache-2.0","modified":"2026-10-16T09:45:19.901Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-NODE-MIN-2021-23840","url":"https://osv.dev/vulnerability/BIT-NODE-MIN-2021-23840","licence":"Apache-2.0","modified":"2026-10-16T09:45:28.346Z"}],"updatedAt":"2026-11-25T22:57:59.961Z","epss":{"score":0.51145,"percentile":0.98955,"date":"2026-12-01T12:00:22.000Z"}}