GitHub Advisoryadvisory · crates.io
GHSA-9c48-w39g-hm26 rsa crate has potential panic on a prime being equal to 1
LOW
Official page ↗
- Aliases
- CVE-2026-21895
- Ecosystem
- crates.io
- Packages
- rsa
- Severity
- Low
- CVSS 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
- Weaknesses
- CWE-703
- Reviewed
- 2026-01-06
Affected packages
• crates.io rsa: < 0.9.10 → fixed in 0.9.10
Description
When 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 during a security review for Proton AG.
Related
Alias · CVE (1)
- CVE-2026-21895 The `rsa` crate is an RSA implementation written in rust. vulnerability
Weakness · CWE (1)
- CWE-703 Improper Check or Handling of Exceptional Conditions weakness