GHSA-pm66-mrhh-2gmp: Panic in RSASSA-PSS verification with automatic salt length on small public keys
Published 2026-11-28 · Updated 2026-11-29 · Also known as RUSTSEC-2026-0621
Summary
The sad-rsa crate contains a vulnerability where RSASSA-PSS signature verification panics if the public key is too small and automatic salt length is used. Developers using this library to verify signatures against untrusted public keys should update to the latest version immediately.
Who is affected
This flaw allows an attacker to cause a denial-of-service condition by triggering an application crash when verifying malicious signatures. It specifically impacts applications that perform PSS signature verification with automatic salt detection on public keys that do not enforce a minimum bit length. If an application is configured to use panic=abort, the entire process will terminate upon processing a crafted signature.
Exploitability
The vulnerability is exploitable remotely with low attack complexity and requires no special privileges or user interaction. While the impact on availability is limited, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade to sad-rsa version 0.10.6 or later.
- If an upgrade is not possible, enforce a minimum modulus size of 1024 bits for public keys before verification.
- Use a fixed salt length instead of automatic salt detection.
- Wrap verification logic in catch_unwind to prevent application crashes.
How to check your project
- Check Cargo.toml or Cargo.lock for the sad-rsa package to determine if a version prior to 0.10.6 is in use.
Automated analysis of the published advisory data, generated 2026-11-30. 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.6 | 0.10.6 | cargo update -p sad-rsa --precise 0.10.6 |
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
Does this vulnerability allow for arbitrary code execution?
No, the vulnerability is a panic, which leads to a denial-of-service condition, not code execution.
Are PKCS#1 v1.5 signatures affected?
No, the description explicitly states that PKCS#1 v1.5 signatures, as well as encryption and decryption, are not affected.
What is the specific trigger condition for the panic?
The panic occurs when the modulus is too small for the hash function (at most 8 * hLen + 9 bits) and the attacker provides a signature whose encoded message ends in the byte 0xBC.
Original advisory description
References
- PACKAGE https://crates.io/crates/sad-rsa
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0621.html
- WEB https://github.com/sadco-io/sad-rsa/pull/77
Source records: RUSTSEC-2026-0621 (OSV.dev).