Vulnerability · Published Jan 8, 2026 · Assigned by GitHub_M
CVE-2026-21895rsa crate has potential panic on a prime being equal to 1
Low 2.7
In plain English
A low-severity security flaw in RSA from RustCrypto. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 4.0)2.7Low
Exploit odds (30 days)0.4%top 61.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | rust-rsa | no fix listed | DEBIAN-CVE-2026-21895 |
| Debian:14 | rust-rsa | 0.9.10-1 | DEBIAN-CVE-2026-21895 |
| Ubuntu:24.04:LTS | rust-rsa | no fix listed | UBUNTU-CVE-2026-21895 |
| Ubuntu:25.10 | rust-rsa | no fix listed | UBUNTU-CVE-2026-21895 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| RustCrypto | RSA | < 0.9.10 |
Weakness: CWE-703 · 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