Skip to content
OpenAdvisories
Medium · 5.9 CVE-2023-6935 EUVD-2023-59133GHSA-r36f-f47x-637q

Marvin Attack vulnerability in SP Math All RSA

Published Feb 9, 2024 · Updated Aug 2, 2024 · Assigned by wolfSSL

Description

wolfSSL SP Math All RSA implementation is vulnerable to the Marvin Attack, new variation of a timing Bleichenbacher style attack, when built with the following options to configure:

--enable-all CFLAGS="-DWOLFSSL_STATIC_RSA"

The define “WOLFSSL_STATIC_RSA” enables static RSA cipher suites, which is not recommended, and has been disabled by default since wolfSSL 3.6.6.  Therefore the default build since 3.6.6, even with "--enable-all", is not vulnerable to the Marvin Attack. The vulnerability is specific to static RSA cipher suites, and expected to be padding-independent.

The vulnerability allows an attacker to decrypt ciphertexts and forge signatures after probing with a large number of test observations. However the server’s private key is not exposed.

Affected products

VendorProductAffectedFixed
wolfSSL wolfSSL 3.12.2 – ≤ 5.6.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 wolfssl 5.6.6-1.2 —
Debian 12 wolfssl No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS wolfssl No fix yet —
Ubuntu 20.04 LTS wolfssl No fix yet —
Ubuntu 18.04 LTS wolfssl No fix yet —
Ubuntu 16.04 LTS wolfssl No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 wolfssl 5.6.6-r0 —
Alpine v3.23 wolfssl 5.6.6-r0 —
Alpine v3.22 wolfssl 5.6.6-r0 —
Alpine v3.21 wolfssl 5.6.6-r0 —
Alpine v3.20 wolfssl 5.6.6-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 wolfssl 5.6.6-r0 —

References