Medium severity5.3OSV Advisory· Published Jan 8, 2026· Updated Jun 17, 2026
CVE-2026-21895
CVE-2026-21895
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
rsacrates.io | < 0.9.10 | 0.9.10 |
Affected products
220.1.0, 0.1.1, 0.1.2, …+ 1 more
- (no CPE)range: 0.1.0, 0.1.1, 0.1.2, …
- cpe:2.3:a:rustcrypto:rsa:*:*:*:*:*:rust:*:*range: <0.9.10
- osv-coords20 versionspkg:apk/chainguard/atuinpkg:apk/chainguard/denopkg:apk/chainguard/lycheepkg:apk/chainguard/qdrantpkg:apk/chainguard/sccachepkg:apk/chainguard/sqlxpkg:apk/chainguard/vectorpkg:apk/chainguard/yara-xpkg:apk/chainguard/zedpkg:apk/wolfi/atuinpkg:apk/wolfi/denopkg:apk/wolfi/lycheepkg:apk/wolfi/qdrantpkg:apk/wolfi/sccachepkg:apk/wolfi/sqlxpkg:apk/wolfi/vectorpkg:apk/wolfi/yara-xpkg:apk/wolfi/zedpkg:cargo/rsapkg:rpm/opensuse/teleport&distro=openSUSE%20Tumbleweed
< 18.10.0-r1+ 19 more
- (no CPE)range: < 18.10.0-r1
- (no CPE)range: < 2.6.4-r1
- (no CPE)range: < 0.22.0-r1
- (no CPE)range: < 1.16.3-r1
- (no CPE)range: < 0.12.0-r1
- (no CPE)range: < 0.8.6-r2
- (no CPE)range: < 0.55.0-r0
- (no CPE)range: < 1.10.0-r1
- (no CPE)range: < 0.218.6-r0
- (no CPE)range: < 18.10.0-r1
- (no CPE)range: < 2.6.4-r1
- (no CPE)range: < 0.22.0-r1
- (no CPE)range: < 1.16.3-r1
- (no CPE)range: < 0.12.0-r1
- (no CPE)range: < 0.8.6-r2
- (no CPE)range: < 0.55.0-r0
- (no CPE)range: < 1.10.0-r1
- (no CPE)range: < 0.218.6-r0
- (no CPE)range: < 0.9.10
- (no CPE)range: < 17.7.14-1.1
Patches
Vulnerability mechanics
References
4- github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7nvdPatchWEB
- github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26nvdVendor AdvisoryWEB
- github.com/advisories/GHSA-9c48-w39g-hm26ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-21895ghsaADVISORY
News mentions
0No linked articles in our index yet.