Skip to content
OpenAdvisories
High · 7.3 CVE-2022-46908 EUVD-2022-49687GHSA-993x-6558-2xmj

SQLite through 3.40.0, when relying on --safe for execution of an untrusted CLI script, does not properly implement the azProhibitedFunctio…

Published Dec 12, 2022 · Updated Oct 14, 2026 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 sqlite3 3.40.0-2 —
Debian 13 sqlite3 3.40.0-2 —
Debian 12 sqlite3 3.40.0-2 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS sqlite3 3.37.2-2ubuntu0.3 USN-6566-1
Ubuntu 20.04 LTS sqlite3 3.31.1-4ubuntu0.6 USN-6566-1
ReleasePackageFixed inAdvisory
SLES 15 SP4 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2022:4628-1
SLES 15 SP3 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
SLES 15 SP2 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
SLES 15 SP1 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
SLES 12 SP5 sqlite3 3.39.3-9.26.1 SUSE-SU-2022:4603-1
Show 20 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 sqlite3 3.39.3-9.26.1 SUSE-SU-2023:2668-1
SLES 12 SP2 sqlite3 3.39.3-9.26.1 SUSE-SU-2023:2668-1
SLES for SAP 15 SP3 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
SLES for SAP 15 SP2 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
SLES for SAP 15 SP1 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
SLES for SAP 12 SP5 sqlite3 3.39.3-9.26.1 SUSE-SU-2022:4603-1
SLES for SAP 12 SP4 sqlite3 3.39.3-9.26.1 SUSE-SU-2023:2668-1
SLE Real Time 15 SP3 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2022:4628-1
SLE Micro 5.3 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2022:4628-1
SLE Micro 5.2 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2022:4628-1
SLE Micro 5.1 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2022:4628-1
SLE HPC 15 SP3 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
SLE HPC 15 SP2 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
SLE HPC 15 SP1 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
SUSE OpenStack Cloud Crowbar 9 sqlite3 3.39.3-9.26.1 SUSE-SU-2023:2668-1
SUSE OpenStack Cloud 9 sqlite3 3.39.3-9.26.1 SUSE-SU-2023:2668-1
SUSE Manager Server 4.2 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
SUSE Manager Proxy 4.2 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
SUSE Enterprise Storage 7.1 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
SUSE Enterprise Storage 7 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2023:1295-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed sqlite3 3.40.0-2.1 openSUSE-SU-2024:12574-1
openSUSE Leap 15.4 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2022:4628-1
openSUSE Leap 15.3 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2022:4628-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.3 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2022:4628-1
openSUSE Leap Micro 5.2 sqlite3 3.39.3-150000.3.20.1 SUSE-SU-2022:4628-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 lemon +7 3.40.0-1.amzn2023.0.5 ALAS2023-2025-971

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) sqlite 3.39.2-2 —

Advisories 20

References