{"id":"CVE-2022-46908","title":"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.","summary":"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.","severity":"high","cvss":7.3,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","vendor":"sqlite","product":"sqlite","affected":["sqlite >= 3.37.0, < 3.40.1"],"patched":["sqlite 3.40.1"],"published":"2022-12-12","updated":"2026-10-14","sourceUpdated":"2026-10-14T19:16:55.133","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-46908","references":[{"url":"https://news.ycombinator.com/item?id=33948588","label":"cve@mitre.org"},{"url":"https://security.gentoo.org/glsa/202311-03","label":"cve@mitre.org"},{"url":"https://security.netapp.com/advisory/ntap-20230203-0005/","label":"cve@mitre.org"},{"url":"https://sqlite.org/forum/forumpost/07beac8056151b2f","label":"cve@mitre.org"},{"url":"https://sqlite.org/src/info/cefc032473ac5ad2","label":"cve@mitre.org"},{"url":"https://news.ycombinator.com/item?id=33948588","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/202311-03","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.netapp.com/advisory/ntap-20230203-0005/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://sqlite.org/forum/forumpost/07beac8056151b2f","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://sqlite.org/src/info/cefc032473ac5ad2","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-556635.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"}],"tags":["nvd"],"epss":0.00444,"epssPercentile":0.37018,"ingestedAt":"2026-10-14T19:49:57.526Z","slug":"CVE-2022-46908","body":"## Overview\n\nSQLite 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.\n\n## Affected\n\n- `sqlite >= 3.37.0, < 3.40.1`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `sqlite 3.40.1`","depth":"twilight","depthScore":40,"depthScoreParts":{"impact":40.2,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}