Advisory

GHSA-9c48-w39g-hm26

Also known as: CVE-2026-21895

Summary

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

Details

When creating a RSA private key from its components, the construction panics, instead of returning an error, when one of the primes is 1.

Discovered by Christian Reitter from Radically Open Security during a security review for Proton AG.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2026-01-06 18:14 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

rsa

crates.io · All systems

Affected

  • introduced 0, fixed 0.9.10 (semver)

Fixed versions

0.9.10

Fix

  • Fixed version 0.9.10
    cargo update -p rsa --precise 0.9.10

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences