CVE-2026-21895

rsa crate has potential panic on a prime being equal to 1

State
Published
Severity
2.7 Low
Published
Jan 8, 2026
Updated
Jan 8, 2026
Reserved
Jan 5, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.02.7 LowCVSS: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:UGitHub_M

Weaknesses

  • CWE-703 Improper Check or Handling of Exceptional Conditions

Affected Products

ProductVersions
RSARustCrypto
  • < 0.9.10Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.