CVE-2026-21895 json
rsa crate has potential panic on a prime being equal to 1
published 2026-01-06 10 mo ago modified 2026-09-10 1 mo ago also EUVD-2026-1033 , GHSA-9c48-w39g-hm26
- cvss
- 5.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- public exploits
- 0
- none known
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.
Patch / fix
- crates.io rsa 0.9.10
- rustcrypto rsa 0.9.10
- rust-rsa Debian 14 0.9.10-1
debian advisories DEBIAN-CVE-2026-21895
- teleport openSUSE Tumbleweed 17.7.14-1.1
opensuse advisories openSUSE-SU-2026:10105-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-21895 updated cvss 5.5
RSA: RSA crate: Denial of Service due to malformed prime in private key generation
-
Red Hat Confidential Compute Attestation build-of-trustee/trustee-rhel9, openshift-sandboxed-containers/osc-monitor-rhel9, openshift-sandboxed-containers/osc-rhel9-operator, openshift-sandboxed-containers/osc-operator-bundle, openshift-sandboxed-containers/osc-podvm-builder-rhel9, openshift-sandboxed-containers/osc-podvm-payload-rhel9, +1 more Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/vector-rhel9, openshift-logging/fluentd-rhel9, openshift-logging/eventrouter-rhel9, openshift-logging/logging-view-plugin-rhel9, openshift-logging/cluster-logging-rhel9-operator, openshift-logging/log-file-metric-exporter-rhel9, +1 more Red Hat Enterprise Linux 9 trustee-guest-components Red Hat Enterprise Linux 10 rust-sequoia-sq, rust-sequoia-sqv, virt-firmware-rs, trustee-guest-components Red Hat OpenShift Container Platform 4 kata-containers, openshift4/recert-rhel9 Red Hat OpenShift Update Service openshift-update-service/openshift-update-service-rhel8affected: workaround, no fix available “Fix deferred”
+1 more productsfewer
Red Hat Trusted Profile Analyzer rhtpa/rhtpa-trustification-service-rhel9
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 10 mo ago
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CNA | 4.0 | 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 |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | rsa | <0.9.10 |
0.9.10 |
Affected products
- RustCrypto RSA
Classification
- Weakness
-
- CWE-703 Improper Check or Handling of Exceptional Conditions
References
-
github.com
/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7
web, patch
-
github.com
/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26
web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-21895
advisory
-
github.com
/RustCrypto/RSA
package
Sources
- CVE List CVE-2026-21895
- GitHub Advisory GHSA-9c48-w39g-hm26
- NVD CVE-2026-21895
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.