CVE-2022-46908
7.3high
SQLite through 3.40.0, when relying on --safe for execution of an untrusted CLI script, does not properly implement the azProhibitedFunctio…
- Severity
- 7.3high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.41% (higher than 27% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- BIT-SQLITE-2022-46908
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| sqlite sqlite | from 3.37.0 before 3.40.1 | NVD |
| sqlite (Bitnami) | from 3.37.0 before 3.40.1 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| NVD | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
SQLite hasta 3.40.0, cuando depende de --safe para la ejecución de un script CLI que no es de confianza, no implementa correctamente el mecanismo de protección azProhibitedFunctions y, en su lugar, permite funciones UDF como WRITEFILE.
References
| https://news.ycombinator.com/item?id=33948588 | advisory, exploit, issue-tracking, third-party-advisory | |
| https://sqlite.org/forum/forumpost/07beac8056151b2f | advisory, exploit, issue-tracking, vendor-advisory | |
| https://sqlite.org/src/info/cefc032473ac5ad2 | advisory, patch, vendor-advisory | |
| https://security.netapp.com/advisory/ntap-20230203-0005/ | advisory, third-party-advisory | |
| https://security.gentoo.org/glsa/202311-03 | vendor-advisory, web | |
| https://cert-portal.siemens.com/productcert/html/ssa-398330.html | ||
| https://cert-portal.siemens.com/productcert/html/ssa-556635.html | ||
| https://nvd.nist.gov/vuln/detail/CVE-2022-46908 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-46908 changed 2026-10-14 | CVE Terms of Use |
| NVD | CVE-2022-46908 changed 2026-10-14 | Public domain |
| Bitnami Vulnerability Database | BIT-SQLITE-2022-46908 changed 2026-09-08 | Apache-2.0 |