CVE-2022-35737 in the critical feed json
`libsqlite3-sys` via C SQLite improperly validates array index
published 2022-08-03 4 y ago modified 2026-10-14 25 d ago also BIT-sqlite-2022-35737 , EUVD-2022-6580 , GHSA-jw36-hf63-69r9 , RUSTSEC-2022-0090
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 23.6%
- EPSS 23.6% chance of exploitation in 30 days, percentile 97%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io libsqlite3-sys 0.25.1
- bitnami sqlite 3.39.2
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.5
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
- sqlite3 Debian 14, Debian 13, Debian 12 3.39.2-1
debian advisories DEBIAN-CVE-2022-35737
- sqlite3 Ubuntu 18.04 LTS 3.22.0-1ubuntu0.7
- sqlite3 Ubuntu 20.04 LTS 3.31.1-4ubuntu0.5
- sqlite3 Ubuntu 22.04 LTS 3.37.2-2ubuntu0.1
- sqlite3 Ubuntu Pro 14.04 LTS 3.8.2-1ubuntu2.2+esm3
- sqlite3 Ubuntu Pro 16.04 LTS 3.11.0-1ubuntu1.5+esm2
ubuntu advisories UBUNTU-CVE-2022-35737
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- sqlite RHEL 9 3.34.1-6.el9_1
- sqlite-libs RHEL 9 3.34.1-6.el9_1
- sqlite RHEL 8 3.26.0-17.el8_7
- lemon RHEL 8 3.26.0-17.el8_7
- sqlite-libs RHEL 8 3.26.0-17.el8_7
- sqlite RHEL 8.6 EUS 3.26.0-16.el8_6.1
- lemon RHEL 8.6 EUS 3.26.0-16.el8_6.1
- sqlite-libs RHEL 8.6 EUS 3.26.0-16.el8_6.1
red hat advisories RHSA-2024:0425RHSA-2023:0339RHSA-2023:0110
- sqlite3 SLES 15 SP2-BCL, SLES 15 SP1-BCL, SLE Module for Basesystem 15 SP4 +24 more 3.39.3-150000.3.17.1
- sqlite3 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +6 more 3.39.3-9.23.1
suse advisories SUSE-SU-2022:3307-2SUSE-SU-2022:3307-1SUSE-SU-2022:3401-1
- sqlite3 openSUSE Tumbleweed 3.39.2-1.1
opensuse advisories openSUSE-SU-2024:12210-1
- sqlite AlmaLinux 9 3.34.1-6.el9_1
- sqlite-libs AlmaLinux 9 3.34.1-6.el9_1
- sqlite AlmaLinux 8 3.26.0-17.el8_7
- lemon AlmaLinux 8 3.26.0-17.el8_7
- sqlite-libs AlmaLinux 8 3.26.0-17.el8_7
almalinux advisories ALSA-2023:0339ALSA-2023:0110
- sqlite Rocky Linux 9 3.34.1-6.el9_1
- sqlite Rocky Linux 8 3.26.0-17.el8_7
rocky linux advisories RLSA-2023:0339RLSA-2023:0110
- qt5-qtwebengine Alpine 3.16 5.15.3_git20220505-r4
- qt5-qtwebengine Alpine 3.23, Alpine 3.22, Alpine 3.21 +4 more 5.15.11-r3
alpine advisories ALPINE-CVE-2022-35737
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-35737 updated cvss 5.9
sqlite: an array-bounds overflow if billions of bytes are used in a string argument to a C API
-
Red Hat Enterprise Linux 7 lemon, sqlite, sqlite-tclaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux AppStream (v. 8) lemon 3.26.0-17.el8_7fixed: vendor fix RHSA-2023:0110
-
Red Hat Enterprise Linux AppStream (v. 9) sqlite 3.34.1-6.el9_1fixed: vendor fix RHSA-2023:0339
-
Red Hat Enterprise Linux AppStream EUS (v.8.6) lemon 3.26.0-16.el8_6.1fixed: vendor fix RHSA-2024:0425
-
Red Hat Enterprise Linux BaseOS (v. 8) sqlite 3.26.0-17.el8_7, sqlite-libs 3.26.0-17.el8_7fixed: vendor fix RHSA-2023:0110
-
Red Hat Enterprise Linux BaseOS (v. 9) sqlite 3.34.1-6.el9_1, sqlite-libs 3.34.1-6.el9_1fixed: vendor fix RHSA-2023:0339
-
Red Hat Enterprise Linux BaseOS EUS (v.8.6) sqlite 3.26.0-16.el8_6.1, sqlite-libs 3.26.0-16.el8_6.1fixed: vendor fix RHSA-2024:0425
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-26-141-03 updated cvss 7.5
ABB B&R Automation Studio
-
ABB B&R Automation Studio <6.5affected: vendor fix, mitigation
-
ABB B&R Automation Studio 6.5fixed
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
cisa ICSA-23-348-10 updated cvss 7.5
Siemens SIMATIC S7-1500
-
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.0, < 3.1.5affected: fixed in V3.1.5, mitigation support.industry.siemens.com
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 8 mo ago
Exploit prediction
23.57% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- blog.trailofbits.com https://blog.trailofbits.com/2022/10/25/sqlite-vulnerability-july-2022-library-api/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | libsqlite3-sys | <0.25.1 >=0.0.0-0, <0.25.1 |
0.25.1 |
| bitnami | sqlite | >=1.0.12, <3.39.2 |
3.39.2 |
Affected products
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP
Classification
- Weakness
-
- CWE-129 Improper Validation of Array Index
References
-
blog.trailofbits.com
/2022/10/25/sqlite-vulnerability-july-2022-library-api/
exploit, third-party-advisory, advisory
-
security.gentoo.org
/glsa/202210-40
vendor-advisory, web, third-party-advisory, advisory
-
sqlite.org
/cves.html
web, vendor-advisory, advisory
-
sqlite.org
/releaselog/3_39_2.html
web, release-notes, vendor-advisory, advisory
-
kb.cert.org
/vuls/id/720344
web, broken-link, third-party-advisory, us-government-resource, advisory
-
security.netapp.com
/advisory/ntap-20220915-0009/
third-party-advisory, advisory
- cert-portal.siemens.com /productcert/html/ssa-398330.html
-
nvd.nist.gov
/vuln/detail/CVE-2022-35737
advisory, web
-
blog.trailofbits.com
/2022/10/25/sqlite-vulnerability-july-2022-library-api
web
-
github.com
/rusqlite/rusqlite
package
-
rustsec.org
/advisories/RUSTSEC-2022-0090.html
web, advisory
-
security.netapp.com
/advisory/ntap-20220915-0009
web
-
crates.io
/crates/libsqlite3-sys
package
Sources
- CVE List CVE-2022-35737
- GitHub Advisory GHSA-jw36-hf63-69r9
- NVD CVE-2022-35737
- OSV BIT-sqlite-2022-35737
- OSV RUSTSEC-2022-0090
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.