CVE-2022-29863: Memory Allocation with Excessive Size Value in OPCFoundation.NetStandard.Opc.Ua.Core
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.69302%
CWE
Published
6/17/2022
Updated
1/30/2023
KEV Status
No
Technology
C#
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
OPCFoundation.NetStandard.Opc.Ua.Core | nuget | <= 1.4.368.53 | 1.4.368.58 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability (CWE-789) stems from improper validation of size values during message deserialization. The OPC UA .NET Standard Stack's BinaryDecoder
class handles decoding of variable-length data types like byte arrays, strings, and arrays. These functions
read size values directly from untrusted input and allocate memory based on these values. Without proper bounds checking, a malicious client can supply excessively large size values, leading to uncontrolled memory allocation. The high confidence stems from the vulnerability's nature (memory allocation without limits) and the fact that these decoding functions
are the primary points where such unchecked allocations would occur in a message processing stack.