# CVE-2022-46908: sqlite3: SQLite through 3.40.0, when relying on --safe for execution of an untrusted CLI script, does not properly implement t...

CVE-2022-46908 is fixed in 19 products on 1 platform, first by DEBIAN-CVE-2022-46908, released December 12, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-46908
- Priority: High
- CVSS: 7.3 (high)
- EPSS: 0.0045
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 11, 2022

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | lemon Ubuntu 22.04.1 LTS (jammy) | 3.37.2-2ubuntu0.3 | [lemon 3.37.2-2ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-lemon-3.37.2-2ubuntu0.3.md) | Dec 28, 2023 |
| Linux | lemon amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | lemon-debuginfo amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | libsqlite3-0 Ubuntu 22.04.1 LTS (jammy) | 3.37.2-2ubuntu0.3 | [libsqlite3-0 3.37.2-2ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libsqlite3-0-3.37.2-2ubuntu0.3.md) | Dec 28, 2023 |
| Linux | libsqlite3-tcl Ubuntu 22.04.1 LTS (jammy) | 3.37.2-2ubuntu0.3 | [libsqlite3-tcl 3.37.2-2ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libsqlite3-tcl-3.37.2-2ubuntu0.3.md) | Dec 28, 2023 |
| Linux | sqlite amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite-analyzer amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite-analyzer-debuginfo amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite-debuginfo amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite-debugsource amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite-devel amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite-doc amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite-libs amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite-libs-debuginfo amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite-tcl amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite-tcl-debuginfo amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite-tools amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite-tools-debuginfo amzn 2023 | 3.40.0-1.amzn2023.0.5 | [ALAS2023-2025-971](https://patchblox.com/security/data/fix/linux/alas2023-2025-971.md) | May 7, 2025 |
| Linux | sqlite3 Debian 12.15 (bookworm) | 3.40.0-2 | [DEBIAN-CVE-2022-46908](https://patchblox.com/security/data/fix/linux/debian-cve-2022-46908.md) | Dec 12, 2022 |
| Linux | sqlite3 Debian 13.5 (trixie) | 3.40.0-2 | [DEBIAN-CVE-2022-46908](https://patchblox.com/security/data/fix/linux/debian-cve-2022-46908.md) | Dec 12, 2022 |
| Linux | sqlite3 Debian 14 | 3.40.0-2 | [DEBIAN-CVE-2022-46908](https://patchblox.com/security/data/fix/linux/debian-cve-2022-46908.md) | Dec 12, 2022 |
| Linux | sqlite3 Ubuntu 22.04.1 LTS (jammy) | 3.37.2-2ubuntu0.3 | [sqlite3 3.37.2-2ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-sqlite3-3.37.2-2ubuntu0.3.md) | Dec 28, 2023 |
| Linux | sqlite3-tools Ubuntu 22.04.1 LTS (jammy) | 3.37.2-2ubuntu0.3 | [sqlite3-tools 3.37.2-2ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-sqlite3-tools-3.37.2-2ubuntu0.3.md) | Dec 28, 2023 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
