CVE-2026-21895
LOW 2.7CVSS 4.0rsa crate has potential panic on a prime being equal to 1
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
- 8 Jan 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-703
- Also known as
- GHSA-9c48-w39g-hm26
- Sources
- NVDJSONOSV GHSA-9c48-w39g-hm26JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.7 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rustcrypto | rsacpe:2.3:a:rustcrypto:rsa:*:*:*:*:*:rust:*:* |
< 0.9.10 | 0.9.10 |
| OSV | crates.io | rsa | < 0.9.10 | 0.9.10 |
References
- https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7 · Patch, WEB
- https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-21895 · ADVISORY
- https://github.com/RustCrypto/RSA · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 8 Jan 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2026)