{"id":"CVE-2026-21895","summary":"rsa crate has potential panic on a prime being equal to 1","details":"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.","aliases":["GHSA-9c48-w39g-hm26"],"modified":"2026-04-10T05:38:37.435781Z","published":"2026-01-08T14:06:29.288Z","related":["CGA-84cw-5hh5-7pxr","openSUSE-SU-2026:10105-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21895.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-703"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21895.json"},{"type":"ADVISORY","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":"FIX","url":"https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rustcrypto/rsa","events":[{"introduced":"0"},{"fixed":"da2af9a0ff814762957c428460e4098720f394a6"}]}],"versions":["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.2.0","v0.3.0","v0.4.0","v0.4.1","v0.5.0","v0.6.0","v0.6.0-pre","v0.7.0","v0.7.0-pre","v0.7.0-rc.0","v0.7.0-rc.1","v0.7.1","v0.7.2","v0.8.0","v0.8.0-pre.0","v0.8.0-rc.0","v0.8.1","v0.8.2","v0.9.0","v0.9.0-pre.0","v0.9.0-pre.1","v0.9.0-pre.2","v0.9.0-rc.0","v0.9.1","v0.9.2","v0.9.3","v0.9.4","v0.9.5","v0.9.6","v0.9.7","v0.9.8","v0.9.9"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21895.json"}}],"schema_version":"1.7.5","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"}]}