GHSA-3hj7-mch7-c7cc: Panics during RSA private-key construction, validation, or re-encoding
Published 2026-11-19 · Updated 2026-11-20 · Also known as RUSTSEC-2026-0583
Summary
The sad-rsa crate suffers from multiple panic conditions during RSA private-key construction, validation, and serialization when handling malformed or specific valid inputs. Engineering and security teams using the `sad-rsa` crate should upgrade immediately.
Who is affected
Deployments that process untrusted private keys, factors, or handle key re-encoding are affected. An attacker supplying crafted inputs can trigger application denial of service by causing worker or process crashes when using `panic = "abort"`.
Exploitability
The vulnerability has a CVSS base score of 5.3 (Medium) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, indicating it can be exploited remotely over the network with low complexity and no privileges or user interaction required, affecting availability. EPSS is not yet available and CISA Known Exploited Vulnerabilities status is false.
Remediation
- Upgrade the sad-rsa package on crates.io to version 0.10.4 or later.
- If upgrading is not possible, isolate import, construction, CRT calculation, or serialization in a separate process or use `catch_unwind` where panics unwind.
How to check your project
- Check Cargo.toml and Cargo.lock files to verify if the sad-rsa crate is present within the range introduced 0.0.0-0 and fixed 0.10.4.
Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | sad-rsa |
>= 0.0.0-0, < 0.10.4 | 0.10.4 | cargo update -p sad-rsa --precise 0.10.4 |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | Low |
FAQ
What packages are affected by this vulnerability?
The crates.io package sad-rsa introduced in versions 0.0.0-0 up to version 0.10.4.
Is public-key parsing affected?
No, public-key parsing is not affected by this vulnerability.
What causes the panics during key processing?
Panics are triggered across classes of inputs where factors equal 0, 1, or are even, when the private exponent is 0, or when re-encoding keys where the first prime occupies more limbs than the second.
Original advisory description
References
- PACKAGE https://crates.io/crates/sad-rsa
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0583.html
- WEB https://github.com/sadco-io/sad-rsa/releases/tag/v0.10.4
Source records: RUSTSEC-2026-0583 (OSV.dev).