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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.01% (3rd 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 Heap-based Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-WOLFSSLWOLFSSL-15855391
  • published31 Mar 2026
  • disclosed19 Mar 2026
  • creditJonathan Bar Or, Haruto Kimura

Introduced: 19 Mar 2026

NewCVE-2026-2646  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade wolfssl/wolfssl to version 5.9.0 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the wolfSSL_d2i_SSL_SESSION() function when deserializing session data with the SESSION_CERTS option enabled. An attacker can corrupt heap memory and potentially execute arbitrary code or cause a crash by supplying a maliciously crafted session from an external source.

CVSS Base Scores

version 4.0
version 3.1