p PatchFirst

CVE-2026-21895

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

CVSS 2.7 · Low · EPSS 0.4% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • rsaNo fix published
  • rust-rsa Debian 13No fix published
  • rust-rsa Debian 14Update to 0.9.10-1
  • rust-rsa Ubuntu 24.04 LTSNo fix published
  • and 1 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="rust-rsa"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • rsa

    Versions
    • < 0.9.10: Affected

    No fix published

  • rust-rsa Debian 13

    Versions
    • 0.9.10-1
    • 0.9.7-1
    • 0.9.9-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-rsa Debian 14

    Versions
    • 0.9.7-1
    • 0.9.9-1
    Affected ranges
    • ECOSYSTEM: < 0.9.10-1

    Update to 0.9.10-1

  • rust-rsa Ubuntu 24.04 LTS

    Versions
    • 0.9.2-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-rsa Ubuntu 25.10

    Versions
    • 0.9.7-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →