CVE-2022-25231 Denial of Service (DoS)
Attackers can cause a denial of service in node-opcua by sending crafted messages that trigger excessive memory allocation exceeding V8 limits.
- 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-25231?
CVE-2022-25231 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) by sending a specifically crafted OPC UA message with a special OPC UA NodeID, when the requested memory allocation exceeds the v8’s memory limit.
Weakness: CWE-770
Which versions are affected by CVE-2022-25231?
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-25231?
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-25231 being exploited?
There is no known exploitation of CVE-2022-25231 in the wild and no public exploit code.
Other vulnerabilities in node-opcua
Sources
Also known as GHSA-qpgc-xh7j-52q8.