Vulnerabilities

CVE-2026-21895

Medium 5.3 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2026-01-08
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.4 % higher than 33 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
rsa (crates.io) < 0.9.10 Affected
Rustcrypto Rsa < 0.9.10 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities