Critical Code Execution Vulnerability in node-sqlite3: CVE-2022-43441

node-sqlite3 Updated 02 Oct 2025

Summary

16/03/2023
N/A
Yes i
Critical
9.8

CVE-2022-43441: A code execution vulnerability exists in the Statement Bindings functionality of Ghost Foundation node-sqlite3 5.1.1. Affects node-sqlite3 across 2 version ranges.

< 5.0.0+ds1-1+deb11u2 >= 034c05fdf5bd957a914829517cfb49b473718f28, < 6a806f87903d778d520bce09f6e893752619383b

Fixed in 5.0.0+ds1-1+deb11u2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

node-sqlite3 is a popular Node.js library that provides a simple interface for interacting with SQLite databases. It is widely used in various applications for its ease of use and efficiency. However, the library has a critical vulnerability that allows for arbitrary code execution through its Statement Bindings functionality, making it susceptible to malicious attacks if not addressed promptly.

Vulnerability Detail

CVE-2022-43441 is a code execution vulnerability found in the Statement Bindings functionality of the node-sqlite3 library version 5.1.1. The vulnerability arises from the handling of specially-crafted JavaScript files, which can lead to arbitrary code execution. An attacker can exploit this vulnerability by providing malicious input, potentially compromising the integrity and security of the application using this library. The CVSS score for this vulnerability is 9.8, indicating a critical level of severity.

How To Fix

Minimum fixed version

5.0.0+ds1-1+deb11u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-sqlite3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If an immediate upgrade is not possible, consider implementing input validation to sanitize user inputs and prevent the execution of malicious code. This can help mitigate the risk until a proper update is applied.

Conclusion

The CVE-2022-43441 vulnerability in the node-sqlite3 library poses a significant risk due to its potential for arbitrary code execution. It is crucial for developers using this library to update to the latest secure versions and implement necessary precautions to safeguard their applications.

See every vulnerability recorded for node-sqlite3 →

Share this vulnerability

FAQ

CVE-2022-43441 is a critical code execution vulnerability in the node-sqlite3 library that allows attackers to execute arbitrary code through specially-crafted JavaScript files.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to unauthorized access, data breaches, and complete control over the affected application, posing significant security risks.

If an upgrade is not feasible, implement input validation to sanitize user inputs and reduce the risk of exploitation until you can apply the necessary updates.

You can find more information about node-sqlite3 and its updates on its GitHub repository at https://github.com/tryghost/node-sqlite3.

Related vulnerabilities

Recent vulnerabilities recorded for node-sqlite3.

How To Fix

Minimum fixed version

5.0.0+ds1-1+deb11u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-sqlite3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback