Red Hat VEX
RHVEX-CVE-2026-21895
RSA: RSA crate: Denial of Service due to malformed prime in private key generation
Details
A flaw was found in the RSA crate, an RSA implementation in Rust. When an application attempts to create an RSA private key from its components, a remote attacker could provide a malformed prime value of '1'. This invalid input causes the application to panic, leading to a Denial of Service (DoS).
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | rust-sequoia-sq | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | rust-sequoia-sqv | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | sequoia-sq | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | sequoia-sqv | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | trustee-guest-components | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | virt-firmware-rs | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | trustee-guest-components | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2026-21895
- https://bugzilla.redhat.com/show_bug.cgi?id=2427935
- https://www.cve.org/CVERecord?id=CVE-2026-21895
- https://nvd.nist.gov/vuln/detail/CVE-2026-21895
- https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7
- https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26