CVE-2026-21895
rsa crate has potential panic on a prime being equal to 1
- State
- Published
- Severity
- 2.7 Low
- Published
- Jan 8, 2026
- Updated
- Jan 8, 2026
- Reserved
- Jan 5, 2026
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 2.7 Low | 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 | GitHub_M |
Weaknesses
- CWE-703 Improper Check or Handling of Exceptional Conditions
Affected Products
| Product | Versions |
|---|---|
RSARustCrypto |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.