{"id":"GHSA-9c48-w39g-hm26","summary":"rsa crate has potential panic on a prime being equal to 1","details":"When creating a RSA private key from its components, the construction panics, instead of returning an error, when one of the primes is `1`. \n\nDiscovered by Christian Reitter from [Radically Open Security](https://www.radicallyopensecurity.com/) during a security review for [Proton AG](https://proton.me/).","aliases":["CVE-2026-21895"],"modified":"2026-09-10T03:50:32.802096391Z","published":"2026-01-06T18:14:08Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-01-06T18:14:08Z","nvd_published_at":"2026-01-08T14:15:57Z","cwe_ids":["CWE-703"],"severity":"LOW"},"references":[{"type":"WEB","url":"https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21895"},{"type":"WEB","url":"https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7"},{"type":"PACKAGE","url":"https://github.com/RustCrypto/RSA"}],"affected":[{"package":{"name":"rsa","ecosystem":"crates.io","purl":"pkg:cargo/rsa"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.9.10"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 0.9.9","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-9c48-w39g-hm26/GHSA-9c48-w39g-hm26.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}