{"id":"CVE-2026-21895","state":"PUBLISHED","title":"rsa crate has potential panic on a prime being equal to 1","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.","publishedAt":"2026-01-08T14:06:29.288Z","updatedAt":"2026-01-08T15:55:13.043Z","severity":{"score":2.7,"label":"Low","version":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["RustCrypto RSA"],"affected":[{"vendor":"RustCrypto","product":"RSA","versions":[{"version":"< 0.9.10","status":"affected"}]}],"references":["https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26","https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7"],"weaknesses":["CWE-703"],"ingestedAt":"2026-10-29T20:11:10.572Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/21xxx/CVE-2026-21895.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-21895","state":"PUBLISHED","datePublished":"2026-01-08T14:06:29.288Z","dateUpdated":"2026-01-08T15:55:13.043Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-01-05T17:24:36.929Z"},"containers":{"cna":{"title":"rsa crate has potential panic on a prime being equal to 1","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"RustCrypto","product":"RSA","versions":[{"version":"< 0.9.10","status":"affected"}]}],"references":[{"url":"https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26","name":"https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7","name":"https://github.com/RustCrypto/RSA/commit/2926c91bef7cb14a7ccd42220a698cf4b1b692f7","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":2.7,"baseSeverity":"LOW","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-703","lang":"en","description":"CWE-703: Improper Check or Handling of Exceptional Conditions","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-01-08T14:06:29.288Z"},"source":{"advisory":"GHSA-9c48-w39g-hm26","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-01-08T14:52:10.453165Z","id":"CVE-2026-21895","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-08T15:55:13.043Z"}}]}}}