CVE-2022-21227Ghost Sqlite3
High 7.5 No auth needed
Follow: this CVE · Ghost · Ghost Sqlite3 We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 81
- Auth required
- No
- Published
- May 1, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Sqlite3.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | sqlite3 |
≥ 5.0.0 < 5.0.3 |
5.0.3 |
npm install sqlite3@5.0.3 |
Per OSV / GitHub Advisories (GHSA-9qrh-qjmc-5w2p). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ghost | sqlite3 | < 5.0.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- snyk.io Third Party Advisory
- snyk.io Third Party Advisory