{"vuln_id":"GHSA-3hj7-mch7-c7cc","aliases":[],"description":"Panics during RSA private-key construction, validation, or re-encoding","published_at":"2026-11-19T12:00:00Z","modified_at":"2026-11-20T13:00:02.895297Z","first_seen_at":"2026-11-21T19:15:56.735935Z","severity":"medium","severity_source":"cvss","cvss_score":5.3,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","cwe":[],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-3hj7-mch7-c7cc"},"matched_alias":null,"items":[{"id":11011,"source":{"id":"osv","name":"OSV.dev"},"title":"RUSTSEC-2026-0583: Panics during RSA private-key construction, validation, or re-encoding","summary":"Panics during RSA private-key construction, validation, or re-encoding\n\n`RsaPrivateKey` private-key construction, validation, and serialization can panic across three\nclasses of inputs, as well as when re-encoding certain valid keys:\n\n- `RsaPrivateKey::from_components` and PKCS#1 or PKCS#8 private-key decoding (DER or PEM) can panic\n  during validation when a supplied factor equals 1, because `RsaPrivateKey::validate()` let a\n  factor of 1 reach a later check that panicked.\n- `RsaPrivateKey::from_primes` and `RsaPrivateKey::from_p_q` can panic during construction when a\n  supplied factor is 0, 1, or even.\n- Prime recovery in `RsaPrivateKey::from_components` can panic when the private exponent is 0.\n- For a key, including a valid one, whose first prime occupies more limbs than the second,\n  `crt_coefficient`, `to_pkcs1_der`, `to_pkcs8_der`, and `serde` serialization can panic.\n\nAn application that imports untrusted private keys or factors, or re-encodes such keys, can lose a\nworker, or the whole process when built with `panic = \"abort\"`. Public-key parsing is not affected.\n\nFixed in 0.10.4, which rejects factors below 2, even factors, repeated factors, and a zero private\nexponent during prime recovery, and computes the CRT coefficient and re-encodes valid two-prime\nkeys when the first prime occupies more limbs than the second.\n\nIf you cannot upgrade to 0.10.4, isolate the entire import, construction, CRT calculation, or\nserialization in a separate process and treat an abnormal exit as an operation failure, or use\n`catch_unwind` around the entire operation when panics unwind.\n\nAffected: crates.io:sad-rsa\n\nFixed in: 0.10.4\n\nReferences:\nhttps://crates.io/crates/sad-rsa\nhttps://rustsec.org/advisories/RUSTSEC-2026-0583.html\nhttps://github.com/sadco-io/sad-rsa/releases/tag/v0.10.4","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0583","published_at":"2026-11-19T12:00:00Z","updated_at":"2026-11-20T13:00:02.895297Z","fetched_at":"2026-11-21T19:15:55.946368Z","severity":"medium","cvss_score":5.3,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"sad-rsa","vuln_id":"GHSA-3hj7-mch7-c7cc","vuln_ids":["GHSA-3HJ7-MCH7-C7CC","RUSTSEC-2026-0583"],"tags":["osv","crates.io","fix-available"],"cluster_id":10763,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11011","html":"https://vulnwatch.ve1ve2.com/item/11011"}}]}