CVE-2022-21208 Denial of Service (DoS)
An attacker can cause a denial of service in node-opcua by sending unlimited large chunks without closing the session, exhausting resources.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-21208?
CVE-2022-21208 is a high-severity denial of service vulnerability in node-opcua, published on 23 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The package node-opcua before 2.74.0 are vulnerable to Denial of Service (DoS) due to a missing limitation on the number of received chunks - per single session or in total for all concurrent sessions. An attacker can exploit this vulnerability by sending an unlimited number of huge chunks (e.g. 2GB each) without sending the Final closing chunk.
Weakness: CWE-1284
Which versions are affected by CVE-2022-21208?
2 open source packages ship an affected version, including node-opcua. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
node-opcua npm | All versions | 2.74.0 |
node-opcua npm | All versions | 2.74.0 |
Products include Node-Opcua Project Node-Opcua.
How do I fix CVE-2022-21208?
Upgrade node-opcua to 2.74.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-21208 being exploited?
There is no known exploitation of CVE-2022-21208 in the wild and no public exploit code.
Other vulnerabilities in node-opcua
Sources
Also known as GHSA-4hr4-pjjh-2q2w.