GHSA-9c48-w39g-hm26

Suggest an improvement
Source
https://github.com/advisories/GHSA-9c48-w39g-hm26
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-9c48-w39g-hm26/GHSA-9c48-w39g-hm26.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-9c48-w39g-hm26
Aliases
Downstream
Related
Published
2026-01-06T18:14:08Z
Modified
2026-01-08T21:34:28.922295Z
Severity
  • 2.7 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
rsa crate has potential panic on a prime being equal to 1
Details

When creating a RSA private key from its components, the construction panics, instead of returning an error, when one of the primes is 1.

Discovered by Christian Reitter from Radically Open Security during a security review for Proton AG.

Database specific
{
    "github_reviewed_at": "2026-01-06T18:14:08Z",
    "severity": "LOW",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-703"
    ],
    "nvd_published_at": "2026-01-08T14:15:57Z"
}
References

Affected packages

crates.io / rsa

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.9.10

Database specific

last_known_affected_version_range

"<= 0.9.9"

source

"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-9c48-w39g-hm26/GHSA-9c48-w39g-hm26.json"