CVE-2022-43441 sqlite vulnerable to code execution due to Object coercion
An attacker can achieve arbitrary code execution in node-sqlite3 by providing malicious input to the Statement Bindings functionality.
- 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-43441?
CVE-2022-43441 is a high-severity code injection vulnerability in Ghost Foundation node-sqlite3, published on 16 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A code execution vulnerability exists in the Statement Bindings functionality of Ghost Foundation node-sqlite3 5.1.1. A specially-crafted Javascript file can lead to arbitrary code execution. An attacker can provide malicious input to trigger this vulnerability.
Which versions are affected by CVE-2022-43441?
2 open source packages ship an affected version, including sqlite3. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
sqlite3 npm | From 5.0.0 | 5.1.5 |
sqlite3 npm | From 5.0.0 | 5.1.5 |
Products include Ghost Sqlite3.
How do I fix CVE-2022-43441?
Upgrade sqlite3 to 5.1.5 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2022-43441 being exploited?
There is no known exploitation of CVE-2022-43441 in the wild and no public exploit code.
Other vulnerabilities in Ghost Foundation node-sqlite3
Sources
Also known as DEBIAN-CVE-2022-43441, DSA-5373-1, GHSA-jqv5-7xpx-qj74, UBUNTU-CVE-2022-43441.