CVE-2026-135472 in open62541info

Summary

by MITRE • 11/23/2026

open62541 1.5.0 through 1.5.10 contains a use-after-free and double free vulnerability in the lookupRefType() function in src/util/ua_util.c that allows attackers to corrupt the heap of the server process by supplying a RelativePath string resolved through UA_RelativePath_parseWithServer(). When the path names a ReferenceType with a string or GUID NodeId, the function returns a shallow copy of the browse result's NodeId and frees its identifier, causing the identifier to be freed a second time when the parsed path is cleared, which attackers can exploit to crash the server process.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/23/2026

The open62541 library, specifically versions 1.5.0 through 1.5.10, contains critical memory management vulnerabilities within its OPC UA protocol implementation that pose significant risks to system stability and integrity. These flaws are located in the src/util/ua_util.c file, primarily affecting the lookupRefType function which is invoked during the parsing of RelativePath strings via the UA_RelativePath_parseWithServer utility. The core technical issue stems from improper handling of memory allocation and deallocation when processing ReferenceTypes identified by string or GUID NodeIds. When a client submits a RelativePath that references such an identifier, the lookupRefType function performs a shallow copy of the browse result's NodeId but subsequently frees its internal identifier structure immediately after copying. This premature release creates a dangling pointer scenario where the copied data still relies on memory that has been returned to the system allocator or marked as available for reuse.

This flawed logic leads directly to two distinct classes of heap corruption: use-after-free and double free vulnerabilities. The immediate consequence occurs when the parsed path object is eventually cleared during normal cleanup routines, triggering a second deallocation attempt on an identifier that was already freed in the lookupRefType function. This double free condition corrupts the internal data structures managed by the memory allocator, such as heap metadata or linked list pointers within the allocation arena. In scenarios where the timing of allocations allows for exploitation, attackers can manipulate subsequent memory requests to overwrite critical control flow data, leading to a use-after-free situation that may allow arbitrary code execution if sophisticated heap grooming techniques are employed. Even without successful code execution, the corruption is sufficient to destabilize the server process entirely.

The operational impact of these vulnerabilities is severe, primarily manifesting as denial of service against OPC UA servers running affected versions. By crafting malicious RelativePath strings and sending them through standard OPC UA communication channels, an unauthenticated or authenticated attacker can trigger the heap corruption remotely. The immediate result is typically a segmentation fault or access violation that causes the server process to crash abruptly. This disrupts all connected clients and halts industrial automation processes relying on the affected system for data exchange and control commands. While the primary observed impact is availability loss, the underlying memory corruption nature of the flaw means that with precise exploitation techniques targeting specific allocator behaviors, there remains a theoretical risk of privilege escalation or remote code execution, although this requires deeper analysis of the specific runtime environment and heap layout.

Mitigation strategies should prioritize immediate version upgrades to patched releases where these memory management errors have been corrected by ensuring proper reference counting or deep copying mechanisms are used instead of shallow copies followed by premature frees. For environments unable to upgrade immediately, network-level filtering can provide temporary relief by restricting access to the affected endpoints and validating incoming RelativePath structures against strict allowlists before they reach the parsing logic. Additionally, enabling heap protection features such as Address Sanitizer in development builds or deploying runtime application self-protection tools that detect abnormal memory deallocation patterns can help identify exploitation attempts. Organizations must also review their OPC UA security policies to ensure that only trusted clients are permitted to send complex path queries, thereby reducing the attack surface available for triggering these specific parsing routines.

From a classification perspective, this vulnerability aligns with CWE-416 Use After Free and CWE-415 Double Free, which describe errors where memory is accessed after it has been freed or freed multiple times respectively. In terms of adversary tactics, exploitation falls under the MITRE ATT&CK technique T1059 Command and Scripting Interpreter if used for initial access via script injection, but more accurately maps to T1498 Network Denial of Service due to the primary outcome being service disruption through resource exhaustion or crash induction. The vulnerability highlights the importance of rigorous memory safety checks in network-facing C/C++ applications, particularly those handling complex data structures like OPC UA paths which are prone to recursive parsing and deep nesting that exacerbate heap management complexities.

Responsible

VulnCheck

Reservation

11/23/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00376

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!