Insecure Randomness Affecting wolfssl/wolfssl package, versions [,5.6.2-stable)


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
0.09% (41st 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 Learn

Learn about Insecure Randomness vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-WOLFSSLWOLFSSL-5798564
  • published21 Jul 2023
  • disclosed21 Jul 2023
  • creditUnknown

Introduced: 21 Jul 2023

CVE-2023-3724  (opens in a new tab)
CWE-330  (opens in a new tab)

How to fix?

Upgrade wolfssl/wolfssl to version 5.6.2-stable or higher.

Overview

Affected versions of this package are vulnerable to Insecure Randomness. If a TLS 1.3 client gets neither a PSK (pre shared key) extension nor a KSE (key share extension) when connecting to a malicious server, a default predictable buffer gets used for the IKM (Input Keying Material) value when generating the session master secret. Using a potentially known IKM value when generating the session master secret key compromises the key generated, allowing an eavesdropper to reconstruct it and potentially allowing access to or meddling with message contents in the session.

Note:

This issue does not affect client validation of connected servers, nor expose private key information, but could result in an insecure TLS 1.3 session when not controlling both sides of the connection.

CVSS Scores

version 3.1