# CVE-2022-21227: Denial of Service (DoS)

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.21%, higher than 83% of CVEs (2026-12-01)
- Published: 2022-04-28T20:25:23.000Z
- Modified: 2026-06-17T04:25:48.500Z
- Also known as: GHSA-9qrh-qjmc-5w2p
- Weaknesses: CWE-248
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- sqlite3: from unspecified before 5.0.3
- sqlite3 (npm): from 5.0.0 before 5.0.3
- ghost sqlite3: before 5.0.3

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-SQLITE3-2388645> (third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2805470> (third-party-advisory, web)
- <https://github.com/TryGhost/node-sqlite3/commit/593c9d498be2510d286349134537e3bf89401c4a> (patch, 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)

## Sources

- CVE List: [CVE-2022-21227](https://www.cve.org/CVERecord?id=CVE-2022-21227), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-9qrh-qjmc-5w2p](https://github.com/advisories/GHSA-9qrh-qjmc-5w2p), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2022-21227](https://nvd.nist.gov/vuln/detail/CVE-2022-21227), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-21227 · Whole record: https://cve.day/CVE-2022-21227.json · Rebuilt by cve.day 2026-11-25T22:58:11.322Z
