Code execution via crafted bind-object coercion
Published Mar 16, 2023 · Updated Aug 3, 2024
Code execution in Ghost Foundation node-sqlite3 5.0.0 through 5.1.4 allows attackers to run JavaScript via crafted bind objects. The Statement::BindParameter path treats arbitrary objects as text and calls Napi::Value::ToString, which invokes attacker-defined JavaScript during coercion. A consuming application must pass an attacker-controlled object as a statement binding; successful exploitation runs code in the Node.js process, while JSON-only input can crash that process.
Summary
What happened
Code execution in Ghost Foundation node-sqlite3 5.0.0 through 5.1.4 allows attackers to run JavaScript via crafted bind objects. The Statement::BindParameter path treats arbitrary objects as text and calls Napi::Value::ToString, which invokes attacker-defined JavaScript during coercion. A consuming application must pass an attacker-controlled object as a statement binding; successful exploitation runs code in the Node.js process, while JSON-only input can crash that process.
The record
- CVE
- CVE-2022-43441
- Published
- Mar 16, 2023
- Updated
- Aug 3, 2024
- Vendor
- Ghost Foundation
- Product
- node-sqlite3
- Classifications
- CWE-915
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 16, 2023CVE publishedPublication date reported by the CVE source.
- Aug 3, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.1.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Ghost CMS denial-of-service proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo