Skip to main content

open62541 CVE-2026-135472

| EUVDEUVD-2026-133411 MEDIUM
Use After Free (CWE-416)
2026-11-23 VulnCheck GHSA-g5v4-pjf8-83v4
5.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Access server-side RelativePath parsing API
  2. Delivery
    Reference a string/GUID-NodeId ReferenceType in path
  3. Exploit
    Parse via UA_RelativePath_parseWithServer
  4. Execution
    Double free on parsed-path clear
  5. Impact
    Heap corruption crashes server process (DoS)

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

Exploitation requires that a RelativePath resolved through UA_RelativePath_parseWithServer() names a ReferenceType whose NodeId uses a string or GUID identifier (a heap-allocated identifier) - not the numeric namespace-0 NodeIds used by the standard built-in ReferenceTypes. Therefore a default open62541 server with only standard ReferenceTypes may not be reachable; a custom string/GUID-NodeId ReferenceType must exist and be nameable in the path. The attacker must also be able to drive the server-side parsing function with a controlled RelativePath string. Limiting factors: CVSS assesses AV:L (local) and AC:H (high complexity), the string/GUID-NodeId precondition is non-default, and the version must fall in 1.5.0 through 1.5.10; impact is limited to process crash / denial of service.

Impact

This is a medium-severity, denial-of-service-oriented memory-safety bug, not a top-tier emergency. The vendor CVSS 4.0 vector (AV:L/AC:H/AT:N/PR:N/UI:N, score 5.9) signals LOCAL attack vector with HIGH attack complexity, and the only high impact metric is availability (VA:H) - consistent with the description's stated outcome of crashing the server process. The priority Decision label is 'this_month' (not act_now/emergency), there is no CISA KEV listing, and no EPSS score was supplied, so there is no signal of widespread or automated exploitation. No weaponized public exploit is identified; however, the fix PR includes a unit test that deterministically triggers the use-after-free under ASan/valgrind, which serves as a public proof-of-concept of the crash condition rather than verified working attack code. One signal to reconcile: the vector asserts AV:L, yet RelativePath resolution is conceptually network-reachable in OPC UA (TranslateBrowsePathsToNodeIds), so whether a remote client can drive UA_RelativePath_parseWithServer with attacker-controlled input is application-dependent - verify reachability with the vendor/your integration before treating this as purely local. Net: a legitimate maintenance-priority DoS fix for affected open62541 deployments, not a drop-everything issue absent evidence of remote reachability.

Exploit ScenarioDerived

In an open62541-based OPC UA server (1.5.0-1.5.10) that defines a custom ReferenceType whose NodeId uses a string or GUID identifier, an attacker who can submit a RelativePath string for server-side parsing supplies a path naming that ReferenceType; lookupRefType() returns a shallow copy of the browse result's NodeId and frees its identifier, so clearing the parsed path frees it a second time, corrupting the server heap and crashing the process. Attack complexity is HIGH and the vector is assessed LOCAL, so reliable triggering depends on the non-default ReferenceType configuration and on reaching the parser with attacker-controlled input. No weaponized exploit is public, but the fix PR ships a unit test that reproduces the double free.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 23, 2026

Heap corruption in open62541 1.5.0 through 1.5.10 lets an attacker who can supply a crafted RelativePath string to UA_RelativePath_parseWithServer() trigger a use-after-free and double free by naming a ReferenceType whose NodeId carries a string or GUID identifier, crashing the OPC UA server process. The flaw sits in lookupRefType() in src/util/ua_util.c, which hands back a shallow copy of the browse result NodeId, frees the identifier, and then frees it again when the parsed path is cleared; the same code also deletes the browse result array with the wrong element type, compounding the heap corruption. Exploitation is rated local and high-complexity in the assessed vector (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, base 5.9 in the CVSS 4.0 record), a custom non-numeric-NodeId ReferenceType must exist and be nameable in the path, and impact is limited to denial of service; no public exploit was identified at time of analysis.

RemediationAI

Apply the upstream patch: PR https://github.com/open62541/open62541/pull/8742, merged as commit https://github.com/open62541/open62541/commit/ad6f0f2272e25ef3e13ea526645fa7971606c901, which switches lookupRefType() from a shallow NodeId assignment to UA_NodeId_copy(), returns the copy status code, and frees the browse results as UA_TYPES_EXPANDEDNODEID; this is an upstream fix available as a PR/commit, and a released patched version number is not independently confirmed in the supplied data, so verify the tag you build against the vendor advisory before relying on any release artifact, and treat the vendor advisory at https://www.vulncheck.com/advisories/open62541-1.5.0-1.5.10-use-after-free-via-relativepath-parsing as the patch-status reference (patch reported available from vendor). Where upgrading cannot be done immediately, remove the precondition rather than the symptom: do not expose custom ReferenceTypes whose NodeIds use string or GUID identifiers on servers reachable by untrusted clients (numeric NodeIds keep the identifier inline and avoid the double free, at the cost of changing the address space model and any client that hardcodes those NodeIds), and restrict who can invoke the browse-path resolution service that reaches UA_RelativePath_parseWithServer() with attacker-chosen RelativePath strings, which removes the attack surface but breaks TranslateBrowsePathsToNodeIds clients and any path-based discovery workflows until the fix is deployed.

Affected VersionsENISA

Open62541 1.5.0 ≤1.5.10

Affected Packages

euvd open62541 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

open62541 is an open-source OPC UA (IEC 62541) SDK and server stack written in C. The affected routine, lookupRefType() in src/util/ua_util.c, resolves the reference-type portion of a RelativePath during UA_RelativePath_parseWithServer() by issuing an internal browse and inspecting the returned ExpandedNodeId array. The vulnerable code copied results[i].nodeId into the caller's outRefTypeId (a shallow struct assignment), immediately cleared the source NodeId, and then released the whole array with UA_Array_delete() using UA_TYPES_NODEID instead of UA_TYPES_EXPANDEDNODEID - a type mismatch for the array actually being freed. For ReferenceTypes with numeric namespace-0 NodeIds (the built-in hierarchical/non-hierarchical reference types) the identifier is stored inline, so the shallow copy survives; for string or GUID identifiers the payload is heap-allocated, so the copy becomes a dangling pointer to memory that has already been released, and the subsequent UA_RelativePath_clear() frees it a second time. This is CWE-416 (use-after-free) with an accompanying double free, and the upstream patch replaces the shallow assignment with UA_NodeId_copy(), introduces a status-code return variable, and corrects the UA_Array_delete() element type, with a regression test parseRelativePathWithServerStringRefType added to tests/check_types_parse.c that exercises a ReferenceType with the string NodeId ns=1;s=MyRefIdentifierString.

Know when Open62541 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 (VulnCheck) PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.1 MEDIUM

AV:L and AC:H follow the vendor-assessed local vector and the non-default string/GUID-NodeId ReferenceType precondition; described impact is a process crash, so A:H with C:N/I:N.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Low
open-source OPC UA SDK, industrial/OT niche deployment footprint
Data Quality
6 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
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.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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