CVE-2026-21895: rsa crate has potential panic on a prime being equal to 1
Vulnerability summary
CVE-2026-21895 is a medium (CVSS 5.3) vulnerability in rustcrypto rsa. EPSS estimates a 0.44% chance of exploitation in the next 30 days, higher than 39.9% of scored vulnerabilities.
Not severe (CVSS 2.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 08-01-2026PublishedVulnerability first disclosed.
- 08-01-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
9 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.9MediumCVSS: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:UDiffers
- OSV · WolfiEcosystem advisory · calculated6.9MediumCVSS: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:UDiffers
- OSV · ChainguardEcosystem advisory · calculated6.9MediumCVSS: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:UDiffers
- OSV · Crates.ioEcosystem advisory · calculated6.9MediumCVSS: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:UDiffers
- NVDNIST2.7LowCVSS: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 · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.44%
Chance of exploitation in the next 30 days
Percentile
40%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.44% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard10 products
- atuin< 18.10.0-r1
- deno< 2.6.4-r1
- lychee< 0.22.0-r1
- qdrant< 1.16.3-r1
- sccache< 0.12.0-r1
Wolfi10 products
- atuin< 18.10.0-r1
- deno< 2.6.4-r1
- lychee< 0.22.0-r1
- qdrant< 1.16.3-r1
- sccache< 0.12.0-r1
Crates.Io1 product
- rsa< 0.9.10
Debian1 product
- rust-rsaAll versions (No fix recorded) | < 0.9.10-1
Opensuse1 product
- teleport&distro=openSUSE Tumbleweed< 17.7.14-1.1
Rustcrypto1 product
- rsa< 0.9.10
Ubuntu1 product
- rust-rsaAll versions (No fix recorded)
7 vendors · 25 products
References
9 links- github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26X Refsource CONFIRMREPORTAdvisoryWEBVendor Advisory
- github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7X Refsource MISCREPORTFIXWEBPatch
- github.com/RustCrypto/RSAPACKAGE