Sad rsa: Panic
Affects sad-rsaSource GCVE Database
CVSS 5.3 Medium : upgrade to 0.10.6 when convenient.
Data as of 29 Nov 2026, 17:45 UTC
- Patch
- Available – fixed in 0.10.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LWhat to do
Upgrade sad-rsa to 0.10.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
crates.iosad-rsapkg:cargo/sad-rsaOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to version 0.10.6 or later, where the verification function returns an error instead of panicking on short encoded messages. If upgrading is not feasible, mitigate by rejecting public keys with modulus sizes below 1024 bits before verification, using fixed salt length verification instead of automatic detection, or wrapping verification calls in `catch_unwind` to handle panics gracefully.
Description
A vulnerability in the RSASSA-PSS signature verification process can cause a panic when the salt length is automatically detected and the public key is too small for the hash function. This affects verification methods that use automatic salt length detection and small RSA public keys. The issue does not affect fixed salt length verification or other RSA operations like PKCS#1 v1.5 signatures, encryption, or decryption. The panic occurs when the RSA modulus size is at most 8 times the hash output length plus 9 bits. An attacker can trigger this by supplying a small public key and a crafted signature. The vulnerability is fixed in version 0.10.6, which returns an error instead of panicking. If upgrading is not possible, mitigation includes rejecting small keys, using fixed salt length verification, or catching panics during verification.