Skip to main content

wolfSSL CVE-2026-15442

| EUVDEUVD-2026-87924 LOW
Use After Free (CWE-416)
2026-09-27 wolfSSL GHSA-rjf7-5h4x-wj8p
2.3
CVSS 4.0 · Vendor: wolfSSL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Establish TLS session as peer
  2. Delivery
    App does partial wolfSSL_read with small buffer
  3. Exploit
    Peer keeps sending during bidirectional shutdown
  4. Install
    GrowInputBuffer frees/reallocs input buffer
  5. C2
    clearOutputBuffer left dangling
  6. Execute
    Next read touches freed heap
  7. Impact
    Crash or undefined behavior

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an application built on wolfSSL (D)TLS that exercises a specific API sequence: a partial wolfSSL_read() (typically because a small user buffer leaves decrypted data buffered in clearOutputBuffer), followed by wolfSSL_shutdown() for a bidirectional close, followed by another wolfSSL_read(), all while the remote peer continues sending data during shutdown so that ProcessReply()->GetInputData()->GrowInputBuffer() reallocates the input buffer. This applies to default (D)TLS builds, so no non-default feature flag is needed, but the vulnerable app-side read/shutdown/read usage pattern is the essential precondition. LIMITING FACTORS: high attack complexity and an attack requirement (AC:H/AT:P) mean the timing/state must be induced; impact is availability-only (memory corruption/crash) with no confidentiality or integrity effect per the vendor vector; the attacker must be the connected TLS peer (or MITM) able to keep sending during shutdown.

Impact

This is a genuine memory-safety defect (CWE-416 heap use-after-free) confirmed by wolfSSL themselves via the fix PR #10863, which includes a dedicated regression test (test_wolfSSL_shutdown_pending_data_uaf) reproducing the exact sequence - strong evidence the bug is real and well-understood, not speculative. However, every risk-scaling signal points LOW: the vendor CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L) rates it 2.3, indicating high attack complexity, an attack requirement (AT:P), and impact limited to availability-low with NO confidentiality or integrity effect. There is no EPSS score, no CISA KEV listing, and no public exploit - only a proof-of-concept unit test inside the patch, which demonstrates the crash path but is not a weaponized exploit against a live target. Exploitation depends on the *application's* specific API usage (partial read → shutdown → re-read while the peer keeps sending), so it is not triggerable against arbitrary wolfSSL deployments. The tag set implies 'Information Disclosure' and 'Memory Corruption', but the vendor vector explicitly sets VC:N (no confidentiality impact), so this reads as a crash/DoS-class UAF rather than a data-leak - the two signals conflict and the vendor's VC:N should be treated as authoritative. Net: real bug, low real-world priority; patch-in-normal-cycle rather than emergency.

Exploit ScenarioDerived

An application built on wolfSSL passes a small user buffer to wolfSSL_read(), receiving only part of a record (leaving decrypted plaintext buffered), then initiates a bidirectional wolfSSL_shutdown() and calls wolfSSL_read() again while the remote TLS peer continues sending data during the shutdown. The shutdown path reaches ProcessReply()->GrowInputBuffer(), which frees and reallocates the input buffer while clearOutputBuffer still points into it, so the next read dereferences freed heap memory. A malicious or MITM peer that keeps the connection sending data during shutdown can drive this state, but only against applications that use this exact read/shutdown/read pattern; a POC-grade regression test exists in PR #10863 but no standalone weaponized exploit is public.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 27, 2026

Heap use-after-free in wolfSSL's (D)TLS shutdown path can crash or corrupt memory in applications that leave decrypted application data buffered (typically after a wolfSSL_read() with a small user buffer), then call wolfSSL_shutdown() for a bidirectional close, then call wolfSSL_read() again while the peer keeps sending data during shutdown. All builds that use (D)TLS, including default builds, are affected per the vendor's own advisory scope, and the defect was confirmed by wolfSSL in fix PR #10863, which ships a dedicated regression test (test_wolfSSL_shutdown_pending_data_uaf) reproducing the exact sequence. Impact is availability-only - no confidentiality or integrity effect is assessed - and the vendor rates it low severity (CVSS 4.0 2.3, with AC:H and AT:P), consistent with the independent assessment of CVSS 3.1 AV:N/AC:H/PR:N/UI:N/C:N/I:N/A:L; exploitation requires induced timing/state and an attacker who is the connected TLS peer (or a MITM positioned to keep sending during shutdown), and no public exploit identified at time of analysis.

RemediationAI

Apply the upstream fix for this issue and rebuild: the authoritative patch is wolfSSL PR #10863 (https://github.com/wolfSSL/wolfssl/pull/10863), which adds a guard in wolfSSL_shutdown() that returns WOLFSSL_SHUTDOWN_NOT_DONE when ssl->buffers.clearOutputBuffer.length > 0, refusing to enter ProcessReply() (and thus GrowInputBuffer()) while application data is still buffered. Upstream fix available (PR/commit); released patched version not independently confirmed, so pull the merge commit or a later tagged wolfSSL release that contains it and verify the fix is present in your build before relying on it. Where patching must be deferred, the most direct compensating control mirrors the fix at the application layer: drain all buffered plaintext (loop on wolfSSL_read() until it returns 0 or a negative non-WANT_READ value, or check wolfSSL_pending() == 0) before invoking wolfSSL_shutdown(), which prevents clearOutputBuffer from being live when the shutdown path processes records. A second compensating option is to avoid the bidirectional-close path entirely - call wolfSSL_shutdown() only once to send close_notify and do not re-enter wolfSSL_read() afterwards - which sidesteps the vulnerable state at the cost of not completing a clean two-way TLS shutdown (the peer may report an unclean close and session-resumption behavior can differ). Because the impact is availability-only memory corruption rather than disclosure, network-level controls are of limited value; the attacker must already be the connected TLS peer (or a MITM), so strict peer authentication and certificate validation reduce but do not eliminate exposure. Note there is no way to disable the vulnerable code by dropping a non-default feature flag, since default (D)TLS builds are affected - code changes or version upgrade are the only real fixes.

Affected VersionsENISA

wolfSSL 4.4.0 ≤5.9.2

Affected Packages

euvd wolfssl no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-416 (use-after-free) arising from an internal pointer aliasing bug in wolfSSL's buffer management. When wolfSSL_read() is called with a small user buffer, wolfSSL's ReceiveData() decrypts in place inside ssl->buffers.inputBuffer and then hands back only part of the cleartext, leaving the remainder described by ssl->buffers.clearOutputBuffer - whose .buffer pointer directly aliases into ssl->buffers.inputBuffer (and ShrinkInputBuffer() is deliberately skipped while clearOutputBuffer.length > 0). The (D)TLS shutdown state machine is the trigger: during the bidirectional close, wolfSSL_shutdown() can invoke ProcessReply(), which reads incoming records; if the peer keeps sending data and a record is only partially delivered (the regression test injects a well-formed TLS application-data header announcing a 4096-byte record with only a few body bytes), GetInputData() calls GrowInputBuffer() to satisfy the announced size. GrowInputBuffer() frees and reallocates the input buffer, invalidating the previously aliased clearOutputBuffer pointer. The next wolfSSL_read() then copies plaintext out of freed heap memory - a heap use-after-free that manifests as memory corruption and a likely crash. Notably, the trigger requires no non-default compile-time feature flag: the bug lives in the default (D)TLS code path, though the reproducer is guarded by TLS 1.2 and manual-memio test dependencies. The affected product surface per CPE is cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*, i.e., wolfSSL releases predating the upstream fix, and the consuming applications must be built with (D)TLS enabled.

Know when Wolfssl gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (wolfSSL) PRIMARY 2.3 LOW
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 3.7 LOW

Remote TLS peer needs no system privileges (PR:N) but must induce a precise read/shutdown/read timing state (AC:H); impact is a UAF crash, so availability-low only, matching vendor VC:N/VI:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (wolfSSL).

CVSS VectorVendor: wolfSSL

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

In all builds that make use of (D)TLS, including default builds, there is a series of conditional states during the TLS shutdown which could lead to a heap-use-after free. If an application ended up getting a partial wolfSSL_read() which is sometimes caused by a small user buffer passed in, then called wolfSSL_shutdown for a bidirectional close and attempted to wolfSSL_read() again while the peer continues trying to send data during the shutdown it would lead to a state where a potential heap-use-after free happened.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Medium
Widely-used embedded/IoT TLS library, but niche vs mainstream OpenSSL
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2017-13099 HIGH POC
7.5 Dec 13

wolfSSL prior to version 3.12.2 provides a weak Bleichenbacher oracle when any TLS cipher suite using RSA key exchange i

CVE-2017-2800 CRITICAL POC
9.8 May 24

A specially crafted x509 certificate can cause a single out of bounds byte overwrite in wolfSSL through 3.10.2 resulting

CVE-2026-89136 HIGH POC
8.3 Sep 27

Authentication bypass in wolfSSL TLS clients built with Raw Public Key (RPK) support allows a malicious or on-path serve

CVE-2026-93302 HIGH POC
8.3 Sep 27

wolfSSL builds that enable the WOLFSSL_TRUST_PEER_CERT macro can be induced to accept a forged clone of a trusted-peer C

CVE-2026-89102 HIGH POC
8.3 Sep 27

Certificate forgery in the wolfSSL client (versions 5.7.2 through 5.9.2) lets a remote attacker who already holds any ce

CVE-2015-6925 HIGH POC
7.5 Jan 22

wolfSSL (formerly CyaSSL) before 3.6.8 allows remote attackers to cause a denial of service (resource consumption or tra

CVE-2022-39173 HIGH POC
7.5 Sep 29

In wolfSSL before 5.5.1, malicious clients can cause a buffer overflow during a TLS 1.3 handshake. Rated high severity (

CVE-2022-38152 HIGH POC
7.5 Aug 31

An issue was discovered in wolfSSL before 5.5.0. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita

CVE-2020-11713 HIGH POC
7.5 Apr 12

wolfSSL 4.3.0 has mulmod code in wc_ecc_mulmod_ex in ecc.c that does not properly resist timing side-channel attacks. Ra

CVE-2019-18840 HIGH POC
7.5 Nov 09

In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data wh

CVE-2020-15309 HIGH POC
7.0 Aug 21

An issue was discovered in wolfSSL before 4.5.0, when single precision is not employed. Rated high severity (CVSS 7.0).

CVE-2020-24613 MEDIUM POC
6.8 Aug 24

wolfSSL before 4.5.0 mishandles TLS 1.3 server data in the WAIT_CERT_CR state, within SanityCheckTls13MsgReceived() in t

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy