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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21895.json",
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-703"
]
}{
"cpe": "cpe:2.3:a:rustcrypto:rsa:*:*:*:*:*:rust:*:*",
"source": [
"CPE_RANGE",
"REFERENCES"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "0.9.10"
}
]
}