CVE-2026-21895 LOW

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

Vendor Rustcrypto
Product RSA
Weakness CWE-703
Published January 8, 2026
Last update January 8, 2026

CVSS base score

2.7/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality
Integrity

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

January 8, 2026 CVE published
January 8, 2026 Record updated