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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| libsqlite3-sys (crates.io) | before 0.25.1, from 0.0.0-0 before 0.25.1 | GitHub Advisory Database, RustSec Advisory Database |
| sqlite sqlite | from 1.0.12 before 3.39.2 | NVD |
| netapp ontap_select_deploy_administration_utility | Not specified | NVD |
| splunk universal_forwarder | from 8.2.0 before 8.2.12, from 9.0.0 before 9.0.6, 9.1.0 | NVD |
| sqlite (Bitnami) | from 1.0.12 before 3.39.2 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| RustSec Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
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.html | advisory, vendor-advisory, web | |
| https://kb.cert.org/vuls/id/720344 | advisory, broken-link, third-party-advisory, us-government-resource, web | |
| https://sqlite.org/releaselog/3_39_2.html | advisory, 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-40 | advisory, third-party-advisory, vendor-advisory, web | |
| https://cert-portal.siemens.com/productcert/html/ssa-398330.html | ||
| https://nvd.nist.gov/vuln/detail/CVE-2022-35737 | advisory, web | |
| https://blog.trailofbits.com/2022/10/25/sqlite-vulnerability-july-2022-library-api | web | |
| https://github.com/rusqlite/rusqlite | package | |
| https://rustsec.org/advisories/RUSTSEC-2022-0090.html | advisory, web | |
| https://security.netapp.com/advisory/ntap-20220915-0009 | web | |
| https://crates.io/crates/libsqlite3-sys | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-35737 changed 2026-10-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jw36-hf63-69r9 changed 2024-03-27 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2022-0090 changed 2023-12-06 | CC0-1.0 |
| NVD | CVE-2022-35737 changed 2026-10-14 | Public domain |
| Bitnami Vulnerability Database | BIT-SQLITE-2022-35737 changed 2026-09-08 | Apache-2.0 |