{"cve":"CVE-2026-21895","nvd":{"published":"2026-01-08T14:15:57.720","modified":"2026-06-17T10:19:06.440","status":"Analyzed","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.","cvss_v4":{"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","score":2.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3},"cwes":["CWE-703"],"references":["https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7","https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26"],"products":["rustcrypto:rsa"],"source":"nvd","synced_at":"2026-10-19T22:19:41.481987139+00:00"},"epss":{"cve":"CVE-2026-21895","score":0.00444,"percentile":0.38607,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-9c48-w39g-hm26","url":"https://osv.dev/vulnerability/GHSA-9c48-w39g-hm26","summary":"rsa crate has potential panic on a prime being equal to 1","modified":"2026-09-10T03:50:32.802096391Z","packages":[{"ecosystem":"crates.io","name":"rsa","purl":"pkg:cargo/rsa","ranges":["<0.9.10"],"fixed":["0.9.10"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}