CVE-2022-35737
JSON

7.5high

`libsqlite3-sys` via C SQLite improperly validates array index

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
19.3% (higher than 98% of CVEs)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-jw36-hf63-69r9BIT-SQLITE-2022-35737RUSTSEC-2022-0090

Description

SQLite 1.0.12 through 3.39.x before 3.39.2 sometimes allows an array-bounds overflow if billions of bytes are used in a string argument to a C API.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
libsqlite3-sys (crates.io)before 0.25.1, from 0.0.0-0 before 0.25.1GitHub Advisory Database, RustSec Advisory Database
sqlite sqlitefrom 1.0.12 before 3.39.2NVD
netapp ontap_select_deploy_administration_utilityNot specifiedNVD
splunk universal_forwarderfrom 8.2.0 before 8.2.12, from 9.0.0 before 9.0.6, 9.1.0NVD
sqlite (Bitnami)from 1.0.12 before 3.39.2Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
RustSec Advisory Database7.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
Bitnami Vulnerability Databasehigh rating

Classification

CWE-129

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

SQLite 1.0.12 through 3.39.x before 3.39.2 sometimes allows an array-bounds overflow if billions of bytes are used in a string argument to a C API.

RustSec Advisory Database

It was sometimes possible for SQLite versions >= 1.0.12, < 3.39.2 to allow an array-bounds overflow when large string were input into SQLite's printf function.

As libsqlite3-sys bundles SQLite, it is susceptible to the vulnerability. libsqlite3-sys was updated to bundle the patched version of SQLite here.

NVD (es)

SQLite versiones 1.0.12 hasta 3.39.x anteriores a 3.39.2, permite a veces un desbordamiento de límites de matriz si son usados miles de millones de bytes en un argumento de cadena para una API de C

References

https://www.sqlite.org/cves.htmladvisory, vendor-advisory, web
https://kb.cert.org/vuls/id/720344advisory, broken-link, third-party-advisory, us-government-resource, web
https://sqlite.org/releaselog/3_39_2.htmladvisory, release-notes, vendor-advisory, web
https://security.netapp.com/advisory/ntap-20220915-0009/advisory, third-party-advisory
https://blog.trailofbits.com/2022/10/25/sqlite-vulnerability-july-2022-library-api/advisory, exploit, third-party-advisory
https://security.gentoo.org/glsa/202210-40advisory, third-party-advisory, vendor-advisory, web
https://cert-portal.siemens.com/productcert/html/ssa-398330.html
https://nvd.nist.gov/vuln/detail/CVE-2022-35737advisory, web
https://blog.trailofbits.com/2022/10/25/sqlite-vulnerability-july-2022-library-apiweb
https://github.com/rusqlite/rusqlitepackage
https://rustsec.org/advisories/RUSTSEC-2022-0090.htmladvisory, web
https://security.netapp.com/advisory/ntap-20220915-0009web

Sources

SourceRecordLicence
CVE ListCVE-2022-35737 changed 2026-10-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-jw36-hf63-69r9 changed 2024-03-27CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2022-0090 changed 2023-12-06CC0-1.0
NVDCVE-2022-35737 changed 2026-10-14Public domain
Bitnami Vulnerability DatabaseBIT-SQLITE-2022-35737 changed 2026-09-08Apache-2.0