Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The CVSS 2.3 score reflects constrained real-world risk: attack vector is network-based, attack complexity is low, but the threat requires prior authentication (PR:L) and integrity impact is limited (VI:L, VA:L with no confidentiality impact VC:N). The CVSS vector marks attack attainment as Present (AT:P), suggesting environmental constraints increase difficulty. The combination of authentication requirement, limited scope, and low impact severity explains the low score despite heap corruption. However, risk should not be dismissed: the vulnerability affects cryptographic certificate parsing, which is typically trusted but in scenarios with untrusted OID sources (malicious certificates, man-in-the-middle OCS responses, or crafted protocol messages from authenticated but hostile actors), memory corruption could enable local privilege escalation or denial of service. The ENISA EUVD classification and wolfSSL's vendor disclosure indicate this was responsibly coordinated. Exploitation requires sending a specifically crafted OID structure to an authenticated context, making opportunistic remote code execution unlikely but targeted attacks on wolfSSL-based PKI infrastructure feasible. |
| Exploit ScenarioDerived | An authenticated user or attacker with network access to a service using wolfSSL submits a specially crafted X.509 certificate or protocol message containing a malformed OID with 33 or more arcs, or an OID arc value pair when only 1 byte of output buffer remains. The DecodeObjectId() function accepts this input due to the sizeof() confusion or insufficient bounds check, writes past the allocated heap buffer, and corrupts adjacent heap metadata or data structures. On a system with heap isolation, this may manifest as a denial-of-service crash; on systems with weaker heap protections or specific heap layout conditions, memory corruption could lead to information disclosure or local privilege escalation if the overlapping heap memory contains sensitive data or code pointers. PoC code development would require reverse-engineering the exact buffer layout and triggering a crash or information leak, but the technical barrier is moderate given the clear bounds-check flaw described in the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 09, 2026
Heap out-of-bounds write in wolfSSL's DecodeObjectId() function in wolfcrypt/src/asn.c allows authenticated remote attackers to trigger memory corruption through two distinct mechanisms: insufficient bounds checking when outSz equals 1, and confusion between buffer byte size and element count across multiple callers, permitting crafted OIDs with 33+ arcs to overflow a 32-arc buffer. CVSS 2.3 reflects low impact (data modification only, no confidentiality loss), but the vulnerability affects cryptographic certificate and message parsing across all wolfSSL versions up to 5.9.0. No public exploit identified at time of analysis.
RemediationAI
Upgrade wolfSSL to version 5.10.0 or later. The fix addresses both the insufficient bounds check (validating outSz >= 2 before writing two arcs) and corrects all caller sites to pass MAX_OID_SZ (element count) instead of sizeof(decOid) (byte size). Review the patch at https://github.com/wolfSSL/wolfssl to verify the corrected DecodeObjectId() implementation and all affected call sites in certificate and protocol parsing. No workarounds are available for code running unpatched versions; the fix requires a source code or library update.
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 vulnerability exists in ASN.1 OID (Object Identifier) parsing, a fundamental operation in X.509 certificate validation and cryptographic protocol message processing. The DecodeObjectId() function in wolfcrypt/src/asn.c is responsible for converting binary OID encodings into an array of arc integers. The root cause (CWE-122: Heap-based Buffer Overflow) involves two distinct coding errors: first, a premature bounds check that validates only outSz >= 1 before writing two consecutive arc values (out[0] and out[1]), creating a 2-byte overflow when outSz is exactly 1; second, a pervasive sizeof() vs. element count confusion where callers pass sizeof(decOid) (64 bytes on 64-bit platforms) rather than MAX_OID_SZ (32 elements), allowing the function to write up to 64 bytes into a 32-element array. This affects all cryptographic operations that parse untrusted OID data, including X.509 certificate chains, OCSP responses, and CRL processing.
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:L/AT:P/PR:L/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
DescriptionCVE.org
Two potential heap out-of-bounds write locations existed in DecodeObjectId() in wolfcrypt/src/asn.c. First, a bounds check only validates one available slot before writing two OID arc values (out[0] and out[1]), enabling a 2-byte out-of-bounds write when outSz equals 1. Second, multiple callers pass sizeof(decOid) (64 bytes on 64-bit platforms) instead of the element count MAX_OID_SZ (32), causing the function to accept crafted OIDs with 33 or more arcs that write past the end of the allocated buffer.
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
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.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
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-21068
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB