Miggo Logo

CVE-2022-21208: Uncontrolled Resource Consumption in node-opcua

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.29944%
Published
8/24/2022
Updated
1/28/2023
KEV Status
No
Technology
TechnologyJavaScript

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
node-opcuanpm< 2.74.02.74.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from missing chunk size/count limitations in message processing. The patch added: 1) maxChunkCount/maxMessageSize checks in MessageBuilderBase 2) maxChunkSize validation in PacketAssembler 3) Transport limit propagation to MessageBuilder in SecureChannel layers. The vulnerable functions directly handled chunk processing without these critical resource controls, enabling DoS via oversized/unlimited chunks.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** p**k*** no**-op*u* ***or* *.**.* *r* vuln*r**l* to **ni*l o* S*rvi** (*oS) *u* to * missin* limit*tion on t** num**r o* r***iv** **unks - p*r sin*l* s*ssion or in tot*l *or *ll *on*urr*nt s*ssions. *n *tt**k*r **n *xploit t*is vuln*r**ility *y s*

Reasoning

T** vuln*r**ility st*mm** *rom missin* **unk siz*/*ount limit*tions in m*ss*** pro**ssin*. T** p*t** *****: *) m*x**unk*ount/m*xM*ss***Siz* ****ks in M*ss****uil**r**s* *) m*x**unkSiz* v*li**tion in P**k*t*ss*m*l*r *) Tr*nsport limit prop***tion to M