CVE-2022-46908: SQL Injection

Published Dec 12, 2022
·
Updated

Last updated 24 July 2024

Other sources

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.

Affected Software

6 affected componentsFixes available
SQLite SQLite>=3.37.0<3.40.1
debian/sqlite3<3.40.0-2
3.40.0-2
debian/sqlite3<3.40.0-2
3.40.0-2
debian/sqlite3<3.40.0-2
3.40.0-2
debian/sqlite3
3.40.0-2
ubuntu/sqlite3<3.37.2-2ubuntu0.3
3.37.2-2ubuntu0.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/sqlite3 to a version that resolves this vulnerability.

    Fixed in 3.40.0-2
  2. Upgrade

    Upgrade ubuntu/sqlite3 to a version that resolves this vulnerability.

    Fixed in 3.37.2-2ubuntu0.3

Event History

Dec 12, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
Description
Data Sourced
12:00 AM
RemedySeverityAffected Software
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Data Sourced
via OSV·06:15 AM
DescriptionSeverityAffected Software
Nov 24, 2023
Updated
via NVD·02:15 PM
Affected Software
Aug 3, 2024
Data Sourced
via MITRE·02:47 PM
Description
Nov 21, 2024
Data Sourced
via NVD·07:31 AM
RemedyDescriptionSeverityAffected Software
Updated
via NVD·07:31 AM
RemedyAffected Software
May 5, 2025
Updated
via NVD·04:15 PM
SeverityAffected Software
Oct 14, 2026
Updated
via NVD·07:16 PM
Affected Software

Frequently Asked Questions

1

What is CVE-2022-46908?

CVE-2022-46908 is a vulnerability in SQLite through version 3.40.0 that allows UDF functions such as WRITEFILE when relying on --safe for execution of an untrusted CLI script.

2

What is the severity of CVE-2022-46908?

The severity of CVE-2022-46908 is high, with a severity rating of 7.3.

3

How does CVE-2022-46908 affect SQLite?

CVE-2022-46908 affects SQLite through version 3.40.0, specifically when relying on --safe for execution of an untrusted CLI script.

4

What is the recommended solution for CVE-2022-46908?

To mitigate the vulnerability, it is recommended to update SQLite to version 3.40.1 or later.

5

Where can I find more information about CVE-2022-46908?

More information about CVE-2022-46908 can be found at the following references: [link1], [link2], [link3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203