CVE-2022-46908
SQLite through 3.40.0, when relying on --safe for execution of an untrusted CLI script, does not...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- Low
Exploit likelihood
What each source reports
NVD Score used
7.3
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.
- Record
CVE-2022-46908- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L - Updated
- 2026-11-02
CVE List
7.3
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.
- Record
CVE-2022-46908- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L - Updated
- 2026-11-02
EUVDEUVD-2022-49687
7.3
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.
- Record
EUVD-2022-49687- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-993x-6558-2xmj
9.8
SQLite through 3.40.0, when relying on --safe for execution of an untrusted CLI script, does not...
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.
- Record
GHSA-993x-6558-2xmj- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVAZL-11586
7.3
CVE-2022-46908 affecting package sqlite for versions less than 3.39.2-2
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.
- Record
AZL-11586- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L - Updated
- 2026-11-02
OSVBELL-CVE-2022-46908
7.3
- Record
BELL-CVE-2022-46908- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L - Updated
- 2026-11-02
Show 13 moreShow less
OSV
7.3
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.
- Record
CVE-2022-46908- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L - Updated
- 2026-11-02
OSVOESA-2022-2146
9.8
sqlite security update
Security Fix(es):
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.(CVE-2022-46908)
- Record
OESA-2022-2146- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2023-1219
9.8
sqlite security update
SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine. SQLite is the most used database engine in the world. SQLite is built into all mobile phones and most computers and comes bundled inside countless other applications that people use every day.It also include lemon and sqlite3_analyzer and tcl tools.
Security Fix(es):
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.(CVE-2022-46908)
- Record
OESA-2023-1219- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-46908
7.3
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.
- Record
UBUNTU-CVE-2022-46908- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L - Updated
- 2026-11-02
OSVBIT-sqlite-2022-46908 No score
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.
- Record
BIT-sqlite-2022-46908- Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-46908 No score
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.
- Record
DEBIAN-CVE-2022-46908- Updated
- 2026-11-03
OSVMGASA-2023-0094 No score
Updated sqlite3 packages fix security vulnerability
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. (CVE-2022-46908)
- Record
MGASA-2023-0094- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12574-1 No score
libsqlite3-0-3.40.0-2.1 on GA media
These are all security issues fixed in the libsqlite3-0-3.40.0-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12574-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:4603-1 No score
Security update for sqlite3
This update for sqlite3 fixes the following issues:
- CVE-2022-46908: Properly implement the azProhibitedFunctions protection mechanism, when relying on --safe for execution of an untrusted CLI script (bsc#1206337).
- Record
SUSE-SU-2022:4603-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:4628-1 No score
Security update for sqlite3
This update for sqlite3 fixes the following issues:
- CVE-2022-46908: Properly implement the azProhibitedFunctions protection mechanism, when relying on --safe for execution of an untrusted CLI script (bsc#1206337).
- Record
SUSE-SU-2022:4628-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:1295-1 No score
Security update for sqlite3
This update for sqlite3 fixes the following issues:
- CVE-2022-46908: Properly implement the azProhibitedFunctions protection mechanism, when relying on --safe for execution of an untrusted CLI script (bsc#1206337).
- Record
SUSE-SU-2023:1295-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:2668-1 No score
Security update for sqlite3
This update for sqlite3 fixes the following issues:
- CVE-2022-46908: Properly implement the azProhibitedFunctions protection mechanism, when relying on --safe for execution of an untrusted CLI script (bsc#1206337).
- Record
SUSE-SU-2023:2668-1- Updated
- 2026-11-02
OSVUSN-6566-1 No score
sqlite3 vulnerabilities
It was discovered that SQLite incorrectly handled certain protection mechanisms when using a CLI script with the --safe option, contrary to expectations. This issue only affected Ubuntu 22.04 LTS. (CVE-2022-46908)
It was discovered that SQLite incorrectly handled certain memory operations in the sessions extension. A remote attacker could possibly use this issue to cause SQLite to crash, resulting in a denial of service. (CVE-2023-7104)
- Record
USN-6566-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
sqliteAzure Linux:2 |
before 3.39.2-2 | 3.39.2-2 |
sqliteAlpaquita:23 |
3.40.0-r0 up to 3.40.1-r0 | 3.40.1-r0 |
sqliteBellSoft Hardened Containers:23 |
3.40.0-r0 up to 3.40.1-r0 | 3.40.1-r0 |
sqliteBitnami |
3.37.0 up to 3.40.1 | 3.40.1 |
sqlite3Debian:12 |
before 3.40.0-2 | 3.40.0-2 |
sqlite3Debian:13 |
before 3.40.0-2 | 3.40.0-2 |
sqlite3Debian:14 |
before 3.40.0-2 | 3.40.0-2 |
sqlite3Mageia:8 |
before 3.39.2-1.1.mga8 | 3.39.2-1.1.mga8 |
sqliteopenEuler:22.03-LTS |
before 3.37.2-4.oe2203 | 3.37.2-4.oe2203 |
sqliteopenEuler:22.03-LTS-SP1 |
before 3.37.2-5.oe2203sp1 | 3.37.2-5.oe2203sp1 |
Show 36 moreShow less
| Package | Affected | Fixed |
|---|---|---|
sqlite3SUSE:Linux Enterprise Software Development Kit 12 SP5 |
before 3.39.3-9.26.1 | 3.39.3-9.26.1 |
sqlite3SUSE:Linux Enterprise Server 12 SP5 |
before 3.39.3-9.26.1 | 3.39.3-9.26.1 |
sqlite3SUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 3.39.3-9.26.1 | 3.39.3-9.26.1 |
sqlite3SUSE:Linux Enterprise Micro 5.3 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise Module for Basesystem 15 SP4 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise Real Time 15 SP3 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise Micro 5.1 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise Micro 5.2 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3openSUSE:Leap Micro 5.2 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3openSUSE:Leap Micro 5.3 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3openSUSE:Leap 15.3 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3openSUSE:Leap 15.4 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise Server 15 SP1-LTSS |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise Server 15 SP2-LTSS |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise Server 15 SP3-LTSS |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise Server for SAP Applications 15 SP1 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise Server for SAP Applications 15 SP2 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Linux Enterprise Server for SAP Applications 15 SP3 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Manager Proxy 4.2 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Manager Server 4.2 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Enterprise Storage 7 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:Enterprise Storage 7.1 |
before 3.39.3-150000.3.20.1 | 3.39.3-150000.3.20.1 |
sqlite3SUSE:OpenStack Cloud 9 |
before 3.39.3-9.26.1 | 3.39.3-9.26.1 |
sqlite3SUSE:OpenStack Cloud Crowbar 9 |
before 3.39.3-9.26.1 | 3.39.3-9.26.1 |
sqlite3SUSE:Linux Enterprise Server for SAP Applications 12 SP4 |
before 3.39.3-9.26.1 | 3.39.3-9.26.1 |
sqlite3SUSE:Linux Enterprise Server 12 SP2-BCL |
before 3.39.3-9.26.1 | 3.39.3-9.26.1 |
sqlite3SUSE:Linux Enterprise Server 12 SP4-ESPOS |
before 3.39.3-9.26.1 | 3.39.3-9.26.1 |
sqlite3SUSE:Linux Enterprise Server 12 SP4-LTSS |
before 3.39.3-9.26.1 | 3.39.3-9.26.1 |
sqlite3Ubuntu:22.04:LTS |
before 3.37.2-2ubuntu0.3, plus listed versions 3.35.5-13.36.0-23.37.2-23.37.2-2ubuntu0.1 |
3.37.2-2ubuntu0.3 |
sqlite3Ubuntu:20.04:LTS From an advisory covering 2 CVEs |
before 3.31.1-4ubuntu0.6, plus listed versions 3.29.0-23.30.1-13.30.1-1ubuntu13.31.1-1ubuntu13.31.1-3 Show 6 moreShow less3.31.1-43.31.1-4ubuntu0.13.31.1-4ubuntu0.23.31.1-4ubuntu0.33.31.1-4ubuntu0.43.31.1-4ubuntu0.5 |
3.31.1-4ubuntu0.6 |
sqlite3Ubuntu:22.04:LTS From an advisory covering 2 CVEs |
before 3.37.2-2ubuntu0.3, plus listed versions 3.35.5-13.36.0-23.37.2-23.37.2-2ubuntu0.1 |
3.37.2-2ubuntu0.3 |
sqlite3openSUSE:Tumbleweed |
before 3.40.0-2.1 | 3.40.0-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-46908 is a high vulnerability (CVSS 7.3) in Sqlite, published December 12, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.45%, the 38th percentile. Fixed in sqlite 3.39.2-2.
References
news.ycombinator.com/item?id=33948588
sqlite.org/forum/forumpost/07beac8056151b2f
sqlite.org/src/info/cefc032473ac5ad2
security.netapp.com/advisory/ntap-20230203-0005
security.gentoo.org/glsa/202311-03
cert-portal.siemens.com/productcert/html/ssa-398330.html
Show 22 moreShow less
cert-portal.siemens.com/productcert/html/ssa-556635.html
nvd.nist.gov/vuln/detail/CVE-2022-46908
github.com/advisories/GHSA-993x-6558-2xmj
docs.bell-sw.com/security/cves/CVE-2022-46908
github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46908.json
security-tracker.debian.org/tracker/CVE-2022-46908
advisories.mageia.org/MGASA-2023-0094.html
bugs.mageia.org/show_bug.cgi?id=31312
lists.suse.com/pipermail/sle-security-updates/2022-December/013303.html
lists.opensuse.org/archives/list/[email protected]/thread/XNUCFJDJQRYX6KHGSM7ODVW7QJMN7GP5
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-2146
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1219
suse.com/support/update/announcement/2022/suse-su-20224603-1
bugzilla.suse.com/1206337
suse.com/security/cve/CVE-2022-46908
suse.com/support/update/announcement/2022/suse-su-20224628-1
suse.com/support/update/announcement/2023/suse-su-20231295-1
suse.com/support/update/announcement/2023/suse-su-20232668-1
ubuntu.com/security/CVE-2022-46908
ubuntu.com/security/notices/USN-6566-1
cve.org/CVERecord?id=CVE-2022-46908
ubuntu.com/security/CVE-2023-7104