Skip to main content

Wolfssl CVE-2026-5503

| EUVDEUVD-2026-21234 MEDIUM
Out-of-bounds Write (CWE-787)
2026-04-09 facts@wolfssl.com GHSA-65xm-pfx9-g5p3
6.9
CVSS 4.0 · NVD
View

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
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.

Impact

CVSS 6.9 with network attack vector and no authentication requirement indicates moderate risk with actual exploitability concerns. The attack vector is AV:N/AC:L/PR:N/UI:N (network-based, low complexity, no privileges or user interaction required), making triggering trivial for any remote attacker. The CVSS impact metrics show VI:L/VA:L (low integrity and availability impact), which understates the real-world risk: a 255-byte out-of-bounds write to heap memory can trigger denial of service via crash, memory corruption leading to information disclosure, or in sophisticated scenarios, code execution depending on heap layout and subsequent exploitation. Exploitation status is not confirmed as actively exploited (no CISA KEV status provided), but the straightforward nature of the attack (send a malformed TLS handshake) and the public availability of the patch PR suggest this may have been discovered during security review rather than in-the-wild exploitation. The lack of POC confirmation does not diminish risk for embedded systems and TLS servers using affected WolfSSL versions, as TLS parsing is typically exposed to untrusted network input. Real-world risk is elevated for production systems because: (1) buffer overflows in C TLS libraries have historical high-impact outcomes; (2) AC:L means no unusual conditions required; (3) memory corruption can bypass safety guarantees in security-critical contexts. This is a high-priority patch for any WolfSSL deployment handling external TLS connections.

Exploit ScenarioDerived

An attacker crafts a malicious TLS 1.3 ClientHello packet with ECH and SNI extensions configured in a specific way: an outer ClientHello with attacker-controlled public SNI data but no inner SNI configured. When the WolfSSL server processes this handshake, TLSX_EchChangeSNI unconditionally attaches the public SNI to the context, then TLSX_SNI_Write serializes an inner ClientHello with a pre-calculated size that does not account for the polluted SNI data, causing a 255-byte heap buffer overflow. The attacker sends the crafted packet over the network to any WolfSSL-based TLS server; no authentication is required. The overflow corrupts adjacent heap structures, potentially crashing the server (denial of service) or leaking sensitive memory contents. No public exploit code is confirmed in the provided data, but the vulnerability's network-accessible nature and low attack complexity make it a credible target for automated scanning and exploitation against deployed WolfSSL instances.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 09, 2026

Buffer overflow in WolfSSL's TLSX_SNI_Write function allows remote unauthenticated attackers to corrupt memory by sending a specially crafted TLS ClientHello with ECH (Encrypted Client Hello) and SNI extension data. The vulnerability occurs when TLSX_EchChangeSNI unconditionally sets extensions even when no inner SNI is configured, causing attacker-controlled SNI data to be written 255 bytes beyond the allocated buffer boundary during ClientHello serialization. CVSS 6.9 indicates moderate integrity and availability impact with low attack complexity.

RemediationAI

Update WolfSSL to a version that includes the fix from PR #10102 (https://github.com/wolfSSL/wolfssl/pull/10102). The specific patched version number is not provided in available data; users must verify against the WolfSSL GitHub releases or contact the vendor (facts@wolfssl.com) for the exact release version incorporating this fix. The patch corrects TLSX_EchChangeSNI to validate that TLSX_Find returns a non-NULL value before unconditionally setting extensions, and ensures TLSX_EchRestoreSNI properly cleans up polluted SNI state regardless of inner SNI configuration. For systems unable to patch immediately, mitigation strategies include disabling ECH extension support in WolfSSL configuration if not required for functionality, or restricting TLS connections to trusted clients only if feasible. Recompile WolfSSL from source with the patched code and redeploy to all affected systems, particularly network-facing TLS servers and VPN endpoints.

Affected VersionsENISA

wolfSSL 0 ≤5.9.0

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

WolfSSL is a TLS/SSL library implementation written in C, commonly embedded in IoT devices, constrained systems, and security appliances. The vulnerability resides in the ECH (Encrypted Client Hello) extension handling during TLS 1.3 handshakes. The root cause is a CWE-787 (Out-of-bounds Write) bug in the SNI extension processing pipeline: TLSX_EchChangeSNI fails to validate whether TLSX_Find returns NULL before unconditionally assigning extensions, allowing attacker-controlled publicName to pollute the shared WOLFSSL_CTX structure. TLSX_EchRestoreSNI's cleanup routine is then bypassed because its NULL check on serverNameX prevents removal of the corrupted state. When TLSX_SNI_Write subsequently serializes the inner ClientHello, it copies SNI data that was sized before the pollution but written after it, resulting in a 255-byte memcpy operation that overflows the allocated buffer. This is a classic time-of-check-time-of-use (TOCTOU) variant where state validation and buffer usage are separated, allowing an attacker to modify shared state between these operations.

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

NVD PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

DescriptionCVE.org

In TLSX_EchChangeSNI, the ctx->extensions branch set extensions unconditionally even when TLSX_Find returned NULL. This caused TLSX_UseSNI to attach the attacker-controlled publicName to the shared WOLFSSL_CTX when no inner SNI was configured. TLSX_EchRestoreSNI then failed to clean it up because its removal was gated on serverNameX != NULL. The inner ClientHello was sized before the pollution but written after it, causing TLSX_SNI_Write to memcpy 255 bytes past the allocation boundary.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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.

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