Advisory

GHSA-c38w-74pg-36hr

Also known as: CVE-2023-49092, GHSA-4grx-2x9w-596c, RUSTSEC-2023-0071

Summary

Marvin Attack: potential key recovery through timing sidechannels

Details

Impact
Due to a non-constant-time implementation, information about the private key is leaked through timing information which is observable over the network. An attacker may be able to use that information to recover the key.

Patches
No patch is yet available, however work is underway to migrate to a fully constant-time implementation.

Workarounds
The only currently available workaround is to avoid using the rsa crate in settings where attackers are able to observe timing information, e.g. local use on a non-compromised computer is fine.

References
This vulnerability was discovered as part of the "Marvin Attack", which revealed several implementations of RSA including OpenSSL had not properly mitigated timing sidechannel attacks.

  • https://rustsec.org/advisories/RUSTSEC-2023-0071.html
  • https://people.redhat.com/~hkario/marvin/
  • https://github.com/RustCrypto/RSA/issues/19

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-11-28 23:28 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

rsa

crates.io · All systems

Affected

  • introduced 0, last affected 0.9.6 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences