{"answers":{"affected":"2 open source packages ship an affected version, including rsa. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-21895 in the wild and no public exploit code.","fix":"Upgrade rsa to 0.9.10 or later.","what":"CVE-2026-21895 is a low-severity denial of service vulnerability in RustCrypto RSA, published on 8 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-21895 and fix it if it is affected.\n\nWhat it is: CVE-2026-21895 is a low-severity denial of service vulnerability in RustCrypto RSA, published on 8 Jan 2026. 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-2026-21895 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rsa (crates.io): affected all versions; fixed in 0.9.10\n- rsa (crates.io): affected all versions; fixed in 0.9.10\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-2026-21895/ (Markdown: https://insights.sbomify.com/CVE-2026-21895/index.md)","id":"CVE-2026-21895","markdown":"https://insights.sbomify.com/CVE-2026-21895/index.md","name":"CVE-2026-21895","record":{"aliases":["DEBIAN-CVE-2026-21895","GHSA-9c48-w39g-hm26","MINI-6hrw-2hmh-mc9r","MINI-xhmg-5q96-8j6v","UBUNTU-CVE-2026-21895","openSUSE-SU-2026:10105-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust RSA library","requires_auth":"none","summary":"An attacker can cause a denial of service by providing a prime value of 1 during RSA private key construction, triggering a panic.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"rsa","vendor":"rustcrypto"}],"cvss":{"score":2.7,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U","version":"4.0"},"cwes":[{"id":"CWE-703","name":"Improper Check or Handling of Exceptional Conditions"}],"description":"The `rsa` crate is an RSA implementation written in rust. Prior to version 0.9.10, when creating a RSA private key from its components, the construction panics instead of returning an error when one of the primes is `1`. Version 0.9.10 fixes the issue.","ecosystems":["crates.io","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"rsa crate has potential panic on a prime being equal to 1","id":"CVE-2026-21895","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Kirby is missing permission checks in the content changes API","id":"CVE-2026-21896"},"packages":[{"ecosystem":"crates.io","fixed":["0.9.10"],"introduced":["0"],"last_affected":[],"package":"rsa","purl":null,"source":"GHSA-9c48-w39g-hm26"},{"ecosystem":"crates.io","fixed":["0.9.10"],"introduced":["0"],"last_affected":[],"package":"rsa","purl":"pkg:cargo/rsa","source":"GHSA-9c48-w39g-hm26"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["17.7.14-1.1"],"introduced":["0"],"last_affected":[],"package":"teleport","purl":"pkg:rpm/opensuse/teleport\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10105-1"}],"prev":{"headline":"n8n's Missing Stripe-Signature Verification Allows Unauthenticated Forged Webhooks","id":"CVE-2026-21894"},"products":["RSA"],"published":"2026-01-08","related":[{"cvss_score":5.9,"headline":"RustCrypto/RSA vulnerable to a Marvin Attack via key recovery through timing sidechannels","id":"CVE-2023-49092","kev_date_added":null,"published":"2023-11-28"}],"sources":[{"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":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-01-08","vendors":["RustCrypto"]},"summary":"An attacker can cause a denial of service by providing a prime value of 1 during RSA private key construction, triggering a panic.","url":"https://insights.sbomify.com/CVE-2026-21895/"}