Description
open62541 1.5.0 before 1.5.7 contains an integer overflow in UA_DataType_fromStructureDescription() that wraps the 16-bit memSize field for large custom structure definitions. A malicious OPC UA server can supply DataType definitions via UA_Client_getRemoteDataTypes(), causing decodeBinaryStructure() to overflow the heap, crashing clients or enabling code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| open62541 | open62541 | 1.5.0 – < 1.5.7 | 1.5.7 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | open62541 | No fix yet | — |
| Debian 13 | open62541 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | open62541 | No fix yet | — |
| Ubuntu 26.04 LTS | open62541 | No fix yet | — |
References
- https://github.com/open62541/open62541/commit/0cf4806768c493bc6ccffcd4419da24153b970ec patch
- https://github.com/open62541/open62541/pull/8298 patch issue-tracking
- https://github.com/open62541/open62541/pull/8302 patch issue-tracking
- https://github.com/open62541/open62541/blob/v1.5.6/src/ua_types_definition.c#L274 technical-description
- open62541 v1.5.7 Release Notes release-notes
- VulnCheck Advisory: open62541 1.5.0 before 1.5.7 Integer Overflow Heap Buffer Overflow via Custom DataType third-party-advisory