CVE-2022-21227
HIGH 7.5CVSS 3.1Denial-of-Service when binding invalid parameters in sqlite3
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.
- Published
- 1 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-248
- Also known as
- GHSA-9qrh-qjmc-5w2p
- Sources
- NVDJSONOSV GHSA-9qrh-qjmc-5w2pJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ghost | sqlite3cpe:2.3:a:ghost:sqlite3:*:*:*:*:*:node.js:*:* |
< 5.0.3 | 5.0.3 |
| OSV | npm | sqlite3 | >= 5.0.0, < 5.0.3 | 5.0.3 |
References
- https://github.com/TryGhost/node-sqlite3/commit/593c9d498be2510d286349134537e3bf89401c4a · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2805470 · Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-SQLITE3-2388645 · Third Party Advisory, WEB
- https://github.com/TryGhost/node-sqlite3/security/advisories/GHSA-9qrh-qjmc-5w2p · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-21227 · ADVISORY
- https://github.com/TryGhost/node-sqlite3/issues/1440 · WEB
- https://github.com/TryGhost/node-sqlite3/issues/1449 · WEB
- https://github.com/TryGhost/node-sqlite3 · PACKAGE
- https://security.snyk.io/vuln/SNYK-JS-SQLITE3-2388645 · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 May 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 28 Apr 2022)