Miggo Logo

CVE-2022-29863: Memory Allocation with Excessive Size Value in OPCFoundation.NetStandard.Opc.Ua.Core

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.69302%
Published
6/17/2022
Updated
1/30/2023
KEV Status
No
Technology
TechnologyC#

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
OPCFoundation.NetStandard.Opc.Ua.Corenuget<= 1.4.368.531.4.368.58

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

* vuln*r**ility w*s *is*ov*r** in t** OP* U* .N*T St*n**r* St**k t**t *llows * m*li*ious *li*nt to **us* * s*rv*r to tri***r *n out o* m*mory *x**ption wit* * **r**ully *r**t** m*ss***.

Reasoning

T** vuln*r**ility (*W*-***) st*ms *rom improp*r v*li**tion o* siz* v*lu*s *urin* m*ss*** **s*ri*liz*tion. T** OP* U* .N*T St*n**r* St**k's `*in*ry***o**r` *l*ss **n*l*s ***o*in* o* v*ri**l*-l*n*t* **t* typ*s lik* *yt* *rr*ys, strin*s, *n* *rr*ys. T**