CVE-2021-20227: Use After Free

Published Feb 3, 2021
·
Updated

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.

Other sources

SQLite 3.34.1 fixes a potential use-after-free bug when processing a subquery with both a correlated WHERE clause and a "HAVING 0" clause and where the parent query is an aggregate.

References:

https://sqlite.org/src/info/30a4c323650cc949 https://www.sqlite.org/releaselog/3341.html

Red Hat

SQLite is vulnerable to a denial of service, caused by a use-after-free flaw in the SELECT query function in src/select.c. By sending a specially-crafted request, a local authenticated attacker could exploit this vulnerability to cause a denial of service condition or possibly execute arbitrary code on the system.

IBM

Affected Software

10 affected componentsFixes available
redhat/sqlite<3.34.1
3.34.1
IBM DRM<=2.0.6
SQLite SQLite>=3.33.0<3.34.1
Oracle Communications Network Charging And Control>=12.0.1.0<=12.0.4.0.0
Oracle Communications Network Charging And Control=6.0.1
Oracle Enterprise Manager For Oracle Database=13.4.0.0
Oracle JD Edwards EnterpriseOne Tools<9.2.6.0
Oracle MySQL Workbench<=8.0.26
Oracle Outside In Technology=8.5.5
Oracle ZFS Storage Appliance Kit=8.8

Event History

Mar 23, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jul 16, 2021
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this SQLite vulnerability?

The vulnerability ID for this SQLite vulnerability is CVE-2021-20227.

2

What is the severity rating of CVE-2021-20227?

CVE-2021-20227 has a severity rating of 5.5 (Medium).

3

How does CVE-2021-20227 affect SQLite?

CVE-2021-20227 in SQLite allows an attacker running SQL queries locally on the database to cause a denial of service or possible code execution.

4

Which versions of SQLite are affected by CVE-2021-20227?

SQLite versions up to exclusive 3.34.1 are affected by CVE-2021-20227.

5

Is there a fix available for CVE-2021-20227?

Yes, the remedy for CVE-2021-20227 is to update to SQLite version 3.34.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203