Has it been Pwned
ProtocolPractical impact

Marvin: timing-based Bleichenbacher oracles in most RSA libraries

Hubert Kario (Red Hat) showed that small timing differences in PKCS#1 v1.5 decryption, often in bignum-to-bytes conversion or error handling rather than in the padding check itself, still leaked enough to mount Bleichenbacher's attack against many libraries, including OpenSSL (CVE-2022-4304), GnuTLS, NSS, pyca/cryptography (CVE-2023-50782), M2Crypto, Node.js and Java. Presented at ESORICS 2023 as 'Everlasting ROBOT'.

A separate source-review date has not been recorded for this historical entry. Corrections.

Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.

Background

Marvin is the 25-year-old padding oracle again, this time through a timing side channel measured with careful statistics. Classified as protocol because the root cause is the PKCS#1 v1.5 encryption design, which is very hard to implement in constant time across a whole stack; the leak channel is timing. Kario's recommendation is to stop using PKCS#1 v1.5 encryption altogether. Where it must remain, implementations have moved to 'implicit rejection' (returning a deterministic pseudo-random plaintext on failure), which only helps if the whole decryption path is constant-time and is tested for it.

Sources

  1. announcementThe Marvin AttackHubert Kario / Red Hat, people.redhat.com
  2. cveCVE-2023-50782 (pyca/cryptography)NIST NVD, nvd.nist.gov