CVE-2026-21895

Source
https://nvd.nist.gov/vuln/detail/CVE-2026-21895
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21895.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-21895
Aliases
Downstream
Related
Published
2026-01-08T14:06:29.288Z
Modified
2026-01-13T20:01:03.784337Z
Severity
  • 2.7 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
rsa crate has potential panic on a prime being equal to 1
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-703"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21895.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/rustcrypto/rsa

Affected ranges

Type
GIT
Repo
https://github.com/rustcrypto/rsa
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.1.0
0.1.1
0.1.2
0.1.3
0.1.4
0.2.0

v0.*

v0.3.0
v0.4.0
v0.4.1
v0.5.0
v0.6.0
v0.6.0-pre
v0.7.0
v0.7.0-pre
v0.7.0-rc.0
v0.7.0-rc.1
v0.7.1
v0.7.2
v0.8.0
v0.8.0-pre.0
v0.8.0-rc.0
v0.8.1
v0.8.2
v0.9.0
v0.9.0-pre.0
v0.9.0-pre.1
v0.9.0-pre.2
v0.9.0-rc.0
v0.9.1
v0.9.2
v0.9.3
v0.9.4
v0.9.5
v0.9.6
v0.9.7
v0.9.8
v0.9.9

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21895.json"