Vulnerability in Rustcrypto Rsa
CVE-2026-21895
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 · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS: 0.004 (36.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 37th percentile — 36.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: +0.000
Affected products
- Rustcrypto Rsa — versions < 0.9.10
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-21895?
- CVE-2026-21895 is a medium-severity vulnerability in Rustcrypto Rsa, classified under CWE-703. CVSS score: 5.3/10. Published 2026-01-08.
- How severe is CVE-2026-21895?
- Medium severity. CVSS v3 base score is 5.3 out of 10.