RustCrypto/RSA vulnerable to a Marvin Attack via key recovery through timing sidechannels
cve-program · CVE-2023-49092
PublishedRustCrypto/RSA is a portable RSA implementation in pure Rust. 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. There is currently no fix available. As a workaround, avoid using the RSA crate in settings where attackers are able to observe timing information, e.g. local use on a non-compromised computer.
Read the publisher's advisoryeuvd · EUVD-2023-2946
PublishedRustCrypto/RSA is a portable RSA implementation in pure Rust. 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. There is currently no fix available. As a workaround, avoid using the RSA crate in settings where attackers are able to observe timing information, e.g. local use on a non-compromised computer.
Read the publisher's advisorynvd · CVE-2023-49092
PublishedRustCrypto/RSA is a portable RSA implementation in pure Rust. 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. There is currently no fix available. As a workaround, avoid using the RSA crate in settings where attackers are able to observe timing information, e.g. local use on a non-compromised computer.
Read the publisher's advisoryosv · GHSA-4grx-2x9w-596c
PublishedThe [Marvin Attack] is a timing sidechannel vulnerability which allows performing RSA decryption and signing operations as an attacker with the ability to observe only the time of the decryption operation performed withthe private key. A recent survey of RSA implementations found that the Rust `rsa` crate is one of many implementations vulnerable to this attack. No fixed version is available at this time. [Marvin Attack]: https://people.redhat.com/~hkario/marvin/
Read the publisher's advisoryosv · GHSA-c38w-74pg-36hr
Published### 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
Read the publisher's advisoryosv · RUSTSEC-2023-0071
Published### 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 The `rsa` v0.10 series includes a migration to `crypto-bigint` and constant-time mitigations recommended in `draft-irtf-cfrg-rsa-guidance`. Upgrading to this release should resolve all known constant-time issues. ### 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. [Marvin Attack]: https://people.redhat.com/~hkario/marvin/
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2023-49092 · CVE overview and exploitation status
cve-program · CVE-2023-49092
- https://github.com/RustCrypto/RSA/security/advisories/GHSA-c38w-74pg-36hr
- https://github.com/RustCrypto/RSA/issues/19#issuecomment-1822995643
euvd · EUVD-2023-2946
- https://github.com/RustCrypto/RSA/security/advisories/GHSA-c38w-74pg-36hr
- https://github.com/RustCrypto/RSA/issues/19#issuecomment-1822995643
nvd · CVE-2023-49092
- https://github.com/RustCrypto/RSA/issues/19#issuecomment-1822995643
- https://github.com/RustCrypto/RSA/security/advisories/GHSA-c38w-74pg-36hr
osv · GHSA-4grx-2x9w-596c
- https://github.com/RustCrypto/RSA/security/advisories/GHSA-c38w-74pg-36hr
- https://github.com/RustCrypto/RSA/issues/19#issuecomment-1822995643
- https://github.com/RustCrypto/RSA/issues/626
- https://github.com/RustCrypto/RSA
- https://rustsec.org/advisories/RUSTSEC-2023-0071.html
osv · GHSA-c38w-74pg-36hr
- https://github.com/RustCrypto/RSA/security/advisories/GHSA-c38w-74pg-36hr
- https://nvd.nist.gov/vuln/detail/CVE-2023-49092
- https://github.com/RustCrypto/RSA/issues/19#issuecomment-1822995643
- https://github.com/RustCrypto/RSA/issues/626
- https://github.com/RustCrypto/RSA
- https://rustsec.org/advisories/RUSTSEC-2023-0071.html
osv · RUSTSEC-2023-0071
- https://crates.io/crates/rsa
- https://rustsec.org/advisories/RUSTSEC-2023-0071.html
- https://github.com/RustCrypto/RSA/issues/626
- https://github.com/RustCrypto/RSA/issues/19#issuecomment-1822995643
- https://people.redhat.com/~hkario/marvin/
- https://github.com/RustCrypto/RSA/pull/394
- https://github.com/RustCrypto/RSA/pull/680
- https://github.com/RustCrypto/RSA/pull/702
Related changes
Linked by CVE identifier- Marvin Attack: potential key recovery through timing sidechannels · Source adds a fixed version · 9 Nov 2026