{"id":"CVE-2022-21227","aliases":["DEBIAN-CVE-2022-21227","EUVD-2022-1694","GHSA-9qrh-qjmc-5w2p","UBUNTU-CVE-2022-21227"],"status":"published","title":"Denial of Service (DoS)","description":"The package sqlite3 before 5.0.3 are vulnerable to Denial of Service (DoS) which will invoke the toString function of the passed parameter. If passed an invalid Function object it will throw and crash the V8 engine.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.02213,"percentile":0.82851,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-248"],"published":"2022-04-28T20:25:23Z","modified":"2026-10-28T10:25:35Z","fixes":[{"ecosystem":"npm","package":"sqlite3","fixed_in":["5.0.3"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"node-sqlite3","fixed_in":["5.0.6+ds1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-sqlite3","fixed_in":["5.0.6+ds1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-sqlite3","fixed_in":["5.0.6+ds1-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.0.3"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"node-sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.6+ds1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.6+ds1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.6+ds1-1"}]}]},{"source":"osv","ecosystem":"npm","package":"sqlite3","ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.0.3"}]}]},{"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":"sqlite","product":"sqlite3"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-SQLITE3-2388645","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2805470","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/TryGhost/node-sqlite3/commit/593c9d498be2510d286349134537e3bf89401c4a","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/TryGhost/node-sqlite3/security/advisories/GHSA-9qrh-qjmc-5w2p","tags":["web"]},{"url":"https://github.com/TryGhost/node-sqlite3/issues/1440","tags":["web"]},{"url":"https://github.com/TryGhost/node-sqlite3/issues/1449","tags":["web"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-SQLITE3-2388645","tags":["web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21227","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-9qrh-qjmc-5w2p","tags":["report"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21227.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-21227","tags":["advisory"]},{"url":"https://github.com/TryGhost/node-sqlite3","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2022-21227","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21227","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-21227","title":"Denial of Service (DoS)","description":"The package sqlite3 before 5.0.3 are vulnerable to Denial of Service (DoS) which will invoke the toString function of the passed parameter. If passed an invalid Function object it will throw and crash the V8 engine.","status":"published","published":"2022-05-01T15:25:15.734Z","modified":"2024-09-16T18:48:34.205Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:34:29.057251Z"}],"euvd":[{"id":"EUVD-2022-1694","description":"The package sqlite3 before 5.0.3 are vulnerable to Denial of Service (DoS) which will invoke the toString function of the passed parameter. If passed an invalid Function object it will throw and crash the V8 engine.","status":"published","published":"2022-05-01T15:25:15Z","modified":"2024-09-16T18:48:34Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high"}],"updated_at":"2026-11-03T00:55:29.13849Z"}],"ghsa":[{"id":"GHSA-9qrh-qjmc-5w2p","title":"Denial-of-Service when binding invalid parameters in sqlite3","description":"Affected versions of sqlite3 will experience a fatal error when supplying a specific object in the parameter array. This error causes the application to crash and could not be caught. Users of `sqlite3` v5.0.0, v5.0.1 and v5.0.2 are affected by this. This issue is fixed in v5.0.3. All users are recommended to upgrade to v5.0.3 or later. Ensure there is sufficient sanitization in the parent application to protect against invalid values being supplied to binding parameters as a workaround.\n","status":"published","published":"2022-04-28T20:25:23Z","modified":"2023-01-30T05:00:28Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-248"],"updated_at":"2026-11-02T14:36:26.667347Z"}],"nvd":[{"id":"CVE-2022-21227","description":"The package sqlite3 before 5.0.3 are vulnerable to Denial of Service (DoS) which will invoke the toString function of the passed parameter. If passed an invalid Function object it will throw and crash the V8 engine.","status":"published","published":"2022-05-01T16:15:08.197Z","modified":"2026-06-17T04:25:48.5Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:07:18.660414Z"}],"osv":[{"id":"CVE-2022-21227","title":"Denial of Service (DoS)","description":"The package sqlite3 before 5.0.3 are vulnerable to Denial of Service (DoS) which will invoke the toString function of the passed parameter. If passed an invalid Function object it will throw and crash the V8 engine.","status":"published","published":"2022-05-01T15:25:15.734Z","modified":"2026-10-28T10:25:35.609428817Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high"}],"updated_at":"2026-11-02T15:44:23.655778Z"},{"id":"DEBIAN-CVE-2022-21227","description":"The package sqlite3 before 5.0.3 are vulnerable to Denial of Service (DoS) which will invoke the toString function of the passed parameter. If passed an invalid Function object it will throw and crash the V8 engine.","status":"published","published":"2022-05-01T16:15:08.197Z","modified":"2026-11-03T08:00:36.389386079Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T08:25:15.646766Z"},{"id":"GHSA-9qrh-qjmc-5w2p","title":"Denial-of-Service when binding invalid parameters in sqlite3","description":"Affected versions of sqlite3 will experience a fatal error when supplying a specific object in the parameter array. This error causes the application to crash and could not be caught. Users of `sqlite3` v5.0.0, v5.0.1 and v5.0.2 are affected by this. This issue is fixed in v5.0.3. All users are recommended to upgrade to v5.0.3 or later. Ensure there is sufficient sanitization in the parent application to protect against invalid values being supplied to binding parameters as a workaround.\n","status":"published","published":"2022-04-28T20:25:23Z","modified":"2025-01-14T10:26:57.660006Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-248"],"updated_at":"2026-11-02T15:46:44.225359Z"},{"id":"UBUNTU-CVE-2022-21227","description":"The package sqlite3 before 5.0.3 are vulnerable to Denial of Service (DoS) which will invoke the toString function of the passed parameter. If passed an invalid Function object it will throw and crash the V8 engine.","status":"published","published":"2022-05-01T16:15:00Z","modified":"2025-10-24T04:53:23Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:53:52.391598Z"}]}}
