{"schemaVersion":3,"id":"CVE-2021-20227","aliases":["ALPINE-CVE-2021-20227","DEBIAN-CVE-2021-20227"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2021-03-23T00:00:00.000Z","modified":"2026-10-14T10:04:10.843Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":2.1,"severity":"low","vector":"AV:L/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00654,"percentile":0.50388,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.15799999999999997,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00496},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00654,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00654,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00654,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00654,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00654,"percentile":0.50388}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00654,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00654,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00654,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00654,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00654,"percentile":0.50388}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"alpine","product":"sqlite","name":"sqlite","label":"sqlite","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/sqlite","purlType":"apk","versions":[{"text":"≥ 3.33.0, < 3.32.1-r1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.33.0, < 3.34.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.33.0, < 3.32.1-r1 | ≥ 3.33.0, < 3.34.1-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"sqlite3","name":"sqlite3","label":"sqlite3","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/sqlite3","purlType":"deb","versions":[{"text":"< 3.34.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.34.1-1","eol":null,"hubHref":null},{"vendor":"oracle","product":"communications_network_charging_and_control","name":"communications network charging and control","label":"communications_network_charging_and_control","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 12.0.1.0, ≤ 12.0.4.0.0","noFixRecorded":false,"fixedIn":null},{"text":"6.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 12.0.1.0, ≤ 12.0.4.0.0 | 6.0.1","eol":null,"hubHref":"/vendor/oracle/communications_network_charging_and_control"},{"vendor":"oracle","product":"enterprise_manager_for_oracle_database","name":"enterprise manager for oracle database","label":"enterprise_manager_for_oracle_database","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"13.4.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"13.4.0.0","eol":null,"hubHref":"/vendor/oracle/enterprise_manager_for_oracle_database"},{"vendor":"oracle","product":"jd_edwards_enterpriseone_tools","name":"jd edwards enterpriseone tools","label":"jd_edwards_enterpriseone_tools","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 9.2.6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.2.6.0","eol":null,"hubHref":"/vendor/oracle/jd_edwards_enterpriseone_tools"},{"vendor":"oracle","product":"mysql_workbench","name":"mysql workbench","label":"mysql_workbench","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 8.0.26","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 8.0.26","eol":null,"hubHref":"/vendor/oracle/mysql_workbench"},{"vendor":"oracle","product":"outside_in_technology","name":"outside in technology","label":"outside_in_technology","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"8.5.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.5.5","eol":null,"hubHref":"/vendor/oracle/outside_in_technology"},{"vendor":"oracle","product":"zfs_storage_appliance_kit","name":"zfs storage appliance kit","label":"zfs_storage_appliance_kit","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"8.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.8","eol":null,"hubHref":"/vendor/oracle/zfs_storage_appliance_kit"},{"vendor":"sqlite","product":"sqlite","name":"sqlite","label":"sqlite","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.33.0, < 3.34.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.33.0, < 3.34.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"sqlite","label":"SQLite","category":"database"}},"hubHref":"/vendor/sqlite/sqlite"}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1924886","label":"bugzilla.redhat.com/show_bug.cgi?id=1924886","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","Third Party Advisory"]},{"url":"https://www.sqlite.org/releaselog/3_34_1.html","label":"www.sqlite.org/releaselog/3_34_1.html","hostname":"www.sqlite.org","tags":["Release Notes","Vendor Advisory"]},{"url":"https://security.gentoo.org/glsa/202103-04","label":"security.gentoo.org/glsa/202103-04","hostname":"security.gentoo.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html","label":"www.oracle.com/security-alerts/cpuApr2021.html","hostname":"www.oracle.com","tags":["Patch","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20210423-0010/","label":"security.netapp.com/advisory/ntap-20210423-0010/","hostname":"security.netapp.com","tags":["Third Party Advisory"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","label":"www.oracle.com//security-alerts/cpujul2021.html","hostname":"www.oracle.com","tags":["Patch","Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","label":"www.oracle.com/security-alerts/cpuoct2021.html","hostname":"www.oracle.com","tags":["Patch","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202210-40","label":"security.gentoo.org/glsa/202210-40","hostname":"security.gentoo.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-20227","label":"security.alpinelinux.org/vuln/CVE-2021-20227","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-20227","label":"security-tracker.debian.org/tracker/CVE-2021-20227","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20227","label":"nvd.nist.gov/vuln/detail/CVE-2021-20227","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"cert-portal.siemens.com/productcert/html/ssa-398330.html","hostname":"cert-portal.siemens.com","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-03-23T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-14T10:04:10.843Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:40:10.516Z","stale":false,"partial":false}}