Observable Discrepancy Affecting wolfssl/wolfssl package, versions [,5.6.6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-WOLFSSLWOLFSSL-6248175
  • published15 Feb 2024
  • disclosed9 Feb 2024
  • creditHubert Kario

Introduced: 9 Feb 2024

CVE-2023-6935  (opens in a new tab)
CWE-203  (opens in a new tab)

How to fix?

Upgrade wolfssl/wolfssl to version 5.6.6 or higher.

Overview

Affected versions of this package are vulnerable to Observable Discrepancy due to the implementation of the SP Math All RSA when built with specific configuration options. An attacker can decrypt ciphertexts and forge signatures after probing with a large number of test observations (Marvin). However, the server's private key is not exposed. This is only exploitable if the server is configured with --enable-all CFLAGS="-DWOLFSSL_STATIC_RSA", which enables static RSA cipher suites.

Workaround

This vulnerability can be mitigated by not enabling static RSA cipher suites, by using TLS 1.3, or by building with --enable-sp, or --enable-sp-asm

CVSS Scores

version 3.1