Skip to main content
← All vulnerabilities
CVE-2026-21895GHSA-9C48-W39G-HM26

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.9.10
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • RustCrypto RSA

    fixed in 0.9.10

  • rsacrates.io

    fixed in 0.9.10

References 2

GitHub · RustCrypto/RSA