IntelligenceAdvisoriesAdvisory
GHSA-9c48-w39g-hm26
rsa crate has potential panic on a prime being equal to 1
In short
What to know.
- Package
- rsa crates.iobefore 0.9.10
- What to do
- Upgrade rsa to 0.9.10 or later.
- Source's rating
- LowNoumen has not assessed it.
- Noumen finding
- NMN-2026-0112Candidate. Severity low, confidence high.
3 December 2026
Source
- OSV record GHSA-9c48-w39g-hm26osv.devRetrieved 3 December 2026
Full record
- Identifier
- GHSA-9c48-w39g-hm26
- Aliases
- CVE-2026-21895
- Severity
- Low, as rated by the source. Noumen has not assessed it.
- CVSS
- 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
- Fixed versions
- 0.9.10
- Published
- 6 January 2026
- Modified
- 10 September 2026
- Source
- OSV record GHSA-9c48-w39g-hm26, retrieved 3 December 2026, 00:00 UTC
Affected packages and ranges
| Package | Affected versions | Fixed in |
|---|---|---|
| rsa crates.io | before 0.9.10 | 0.9.10 |
Affected means inside a published range, not that the code path is reachable in your project.
Details, as published by the source
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](https://www.radicallyopensecurity.com/) during a security review for [Proton AG](https://proton.me/).