CVE-2026-21895
RSA: RSA crate: Denial of Service due to malformed prime in private key generation
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · January 8, 2026
Updated · June 28, 2026
Description
A flaw was found in the RSA crate, an RSA implementation in Rust. When an application attempts to create an RSA private key from its components, a remote attacker could provide a malformed prime value of '1'. This invalid input causes the application to panic, leading to a Denial of Service (DoS).
Statement
This vulnerability is rated Low for Red Hat products. The rsa crate, an RSA implementation in Rust, can panic when creating an RSA private key if one of the provided prime numbers is 1. This scenario requires specific, invalid input during key generation and does not affect standard RSA operations or key usage.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-703 · Improper Check or Handling of Exceptional Conditions