CVE-2026-21895

Medium

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductRustcrypto Rsa
PublishedJan 8, 2026
First seenJan 8, 2026
Weakness typeCWE-703CWE-703

How to fix

Update
  • rustcrypto rsa0.9.10 or later

Affected products

ProductAffected versionsFixed in
rustcrypto rsav < 0.9.100.9.10

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.