{"answers":{"affected":"5 open source packages ship an affected version, including openssl-src, node and node-min. It affects 21 products.","exploited":"There is no known exploitation of CVE-2021-23840 in the wild and no public exploit code.","fix":"Upgrade openssl-src to 111.14.0 or later.","what":"CVE-2021-23840 is a high-severity vulnerability in Debian Debian Linux, published on 16 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-23840 and fix it if it is affected.\n\nWhat it is: CVE-2021-23840 is a high-severity vulnerability in Debian Debian Linux, published on 16 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-23840 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- openssl-src (crates.io): affected all versions; fixed in 111.14.0\n- openssl-src (crates.io): affected all versions; fixed in 111.14.0\n- openssl-src (crates.io): affected from 0.0.0-0; fixed in 111.14.0\n- node (Bitnami): affected from 10.0.0; fixed in 10.12.1, 10.24.0, 12.12.1, 12.21.0, 14.14.1, 14.15.1, 15.10.0\n- node-min (Bitnami): affected from 10.0.0; fixed in 10.12.1, 10.24.0, 12.12.1, 12.21.0, 14.14.1, 14.15.1, 15.10.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-23840/ (Markdown: https://insights.sbomify.com/CVE-2021-23840/index.md)","id":"CVE-2021-23840","markdown":"https://insights.sbomify.com/CVE-2021-23840/index.md","name":"CVE-2021-23840","record":{"aliases":["ALPINE-CVE-2021-23840","AZL-41976","BIT-node-2021-23840","BIT-node-min-2021-23840","CLEANSTART-2026-AD83127","CLSA-2021-1632261785","CLSA-2021-1634922862","DEBIAN-CVE-2021-23840","GHSA-qgm6-9472-pwq7","JLSEC-2026-221","RUSTSEC-2021-0057","UBUNTU-CVE-2021-23840"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenSSL cryptographic library","requires_auth":"none","summary":"An integer overflow in OpenSSL's cipher update functions can cause applications to crash or behave incorrectly when processing large inputs.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"openssl","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"m10-1_firmware","vendor":"fujitsu"},{"product":"m10-4_firmware","vendor":"fujitsu"},{"product":"m10-4s_firmware","vendor":"fujitsu"},{"product":"m12-1_firmware","vendor":"fujitsu"},{"product":"m12-2_firmware","vendor":"fujitsu"},{"product":"m12-2s_firmware","vendor":"fujitsu"},{"product":"epolicy_orchestrator","vendor":"mcafee"},{"product":"node.js","vendor":"nodejs"},{"product":"openssl","vendor":"openssl"},{"product":"business_intelligence","vendor":"oracle"},{"product":"communications_cloud_native_core_policy","vendor":"oracle"},{"product":"enterprise_manager_for_storage_management","vendor":"oracle"},{"product":"enterprise_manager_ops_center","vendor":"oracle"},{"product":"graalvm","vendor":"oracle"},{"product":"jd_edwards_enterpriseone_tools","vendor":"oracle"},{"product":"jd_edwards_world_security","vendor":"oracle"},{"product":"mysql_server","vendor":"oracle"},{"product":"nosql_database","vendor":"oracle"},{"product":"log_correlation_engine","vendor":"tenable"},{"product":"nessus_network_monitor","vendor":"tenable"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"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).","ecosystems":["Bitnami","crates.io"],"exploits":{"exploitdb":0,"first_seen":"2023-09-11","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-09-11T09:24:54Z","kind":"github_poc","ref":"https://github.com/Trinadh465/openssl-1.1.1g_CVE-2021-23840","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Integer overflow in CipherUpdate","id":"CVE-2021-23840","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"debian:debian_linux","products":["debian:debian_linux","mcafee:epolicy_orchestrator","nodejs:node.js","openssl:openssl","oracle:business_intelligence","oracle:communications_cloud_native_core_policy","oracle:enterprise_manager_ops_center","oracle:graalvm","oracle:jd_edwards_enterpriseone_tools","oracle:mysql_server"],"type":"integer_overflow","year":"2021"},"n_packages":5,"n_references":20,"next":{"headline":"Null pointer deref in X509_issuer_and_serial_hash()","id":"CVE-2021-23841"},"packages":[{"ecosystem":"Bitnami","fixed":["10.12.1","10.24.0","12.12.1","12.21.0","14.14.1","14.15.1","15.10.0"],"introduced":["10.0.0","10.13.0","12.0.0","12.13.0","14.0.0","14.15.0","15.0.0"],"last_affected":[],"package":"node","purl":"pkg:bitnami/node","source":"BIT-node-2021-23840"},{"ecosystem":"Bitnami","fixed":["10.12.1","10.24.0","12.12.1","12.21.0","14.14.1","14.15.1","15.10.0"],"introduced":["10.0.0","10.13.0","12.0.0","12.13.0","14.0.0","14.15.0","15.0.0"],"last_affected":[],"package":"node-min","purl":"pkg:bitnami/node-min","source":"BIT-node-min-2021-23840"},{"ecosystem":"crates.io","fixed":["111.14.0"],"introduced":["0"],"last_affected":[],"package":"openssl-src","purl":null,"source":"GHSA-qgm6-9472-pwq7"},{"ecosystem":"crates.io","fixed":["111.14.0"],"introduced":["0"],"last_affected":[],"package":"openssl-src","purl":"pkg:cargo/openssl-src","source":"GHSA-qgm6-9472-pwq7"},{"ecosystem":"crates.io","fixed":["111.14.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"openssl-src","purl":"pkg:cargo/openssl-src","source":"RUSTSEC-2021-0057"}],"prev":{"headline":"Incorrect SSLv2 rollback protection","id":"CVE-2021-23839"},"products":["OpenSSL"],"published":"2021-02-16","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-16","vendors":["OpenSSL"]},"summary":"An integer overflow in OpenSSL's cipher update functions can cause applications to crash or behave incorrectly when processing large inputs.","url":"https://insights.sbomify.com/CVE-2021-23840/"}