CVE-2022-46908 Security feature bypass in n/a

High 7.3 Published Updated

SQLite fails to enforce prohibited function restrictions in safe mode, allowing attackers to execute arbitrary file writes via UDFs.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-46908?

CVE-2022-46908 is a high-severity vulnerability in Sqlite Sqlite, published on 12 Dec 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2022-46908?

1 open source package ship an affected version, including sqlite. It affects 1 product.

PackageAffectedFixed in
sqlite BitnamiFrom 3.37.03.40.1
Linux distribution packages (33)
sqlite3 SUSE:Enterprise Storage 7All versions3.39.3-150000.3.20.1
sqlite3 SUSE:Enterprise Storage 7.1All versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise Micro 5.1All versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise Micro 5.2All versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise Micro 5.3All versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise Real Time 15 SP3All versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise Server 12 SP2-BCLAll versions3.39.3-9.26.1
sqlite3 SUSE:Linux Enterprise Server 12 SP4-ESPOSAll versions3.39.3-9.26.1
sqlite3 SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions3.39.3-9.26.1
sqlite3 SUSE:Linux Enterprise Server 12 SP5All versions3.39.3-9.26.1
sqlite3 SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions3.39.3-9.26.1
sqlite3 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions3.39.3-9.26.1
sqlite3 SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions3.39.3-150000.3.20.1
sqlite3 SUSE:Linux Enterprise Software Development Kit 12 SP5All versions3.39.3-9.26.1
sqlite3 SUSE:Manager Proxy 4.2All versions3.39.3-150000.3.20.1
sqlite3 SUSE:Manager Server 4.2All versions3.39.3-150000.3.20.1
sqlite3 SUSE:OpenStack Cloud 9All versions3.39.3-9.26.1
sqlite3 SUSE:OpenStack Cloud Crowbar 9All versions3.39.3-9.26.1
sqlite3 openSUSE:Leap 15.3All versions3.39.3-150000.3.20.1
sqlite3 openSUSE:Leap 15.4All versions3.39.3-150000.3.20.1
sqlite3 openSUSE:Leap Micro 5.2All versions3.39.3-150000.3.20.1
sqlite3 openSUSE:Leap Micro 5.3All versions3.39.3-150000.3.20.1
sqlite3 openSUSE:TumbleweedAll versions3.40.0-2.1

Products include Sqlite Sqlite.

How do I fix CVE-2022-46908?

Upgrade sqlite to 3.40.1 or later.

Is CVE-2022-46908 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-46908 exists.

All Sqlite Sqlite vulnerabilities

Sources

Also known as AZL-11586, BELL-CVE-2022-46908, BIT-sqlite-2022-46908, DEBIAN-CVE-2022-46908, GHSA-993x-6558-2xmj, MGASA-2023-0094 and 8 more.

Is CVE-2022-46908 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free