Stack-based Buffer Overflow Affecting wolfssl package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (6th 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-15762299
  • published24 Mar 2026
  • disclosed19 Mar 2026
  • creditMaor Caplan

Introduced: 19 Mar 2026

NewCVE-2026-0819  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Stack-based Buffer Overflow in the wc_PKCS7_BuildSignedAttributes function. An attacker can cause stack or heap memory corruption by providing untrusted input that controls the size of the signedAttribs array, leading to writing beyond the bounds of a fixed-size buffer during PKCS7 SignedData encoding. This is only exploitable if an application allows untrusted input to control the signedAttribs array size when calling PKCS7 signing functions.

Workaround

This vulnerability can be mitigated by validating and limiting the number of custom signed attributes to no more than the allowed maximum, and ensuring untrusted input cannot control the signedAttribs array or its size.

CVSS Base Scores

version 4.0
version 3.1