CVE-2022-21227
mediumpriority · track · 31EPSS 0.022 · 83 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (6)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-9qrh-qjmc-5w2pDenial-of-Service when binding invalid parameters in sqlite32022-04-28ghsa · osvUS
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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2022-21227cnnvd
- https://cxsecurity.com/cveshow/CVE-2022-21227/cnnvd
- https://github.com/TryGhost/node-sqlite3/commit/593c9d498be2510d286349134537e3bf89401c4acnnvd
- https://github.com/TryGhost/node-sqlite3/releases/tag/v5.0.7Patchcnnvd
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2805470cnnvd
- https://snyk.io/vuln/SNYK-JS-SQLITE3-2388645cnnvd
- https://github.com/TryGhost/node-sqlite3/commit/593c9d498be2510d286349134537e3bf89401c4aenisa_euvd
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2805470enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan