{"id":"CVE-2026-21895","aliases":["GHSA-9c48-w39g-hm26"],"url":"https://o3.security/vulnerability/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.","published":"2026-01-08T14:06:29.288Z","modified":"2026-08-12T03:51:48.386831061Z","cvss":null,"epss":{"score":0.0045,"percentile":0.38344,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"rsa","fixedVersion":"0.9.10"}],"fix":{"url":"https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7","label":"RustCrypto/RSA@2926c91"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:48.386831061Z"}}