{"id":"CVE-2022-21227","summary":"Denial of Service (DoS)","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-08-12T12:59:29.721919Z","published":"2022-05-01T15:25:15.734Z","related":["SNYK-JAVA-ORGWEBJARSNPM-2805470","SNYK-JS-SQLITE3-2388645"],"database_specific":{"cna_assigner":"snyk","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21227.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21227.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21227"},{"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":{"cpe":"cpe:2.3:a:ghost:sqlite3:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"5.0.3"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v5.0.2","v5.0.1","v5.0.0","v4.2.0","v4.1.1","v4.1.0","v4.0.9","v4.0.8","v4.0.6","v4.0.5","v4.0.3","v4.0.2","v4.0.1","v4.0.0","v3.1.13","v3.1.12","v3.1.11","v3.1.10","v3.1.8","v3.1.7","v3.1.6","v3.1.5","v3.1.4","v3.1.3","v3.1.2","v3.1.1","v3.1.0","v3.0.10","v3.0.9","v3.0.8","v3.0.7","v3.0.6","v3.0.5","v3.0.4","v3.0.3","v3.0.2","v3.0.1","v3.0.0","v2.2.6","v2.2.5","v2.2.4","v2.2.3","v2.2.1","v2.2.0","v2.1.19","v2.1.18","v2.1.7","v2.1.7-alpha","v2.1.5","v2.1.4","v2.1.3","v2.1.1","v2.1.0","v2.0.17","v2.0.16","v2.0.15","v2.0.14","2.0.13","2.0.12","2.0.11","2.0.10","2.0.9","2.0.8","2.0.7","2.0.6","2.0.5","2.0.4","2.0.3","2.0.1","2.0.0","1.0.3","1.0.2","1.0.1","1.0.0","0.0.6","0.0.3","0.0.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21227.json","vanir_signatures_modified":"2026-08-12T12:59:29Z","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["111058817561569940776130285025941133729","155609221470918782139244390542808340717","118592821369456292669284180599121425636","1172560625900145031071377345356862890"],"threshold":0.9},"id":"CVE-2022-21227-7777b20f","signature_type":"Line","signature_version":"v1","source":"https://github.com/tryghost/node-sqlite3/commit/593c9d498be2510d286349134537e3bf89401c4a","target":{"file":"src/statement.cc"}},{"signature_version":"v1","source":"https://github.com/tryghost/node-sqlite3/commit/593c9d498be2510d286349134537e3bf89401c4a","target":{"file":"src/statement.cc","function":"Statement::BindParameter"},"deprecated":false,"digest":{"function_hash":"39003862121650051753977202896462857399","length":1434},"id":"CVE-2022-21227-e1875b1a","signature_type":"Function"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P"}]}