CVE-2022-21227
JSON

7.5high

Denial of Service (DoS)

Severity
7.5high CVSS:3.1 by snyk
Exploit likelihood
2.21% (higher than 83% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-9qrh-qjmc-5w2p

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.

Affected

Product or packageVersionsReported by
sqlite3from unspecified before 5.0.3CVE List
sqlite3 (npm)from 5.0.0 before 5.0.3GitHub Advisory Database
ghost sqlite3before 5.0.3NVD

All scores

snyk7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

El paquete sqlite3 versiones anteriores a 5.0.3, es vulnerable a una Denegación de Servicio (DoS) que invocará la función toString del parámetro pasado. Si es pasado un objeto Function no válido, será lanzado y bloqueará el motor V8

References

Sources

SourceRecordLicence
CVE ListCVE-2022-21227 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-9qrh-qjmc-5w2p changed 2025-01-14CC-BY-4.0
NVDCVE-2022-21227 changed 2026-06-17Public domain