{"id":"CVE-2026-21895","aliases":["CVE-2026-21895","GHSA-9c48-w39g-hm26"],"related":[],"kind":"vulnerability","state":"published","title":"rsa crate has potential panic on a prime being equal to 1","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"When creating a RSA private key from its components, the construction panics, instead of returning an error, when one of the primes is `1`. \n\nDiscovered by Christian Reitter from [Radically Open Security](https://www.radicallyopensecurity.com/) during a security review for [Proton AG](https://proton.me/).","format":"markdown","source":"ghsa"},{"lang":"es","text":"La caja 'rsa' es una implementación RSA escrita en Rust. Antes de la versión 0.9.10, al crear una clave privada RSA a partir de sus componentes, la construcción entra en pánico en lugar de devolver un error cuando uno de los números primos es '1'. La versión 0.9.10 soluciona el problema.","source":"nvd"}],"published":"2026-01-06T18:14:08.000Z","modified":"2026-09-10T03:50:32.802Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":2.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":2.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-703"],"affected":[{"ranges":[{"version":"< 0.9.10","status":"affected"}],"vendor":"RustCrypto","product":"RSA","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.10"}],"ecosystem":"crates.io","package":"rsa","purl":"pkg:cargo/rsa","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.9.10"}],"vendor":"rustcrypto","product":"rsa","cpe":"cpe:2.3:a:rustcrypto:rsa:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21895","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/RustCrypto/RSA","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-01-08T14:52:10.453Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-21895","url":"https://www.cve.org/CVERecord?id=CVE-2026-21895","licence":"CVE Terms of Use","modified":"2026-01-08T15:55:13.043Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9c48-w39g-hm26","url":"https://github.com/advisories/GHSA-9c48-w39g-hm26","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:32.802Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-21895","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21895","licence":"Public domain","modified":"2026-06-17T10:19:06.440Z"}],"updatedAt":"2026-11-25T22:59:12.666Z","epss":{"score":0.0044,"percentile":0.39994,"date":"2026-12-01T12:00:22.000Z"}}