CVE-2026-21895

NameCVE-2026-21895
DescriptionThe `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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
rust-rsa (PTS)trixie0.9.7-1vulnerable
forky, sid0.9.10-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
rust-rsasource(unstable)0.9.10-1

Notes

https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26
Fixed by: https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7 (v0.9.10)

Search for package or bug name: Reporting problems