rsa crate has potential panic on a prime being equal to 1
Priority LOW 20CWE-703Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 7 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00444 38th percentileScored 2026-11-07
Fix Partial RSA (RustCrypto): 0.9.10rsa (crates.io): 0.9.10Red Hat: 7 without a fix
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| RustCrypto | RSA | before 0.9.10 | 0.9.10 | Patch available | CNA |
| — | rsa (crates.io) | before 0.9.10 | 0.9.10 | Patch available | GHSA-9c48-w39g-hm26 |
- RSA VendorRustCrypto Affected before 0.9.10 Fixed in 0.9.10 Patch available CNA
- rsa (crates.io) Vendor— Affected before 0.9.10 Fixed in 0.9.10 Patch available GHSA-9c48-w39g-hm26
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:rustcrypto:rsa:*:*:*:*:*:rust:*:* | before 0.9.10 | Vulnerable | RustCrypto |
- cpe:2.3:a:rustcrypto:rsa:*:*:*:*:*:rust:*:* Versions before 0.9.10 Vulnerable ·RustCrypto
Remediation
- Fix · CNA RSA (RustCrypto) Fixed in 0.9.10
- Fix · GHSA-9c48-w39g-hm26 rsa (crates.io) Fixed in 0.9.10 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Confidential Compute Attestation | Affected | No fix yet: Fix deferred |
| Logging Subsystem for Red Hat OpenShift | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Update Service | Affected | No fix yet: Fix deferred |
| Red Hat Trusted Profile Analyzer | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-21895
- 2026-10-03 Alias added: GHSA-9c48-w39g-hm26
References
More RustCrypto Rsa vulnerabilities
- TI-2023-26757 RustCrypto/RSA vulnerable to a Marvin Attack via key recovery through timing sidechannels CVSS 3.1MEDIUM 5.9
Sources
- CVE-2026-21895 · CVE Program
- CVE-2026-21895 · NVD
- FIRST EPSS
- GHSA-9c48-w39g-hm26 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-21895 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences