Improper Check or Handling of Exceptional Conditions Affecting rust-rsa package, versions <0.9.10-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-RUSTRSA-14907967
  • published9 Jan 2026
  • disclosed8 Jan 2026

Introduced: 8 Jan 2026

CVE-2026-21895  (opens in a new tab)
CWE-703  (opens in a new tab)

How to fix?

Upgrade Debian:unstable rust-rsa to version 0.9.10-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rust-rsa package and not the rust-rsa package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1