{"id":"CVE-2022-21227","details":"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.","aliases":["GHSA-9qrh-qjmc-5w2p"],"modified":"2026-04-11T18:45:04.143599Z","published":"2022-05-01T16:15:08.197Z","related":["SNYK-JAVA-ORGWEBJARSNPM-2805470","SNYK-JS-SQLITE3-2388645"],"references":[{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2805470"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-JS-SQLITE3-2388645"},{"type":"FIX","url":"https://github.com/TryGhost/node-sqlite3/commit/593c9d498be2510d286349134537e3bf89401c4a"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tryghost/node-sqlite3","events":[{"introduced":"0"},{"fixed":"573784b60dfbca8d3da6b110f11689b78b1450db"},{"fixed":"593c9d498be2510d286349134537e3bf89401c4a"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"5.0.3"}]}}],"versions":["0.0.2","0.0.3","0.0.6","1.0.0","1.0.1","1.0.2","1.0.3","2.0.0","2.0.1","2.0.10","2.0.11","2.0.12","2.0.13","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","v2.0.14","v2.0.15","v2.0.16","v2.0.17","v2.1.0","v2.1.1","v2.1.18","v2.1.19","v2.1.3","v2.1.4","v2.1.5","v2.1.7","v2.1.7-alpha","v2.2.0","v2.2.1","v2.2.3","v2.2.4","v2.2.5","v2.2.6","v3.0.0","v3.0.1","v3.0.10","v3.0.2","v3.0.3","v3.0.4","v3.0.5","v3.0.6","v3.0.7","v3.0.8","v3.0.9","v3.1.0","v3.1.1","v3.1.10","v3.1.11","v3.1.12","v3.1.13","v3.1.2","v3.1.3","v3.1.4","v3.1.5","v3.1.6","v3.1.7","v3.1.8","v4.0.0","v4.0.1","v4.0.2","v4.0.3","v4.0.5","v4.0.6","v4.0.8","v4.0.9","v4.1.0","v4.1.1","v4.2.0","v5.0.0","v5.0.1","v5.0.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21227.json","vanir_signatures":[{"signature_type":"Line","source":"https://github.com/tryghost/node-sqlite3/commit/593c9d498be2510d286349134537e3bf89401c4a","digest":{"threshold":0.9,"line_hashes":["111058817561569940776130285025941133729","155609221470918782139244390542808340717","118592821369456292669284180599121425636","1172560625900145031071377345356862890"]},"deprecated":false,"signature_version":"v1","id":"CVE-2022-21227-7777b20f","target":{"file":"src/statement.cc"}},{"signature_type":"Function","source":"https://github.com/tryghost/node-sqlite3/commit/593c9d498be2510d286349134537e3bf89401c4a","digest":{"function_hash":"39003862121650051753977202896462857399","length":1434},"deprecated":false,"signature_version":"v1","id":"CVE-2022-21227-e1875b1a","target":{"function":"Statement::BindParameter","file":"src/statement.cc"}}],"vanir_signatures_modified":"2026-04-11T18:45:04Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}