CVE-2022-21164 Denial of Service (DoS)
An attacker can cause a crash in the node-lmdb library by providing a non-invokable ToString value, leading to denial of service.
- 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-21164?
CVE-2022-21164 is a low-severity denial of service vulnerability in node-lmdb, published on 16 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The package node-lmdb before 0.9.7 are vulnerable to Denial of Service (DoS) when defining a non-invokable ToString value, which will cause a crash during type check.
Which versions are affected by CVE-2022-21164?
2 open source packages ship an affected version, including node-lmdb. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
node-lmdb npm | All versions | 0.9.7 |
node-lmdb npm | All versions | 0.9.7 |
Products include Node-Lmdb Project Node-Lmdb.
How do I fix CVE-2022-21164?
Upgrade node-lmdb to 0.9.7 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-21164 being exploited?
There is no known exploitation of CVE-2022-21164 in the wild and no public exploit code.
Sources
Also known as GHSA-32j9-6qqm-mq9g, SNYK-JS-NODELMDB-2400723.