cve.bz

CVE-2021-20227 Use After Free

5.5 mediumEPSS 0.7%Fix available

Medium (5.5). EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20227 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20227?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20227?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20227 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-20227

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-20227](https://cve.bz/cve/badge/CVE-2021-20227.svg)](https://cve.bz/cve/CVE-2021-20227)

HTML:

<a href="https://cve.bz/cve/CVE-2021-20227"><img src="https://cve.bz/cve/badge/CVE-2021-20227.svg" alt="CVE-2021-20227"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sqlite:sqlitefrom 3.33.0 before 3.34.1
oracle:communications_network_charging_and_controlfrom 12.0.1.0 through 12.0.4.0.0
oracle:communications_network_charging_and_control6.0.1
oracle:enterprise_manager_for_oracle_database13.4.0.0
oracle:jd_edwards_enterpriseone_toolsbefore 9.2.6.0
oracle:mysql_workbenchthrough 8.0.26
oracle:outside_in_technology8.5.5
oracle:zfs_storage_appliance_kit8.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14sqlite33.34.1-1DEBIAN-CVE-2021-20227
Alpinev3.12sqlite3.32.1-r1ALPINE-CVE-2021-20227
Alpinev3.14, v3.15, v3.16 and 8 moresqlite3.34.1-r0ALPINE-CVE-2021-20227

From the distributions' data via OSV.dev: the Debian Security Tracker; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

SQLite as shipped in Red Hat Enterprise Linux 6, 7 and 8 is not affected by this flaw as the code was introduced in a newer version of SQLite than that shipped. This flaw has been marked Moderate because in order to run such a query, a user would need to already have access to query the data in the database.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6sqliteNot affected
Red Hat Enterprise Linux 7sqliteNot affected
Red Hat Enterprise Linux 8sqliteNot affected
Red Hat Enterprise Linux 9sqliteNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20227.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON