cbcvebase.
CVE-2022-35737
published 2022-08-03

CVE-2022-35737: 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.

PriorityP349high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
17.98%
96.9th percentile
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

23 ranges
VendorProductVersion rangeFixed in
debiansqlite3< sqlite3 3.39.2-1 (bookworm)sqlite3 3.39.2-1 (bookworm)
ghostsqlite3>= 0 < 3.39.2-13.39.2-1
ghostsqlite3>= 0 < 3.39.2-13.39.2-1
ghostsqlite3>= 0 < 3.39.2-13.39.2-1
msrccbl_mariner_1.0_arm
msrccbl_mariner_1.0_x64
msrccbl_mariner_2.0_arm
msrccbl_mariner_2.0_x64
msrcwindows_10_version_1809_for_32-bit_systems
msrcwindows_10_version_1809_for_arm64-based_systems
msrcwindows_10_version_1809_for_x64-based_systems
msrcwindows_10_version_21h2_for_32-bit_systems
msrcwindows_10_version_21h2_for_arm64-based_systems
msrcwindows_10_version_21h2_for_x64-based_systems
msrcwindows_10_version_22h2_for_32-bit_systems
msrcwindows_10_version_22h2_for_arm64-based_systems
msrcwindows_10_version_22h2_for_x64-based_systems
msrcwindows_server_2019
msrcwindows_server_2022
splunkuniversal_forwarder
splunkuniversal_forwarder>= 8.2.0 < 8.2.128.2.12
splunkuniversal_forwarder>= 9.0.0 < 9.0.69.0.6
sqlitesqlite>= 1.0.12 < 3.39.23.39.2

Detection & IOCsextracted from sources · hover to see the quote

commandsqlite3_snprintf(2*STR_LEN + 3, dst, "'%q'", src)
commandsqlite3_snprintf(256, dst, "'%!q'", src)
bytes
src[0] = '\xc0'; memset(src+1, '\x80', 0xffffffff)
  • ·Arbitrary code execution is only confirmed when SQLite is compiled WITHOUT stack canaries. When stack canaries are present, only denial-of-service (crash) is confirmed. Assess the build configuration of the target SQLite library before estimating impact.
  • ·The vulnerability was fixed in SQLite 3.39.2 (released July 21, 2022). Versions 1.0.12 through 3.39.1 are affected. Confirm the exact linked/bundled SQLite version in the application, as many applications ship their own copy.

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
osv7.5HIGH
vendor_debian7.5LOW
vendor_msrc7.5HIGH
vendor_oracle7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.