{"id":"ALPINE-CVE-2021-20227","details":"A flaw was found in SQLite's SELECT query functionality (src/select.c). This flaw allows an attacker who is capable of running SQL queries locally on the SQLite database to cause a denial of service or possible code execution by triggering a use-after-free. The highest threat from this vulnerability is to system availability.","modified":"2026-08-27T22:18:01.428944657Z","published":"2021-03-23T17:15:13.747Z","upstream":["CVE-2021-20227"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-20227"}],"affected":[{"package":{"name":"sqlite","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0"},{"fixed":"3.32.1-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20227.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0"},{"fixed":"3.34.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20227.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0"},{"fixed":"3.34.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20227.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0"},{"fixed":"3.34.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20227.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0"},{"fixed":"3.34.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20227.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0"},{"fixed":"3.34.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20227.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0"},{"fixed":"3.34.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20227.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0"},{"fixed":"3.34.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20227.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0"},{"fixed":"3.34.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20227.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0"},{"fixed":"3.34.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20227.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0"},{"fixed":"3.34.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20227.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0"},{"fixed":"3.34.1-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-20227.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}