Skip to content

CVE-2022-46908 SQLite through 3.40.0, when relying on --safe for execution of an untrusted CLI script, does not properly implement the azProhibitedFunctions protection mechanism, and instead allows UDF functions suc...

HighCVSS 7.3 EPSS 0.46%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebian

Description

SQLite through 3.40.0, when relying on --safe for execution of an untrusted CLI script, does not properly implement the azProhibitedFunctions protection mechanism, and instead allows UDF functions such as WRITEFILE.

Upgrade path

8 packages: 8 fixed.

PackageAffectedFixed inStatus
debian/sqlite3(Debian 12) < 3.40.0-2 3.40.0-2 Fixed
debian/sqlite3(Debian 13) < 3.40.0-2 3.40.0-2 Fixed
debian/sqlite3(Debian 14) < 3.40.0-2 3.40.0-2 Fixed
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5 Fixed
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5 Fixed
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5 Fixed
SQLite >= 3.37.0, < 3.40.1 3.40.1 Fixed
ubuntu/sqlite3(Ubuntu 22.04) < 3.37.2-2ubuntu0.3; = 3.35.5-1; = 3.36.0-2; = 3.37.2-2 +1 more 3.37.2-2ubuntu0.3 Fixed

Affected products

ProductAffected versionsFixed in
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
ubuntu/sqlite3(Ubuntu:22.04) < 3.37.2-2ubuntu0.3 3.37.2-2ubuntu0.3
SQLite >= 3.37.0, < 3.40.1 3.40.1
debian/sqlite3(Debian:12) < 3.40.0-2 3.40.0-2
debian/sqlite3(Debian:14) < 3.40.0-2 3.40.0-2
debian/sqlite3(Debian:13) < 3.40.0-2 3.40.0-2
ubuntu/sqlite3(Ubuntu:22.04) = 3.35.5-1 No fix listed
ubuntu/sqlite3(Ubuntu:22.04) = 3.36.0-2 No fix listed
ubuntu/sqlite3(Ubuntu:22.04) = 3.37.2-2 No fix listed
ubuntu/sqlite3(Ubuntu:22.04) = 3.37.2-2ubuntu0.1 No fix listed

References