NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Rust (crates.io)

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

lowCVSS 4.0 2.7GHSA-9c48-w39g-hm26

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.

Published Jan 6, 2026 · Updated Jan 8, 2026

Affected packages

rsa

Ecosystem
Rust (crates.io)
Affected
<= 0.9.9
Fixed in
0.9.10
Check
cargo tree -i rsa

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to invd.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology