rsa crate has potential panic on a prime being equal to 1
cve-program · CVE-2026-21895
PublishedThe `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.
Read the publisher's advisoryeuvd · EUVD-2026-1033
PublishedThe `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.
Read the publisher's advisorynvd · CVE-2026-21895
PublishedThe `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.
Read the publisher's advisoryosv · GHSA-9c48-w39g-hm26
PublishedWhen creating a RSA private key from its components, the construction panics, instead of returning an error, when one of the primes is `1`. Discovered by Christian Reitter from [Radically Open Security](https://www.radicallyopensecurity.com/) during a security review for [Proton AG](https://proton.me/).
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-21895 · CVE overview and exploitation status
cve-program · CVE-2026-21895
- https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26
- https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7
euvd · EUVD-2026-1033
- https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26
- https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7
nvd · CVE-2026-21895
- https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7
- https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26
osv · GHSA-9c48-w39g-hm26
Related changes
Linked by CVE identifierNo related changes are available here.