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
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
open62541 open62541
Default version status: unaffected
1.5.0 to < 1.5.7affected
pkg:github/open62541/open62541References
- https://github.com/open62541/open62541/commit/0cf4806768c493bc6ccffcd4419da24153b970ec ↗
- https://github.com/open62541/open62541/pull/8298 ↗
- https://github.com/open62541/open62541/pull/8302 ↗
- https://github.com/open62541/open62541/blob/v1.5.6/src/ua_types_definition.c#L274 ↗
- https://github.com/open62541/open62541/releases/tag/v1.5.7 ↗
- https://www.vulncheck.com/advisories/open62541-1.5.0-before-1.5.7-integer-overflow-heap-buffer-overflow-via-custom-datatype ↗