Heap-based Buffer Overflow Affecting wolfssl/wolfssl package, versions [,5.5.2)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.34% (72nd 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-3105852
  • published7 Nov 2022
  • disclosed7 Nov 2022
  • creditUnknown

Introduced: 7 Nov 2022

CVE-2022-42905  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade wolfssl/wolfssl to version 5.5.2 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow if callback functions are enabled (via the WOLFSSL_CALLBACKS flag). A malicious TLS 1.3 client or network attacker can trigger a buffer over-read on the heap of 5 bytes.

Note: WOLFSSL_CALLBACKS is only intended for debugging.

References

CVSS Scores

version 3.1