{"id":"CVE-2022-43441","aliases":["DEBIAN-CVE-2022-43441","DSA-5373-1","EUVD-2023-1051","GHSA-jqv5-7xpx-qj74","UBUNTU-CVE-2022-43441"],"status":"published","title":"sqlite vulnerable to code execution due to Object coercion","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.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.02356,"percentile":0.83864,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-913","CWE-915"],"published":"2023-03-13T20:00:52Z","modified":"2026-10-28T02:30:23Z","fixes":[{"ecosystem":"npm","package":"sqlite3","fixed_in":["5.1.5"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"node-sqlite3","fixed_in":["5.1.5+ds1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-sqlite3","fixed_in":["5.1.5+ds1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-sqlite3","fixed_in":["5.1.5+ds1-1"],"sources":["osv"]},{"ecosystem":"Debian:11","package":"node-sqlite3","fixed_in":["5.0.0+ds1-1+deb11u2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.1.5"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"node-sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.5+ds1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.5+ds1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.5+ds1-1"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"node-sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0+ds1-1+deb11u2"}]}],"versions":["5.0.0+ds1-1","5.0.0+ds1-1+deb11u1"]},{"source":"osv","ecosystem":"npm","package":"sqlite3","ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.1.5"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"node-sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.0+ds1-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"node-sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.8+ds1-2build1","3.1.8+ds1-2build2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"node-sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0.6+ds1-2","4.1.0+ds1-1","4.1.1+ds1-1","4.1.1+ds1-1build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"node-sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.0+ds1-1","5.0.2+ds1-3"]}],"products":[{"vendor":"ghost","product":"sqlite3"},{"vendor":"ghost foundation","product":"node-sqlite3"}],"references":[{"url":"https://talosintelligence.com/vulnerability_reports/TALOS-2022-1645","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/TryGhost/node-sqlite3/security/advisories/GHSA-jqv5-7xpx-qj74","tags":["x_transferred","Vendor Advisory","advisory","web","report"]},{"url":"https://www.talosintelligence.com/vulnerability_reports/TALOS-2022-1645","tags":["web"]},{"url":"https://github.com/TryGhost/node-sqlite3/commit/edb1934dd222ae55632e120d8f64552d5191c781","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-43441","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-jqv5-7xpx-qj74"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/43xxx/CVE-2022-43441.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-43441","tags":["advisory"]},{"url":"https://github.com/TryGhost/node-sqlite3","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2022-43441","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-43441","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-43441","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.","status":"published","published":"2023-03-16T20:14:14.09Z","modified":"2024-08-03T13:32:59.404Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-915"],"updated_at":"2026-11-02T14:34:25.308772Z"}],"euvd":[{"id":"EUVD-2023-1051","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.","status":"published","published":"2023-03-16T20:14:14Z","modified":"2024-08-03T13:32:59Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T03:25:19.130756Z"}],"ghsa":[{"id":"GHSA-jqv5-7xpx-qj74","title":"sqlite vulnerable to code execution due to Object coercion","description":"### 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","status":"published","published":"2023-03-13T20:00:52Z","modified":"2023-03-22T21:40:39Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-913","CWE-915"],"updated_at":"2026-11-02T14:36:48.041653Z"}],"nvd":[{"id":"CVE-2022-43441","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.","status":"published","published":"2023-03-16T21:15:11.023Z","modified":"2026-06-17T05:06:33.087Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-915","CWE-913"],"updated_at":"2026-11-02T14:07:36.601381Z"}],"osv":[{"id":"CVE-2022-43441","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.","status":"published","published":"2023-03-16T20:14:14.09Z","modified":"2026-10-28T02:30:23.955190555Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-915"],"updated_at":"2026-11-02T15:44:27.186787Z"},{"id":"DEBIAN-CVE-2022-43441","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.","status":"published","published":"2023-03-16T21:15:11.023Z","modified":"2026-11-03T08:03:08.452884433Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-03T08:24:39.643572Z"},{"id":"GHSA-jqv5-7xpx-qj74","title":"sqlite vulnerable to code execution due to Object coercion","description":"### 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","status":"published","published":"2023-03-13T20:00:52Z","modified":"2026-07-08T06:28:03.823203979Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-913","CWE-915"],"updated_at":"2026-11-02T15:46:50.687609Z"},{"id":"UBUNTU-CVE-2022-43441","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.","status":"published","published":"2023-03-16T21:15:00Z","modified":"2025-10-24T04:53:57Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:53:56.473586Z"},{"id":"DSA-5373-1","title":"node-sqlite3 - security update","status":"published","published":"2023-03-14T00:00:00Z","modified":"2026-03-09T02:08:29.384661Z","updated_at":"2026-11-02T15:46:17.543497Z"}]}}
