Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-20227
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 05:13 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-20227
Complete source record
{
"id": "59d9f995382fce2833e69e9aa65c8af9cb82aef95c916b7c85a237b2fb13b812",
"url": "https://osv.dev/vulnerability/CVE-2021-20227",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-20227",
"summary": "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.",
"evidence": "osv:CVE-2021-20227",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-20227",
"aliases": [
"BIT-sqlite-2021-20227",
"CVE-2021-20227"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/sqlite/sqlite",
"type": "GIT",
"events": [
{
"introduced": "ef215fbf3b581ef4e0273bb3932fa522af88fd7e"
},
{
"fixed": "60405cd15cdd085745101a29112043299d439cfa"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.33.0"
},
{
"fixed": "3.34.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"version-3.34.0",
"version-3.33.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20227.json"
}
}
],
"modified": "2026-10-24T10:30:25.473026746Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
"https://security.gentoo.org/glsa/202103-04",
"https://security.gentoo.org/glsa/202210-40",
"https://security.netapp.com/advisory/ntap-20210423-0010/",
"https://www.sqlite.org/releaselog/3_34_1.html",
"https://bugzilla.redhat.com/show_bug.cgi?id=1924886",
"https://www.oracle.com//security-alerts/cpujul2021.html",
"https://www.oracle.com/security-alerts/cpuApr2021.html",
"https://www.oracle.com/security-alerts/cpuoct2021.html"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:oracle:communications_network_charging_and_control:*:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:communications_network_charging_and_control",
"extracted_events": [
{
"range": [
{
"introduced": "12.0.1.0"
},
{
"last_affected": "12.0.4.0.0"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:a:oracle:jd_edwards_enterpriseone_tools:*:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:jd_edwards_enterpriseone_tools",
"extracted_events": [
{
"range": [
{
"fixed": "9.2.6.0"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:a:oracle:mysql_workbench:*:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:mysql_workbench",
"extracted_events": [
{
"range": [
{
"last_affected": "8.0.26"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:a:oracle:communications_network_charging_and_control:6.0.1:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:communications_network_charging_and_control",
"extracted_events": [
{
"range": [
{
"introduced": "6.0.1"
},
{
"last_affected": "6.0.1"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:oracle:enterprise_manager_for_oracle_database:13.4.0.0:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:enterprise_manager_for_oracle_database",
"extracted_events": [
{
"range": [
{
"introduced": "13.4.0.0"
},
{
"last_affected": "13.4.0.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:oracle:outside_in_technology:8.5.5:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:outside_in_technology",
"extracted_events": [
{
"range": [
{
"introduced": "8.5.5"
},
{
"last_affected": "8.5.5"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:zfs_storage_appliance_kit",
"extracted_events": [
{
"range": [
{
"introduced": "8.8"
},
{
"last_affected": "8.8"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-20227",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 431449,
"published_at": "2021-03-23T17:15:13.747+00:00"
}