CVE 2.7 LOW

rsa crate has potential panic on a prime being equal to 1_CVE-2026-21895

2.7 / 10
LOW
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

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.

Basic Information

ID CVE-2026-21895
Source GitHub_M
Published Jan 8, 2026 at 14:06
Modified Jan 8, 2026 at 15:55

Affected Product

Vendor RustCrypto
Product RSA
Version < 0.9.10
Affected Versions RustCrypto RSA < 0.9.10

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.