CVE-2022-43441 sqlite vulnerable to code execution due to Object coercion

High 8.1 Published Updated

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.

Weakness: CWE-913, CWE-915

Which versions are affected by CVE-2022-43441?

2 open source packages ship an affected version, including sqlite3. It affects 1 product.

PackageAffectedFixed in
sqlite3 npmFrom 5.0.05.1.5
sqlite3 npmFrom 5.0.05.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.

Sources

Also known as DEBIAN-CVE-2022-43441, DSA-5373-1, GHSA-jqv5-7xpx-qj74, UBUNTU-CVE-2022-43441.

Is CVE-2022-43441 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free