GitHub Advisoryadvisory · crates.io
GHSA-c38w-74pg-36hr Marvin Attack: potential key recovery through timing sidechannels
MEDIUM
Official page ↗
- Aliases
- CVE-2023-49092
- Ecosystem
- crates.io
- Packages
- rsa
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-203, CWE-385
- Reviewed
- 2023-11-28
Affected packages
• crates.io rsa: <= 0.9.6 (no fix yet)
Description
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
Related
Alias · CVE (1)
- CVE-2023-49092 RustCrypto/RSA is a portable RSA implementation in pure Rust. vulnerability
References
- https://github.com/RustCrypto/RSA/security/advisories/GHSA-c38w-74pg-36hr web
- https://nvd.nist.gov/vuln/detail/CVE-2023-49092 advisory
- https://github.com/RustCrypto/RSA/issues/19#issuecomment-1822995643 web
- https://github.com/RustCrypto/RSA/issues/626 web
- https://github.com/RustCrypto/RSA package
- https://rustsec.org/advisories/RUSTSEC-2023-0071.html web