{"id":"CVE-2022-43441","aliases":["CVE-2022-43441","GHSA-jqv5-7xpx-qj74"],"related":[],"kind":"vulnerability","state":"published","title":"sqlite vulnerable to code execution due to Object coercion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nDue to the underlying implementation of `.ToString()`, it's possible to execute arbitrary JavaScript, or to achieve a denial-of-service, if a binding parameter is a crafted Object.\n\nUsers of `sqlite3` v5.0.0 - v5.1.4 are affected by this.\n\n### Patches\n\nFixed in v5.1.5. All users are recommended to upgrade to v5.1.5 or later.\n\n### Workarounds\n\n* Ensure there is sufficient sanitization in the parent application to protect against invalid values being supplied to binding parameters.\n\n### References\n\n* Commit: https://github.com/TryGhost/node-sqlite3/commit/edb1934dd222ae55632e120d8f64552d5191c781\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Email us at [security@ghost.org](mailto:security@ghost.org)\n\nCredits: Dave McDaniel of Cisco Talos","format":"markdown","source":"ghsa"}],"published":"2023-03-13T20:00:52.000Z","modified":"2026-07-08T06:28:03.823Z","severity":{"scorer":"talos","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"talos","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-913","CWE-915"],"affected":[{"ranges":[{"version":"5.1.1","status":"affected"}],"vendor":"Ghost Foundation","product":"node-sqlite3","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.1.5"}],"ecosystem":"npm","package":"sqlite3","purl":"pkg:npm/sqlite3","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.0.0","fixed":"5.1.5"}],"vendor":"ghost","product":"sqlite3","cpe":"cpe:2.3:a:ghost:sqlite3:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://talosintelligence.com/vulnerability_reports/TALOS-2022-1645","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/TryGhost/node-sqlite3/security/advisories/GHSA-jqv5-7xpx-qj74","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.talosintelligence.com/vulnerability_reports/TALOS-2022-1645","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-43441","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/TryGhost/node-sqlite3/commit/edb1934dd222ae55632e120d8f64552d5191c781","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/TryGhost/node-sqlite3","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"talos","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-08-01T16:05:00.446Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-43441","url":"https://www.cve.org/CVERecord?id=CVE-2022-43441","licence":"CVE Terms of Use","modified":"2024-08-03T13:32:59.404Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jqv5-7xpx-qj74","url":"https://github.com/advisories/GHSA-jqv5-7xpx-qj74","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:03.823Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-43441","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-43441","licence":"Public domain","modified":"2026-06-17T05:06:33.087Z"}],"updatedAt":"2026-11-25T22:58:18.900Z","epss":{"score":0.02356,"percentile":0.84204,"date":"2026-12-01T12:00:22.000Z"}}