CVE-2026-6094

Heap buffer overread in wc_PKCS7_DecodeEnvelopedData parsing crafted PKCS7 EnvelopedData

Published Jun 25, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
Heap buffer overread in wc_PKCS7_DecodeEnvelopedData when parsing crafted PKCS7 EnvelopedData. This could theoretically be triggered by attacker-supplied data delivered via S/MIME or CMS.

Analysis

AI-generated

Technical impact

The vulnerability is a heap buffer overread in the wc_PKCS7_DecodeEnvelopedData function used by the wolfSSL library. When an attacker supplies crafted PKCS7 EnvelopedData, the function can read beyond the allocated buffer, potentially exposing data stored on the heap. This could lead to the corruption of sensitive information or local information exposure, though it does not provide code execution.

Affected Systems

The affected product is the wolfSSL library. Vendor: wolfSSL. No specific version range is provided in the advisory.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. The EPSS score is not available, so the commonly observed exploitation probability is unclear. The vulnerability is not listed in the CISA KEV catalog. An attacker would need to supply a malicious PKCS7 message, typically via S/MIME or CMS, to trigger the overread. Once the function parses the data, the overread could reveal sensitive information, but no remote code execution is described.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the fix from wolfSSL commit referenced in pull request 10128, which addresses the buffer overread in PKCS7 parsing.
  • If an update is not immediately possible, enforce strict input validation on PKCS7 messages before passing them to wc_PKCS7_DecodeEnvelopedData, ensuring the data size does not exceed expected limits.
  • For environments that do not require S/MIME or CMS processing, disable the corresponding wolfSSL features or remove wolfSSL from those components to reduce exposure.

Generated by OpenCVE AI on June 25, 2026 at 18:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4683-1 wolfssl security update
History
Type Values Removed Values Added
First Time appeared Wolfssl
Wolfssl wolfssl
Vendors & Products Wolfssl
Wolfssl wolfssl
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Heap buffer overread in wc_PKCS7_DecodeEnvelopedData when parsing crafted PKCS7 EnvelopedData. This could theoretically be triggered by attacker-supplied data delivered via S/MIME or CMS.
Title Heap buffer overread in wc_PKCS7_DecodeEnvelopedData parsing crafted PKCS7 EnvelopedData
Weaknesses CWE-125
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
wolfSSL
Published
Updated
Jun 25, 2026, 5:59 PM
Reserved
Apr 10, 2026, 4:18 PM
Status
Analyzed
Published
Jun 25, 2026, 6:16 PM
Modified
Jun 26, 2026, 4:51 PM