{"id":"UBUNTU-CVE-2026-21895","details":"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.","modified":"2026-03-17T07:59:17.549292Z","published":"2026-01-08T14:15:00Z","upstream":["CVE-2026-21895"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-21895"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-21895"},{"type":"REPORT","url":"https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26"},{"type":"REPORT","url":"https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7"}],"affected":[{"package":{"name":"rust-rsa","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/rust-rsa@0.9.2-2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rsa-dev","binary_version":"0.9.2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-21895.json"}},{"package":{"name":"rust-rsa","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/rust-rsa@0.9.7-1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rsa-dev","binary_version":"0.9.7-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-21895.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"Ubuntu","score":"medium"}]}