CVE-2021-20227 Use after free in sqlite
A use-after-free flaw in SQLite allows local attackers to cause denial of service or execute arbitrary code via crafted SQL queries.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-20227?
CVE-2021-20227 is a medium-severity use after free vulnerability in Oracle Jd Edwards Enterpriseone Tools, published on 23 Mar 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-416
Which versions are affected by CVE-2021-20227?
1 open source package ship an affected version, including sqlite. It affects 7 products.
| Package | Affected | Fixed in |
|---|---|---|
sqlite Bitnami | From 3.33.0 | 3.34.1 |
Products include Oracle Communications Network Charging and Control, Oracle Enterprise Manager for Oracle Database, Oracle Jd Edwards Enterpriseone Tools, Oracle Mysql Workbench, Oracle Outside in Technology, Oracle Zfs Storage Appliance Kit and 1 more.
How do I fix CVE-2021-20227?
Upgrade sqlite to 3.34.1 or later.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2021-20227 being exploited?
There is no known exploitation of CVE-2021-20227 in the wild and no public exploit code.
Sources
Also known as ALPINE-CVE-2021-20227, BIT-sqlite-2021-20227, CLEANSTART-2026-JU58706, DEBIAN-CVE-2021-20227, GHSA-w586-cvch-p9ch, OESA-2021-1252.