MEDIUM · CVSS 3.1 5.9

GHSA-7p29-gw5p-v3h6: Timing side channel in RSA decryption: time depends on the leading zero bytes of the decrypted value

Published 2026-11-28 · Updated 2026-11-29 · Also known as RUSTSEC-2026-0622

Summary

The sad-rsa crate contains a timing side-channel vulnerability in RSA decryption where processing time varies based on the number of leading zero bytes in the decrypted value. Engineering teams using sad-rsa should update to version 0.10.6 to mitigate potential side-channel analysis risks.

Who is affected

This vulnerability affects users of the sad-rsa crate implementing RSA decryption, specifically OAEP and PKCS#1 v1.5 operations. An attacker who can perform high-repetition measurements of decryption times could potentially gain information about the decrypted value. This vulnerability persists even when blinding is enabled, as the flawed conversion process occurs post-unblinding.

Exploitability

The vulnerability carries a CVSS 3.1 score of 5.9, indicating medium severity due to high complexity and remote network access requirements. There is no known active exploitation, no CISA KEV listing, and EPSS data is not yet available.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-29. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone

FAQ

Is RSA signing or signature verification affected?

No, the vulnerability is strictly limited to RSA decryption operations.

Does enabling blinding mitigate this timing side-channel?

No, blinding does not help because the vulnerable conversion logic occurs after the result is unblinded.

Has this been exploited over a network?

No, the difference has not been demonstrated over a network and no exploit is known at this time.

Original advisory description
After the RSA private-key operation, decryption converted the result to bytes by skipping its leading zero bytes and copying the rest into a buffer of the modulus size. The number of bytes copied, and the offset they were copied to, depended on how many leading zero bytes the decrypted value had. That value is secret. This affects OAEP and PKCS#1 v1.5 decryption, with and without blinding. Blinding does not help, because the conversion happens after the result is unblinded. Signing and signature verification are not affected. Whether the decrypted value starts with zero bytes is the information that Manger's attack on OAEP and Bleichenbacher-style attacks on PKCS#1 v1.5, including the Marvin attack, are built on. The difference is measurable. With the Marvin toolkit at 200 million repetitions per class (RSA-2048, measured inside the decrypting process), 0.10.5 takes about 11 ns longer, on a 1.09 ms operation, to decrypt a ciphertext whose decrypted value starts with 208 zero bytes than any other class tested. No exploit is known, and the difference has not been demonstrated over a network. Classes with one leading zero byte and with none did not differ from each other in the same run. Fixed in 0.10.6, where the conversion always copies the same number of bytes from the same offset. There is no workaround in the library; limiting how many decryptions a peer can request with one key reduces the number of measurements an attacker can take.

References

Source records: RUSTSEC-2026-0622 (OSV.dev).