GHSA-c38w-74pg-36hr

Suggest an improvement
Source
https://github.com/advisories/GHSA-c38w-74pg-36hr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-c38w-74pg-36hr/GHSA-c38w-74pg-36hr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c38w-74pg-36hr
Aliases
Published
2023-11-28T23:28:27Z
Modified
2023-12-15T15:11:24.159127Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
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
Database specific
{
    "nvd_published_at": "2023-11-28T21:15:08Z",
    "cwe_ids": [
        "CWE-203",
        "CWE-385"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-11-28T23:28:27Z"
}
References

Affected packages

crates.io / rsa

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.9.6