Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconEstablish TLS session as peer
-
DeliveryApp does partial wolfSSL_read with small buffer
-
ExploitPeer keeps sending during bidirectional shutdown
-
InstallGrowInputBuffer frees/reallocs input buffer
-
C2clearOutputBuffer left dangling
-
ExecuteNext read touches freed heap
-
ImpactCrash 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (wolfSSL).
CVSS VectorVendor: wolfSSL
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
wolfSSL prior to version 3.12.2 provides a weak Bleichenbacher oracle when any TLS cipher suite using RSA key exchange i
A specially crafted x509 certificate can cause a single out of bounds byte overwrite in wolfSSL through 3.10.2 resulting
Authentication bypass in wolfSSL TLS clients built with Raw Public Key (RPK) support allows a malicious or on-path serve
wolfSSL builds that enable the WOLFSSL_TRUST_PEER_CERT macro can be induced to accept a forged clone of a trusted-peer C
Certificate forgery in the wolfSSL client (versions 5.7.2 through 5.9.2) lets a remote attacker who already holds any ce
wolfSSL (formerly CyaSSL) before 3.6.8 allows remote attackers to cause a denial of service (resource consumption or tra
In wolfSSL before 5.5.1, malicious clients can cause a buffer overflow during a TLS 1.3 handshake. Rated high severity (
An issue was discovered in wolfSSL before 5.5.0. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita
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
In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data wh
An issue was discovered in wolfSSL before 4.5.0, when single precision is not employed. Rated high severity (CVSS 7.0).
wolfSSL before 4.5.0 mishandles TLS 1.3 server data in the WAIT_CERT_CR state, within SanityCheckTls13MsgReceived() in t
EUVD-2026-87924
GHSA-rjf7-5h4x-wj8p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB