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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.78% (86th 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-CONAN-WOLFSSL-10078510
  • published8 May 2025
  • 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 to version 5.6.3 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 Base Scores

version 3.1