Every CVE Search/ Get API key

CVE-2021-20227

A flaw was found in SQLite's SELECT query functionality (src/select.c). This flaw allows an...

5.5 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

0.65%Down 1.2 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 5.5

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.

Record
CVE-2021-20227
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
2.1 LowAV:L/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-416
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-20227
Weakness
CWE-416
Updated
2026-11-02
EUVDEUVD-2021-7667 No score

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.

Record
EUVD-2021-7667
Updated
2026-11-02
GitHub AdvisoriesGHSA-w586-cvch-p9ch 5.5

A flaw was found in SQLite's SELECT query functionality (src/select.c). This flaw allows an...

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.

Record
GHSA-w586-cvch-p9ch
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-416
Updated
2026-11-02
OSVALPINE-CVE-2021-20227 5.5

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.

Record
ALPINE-CVE-2021-20227
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVBELL-CVE-2021-20227 5.5

CVE-2021-20227 does not affect BellSoft software

Record
BELL-CVE-2021-20227
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 4 moreShow less
OSV 5.5

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.

Record
CVE-2021-20227
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-20227 5.5

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.

Record
DEBIAN-CVE-2021-20227
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVOESA-2021-1252 5.5

sqlite security update

SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine. SQLite is the most used database engine in the world. SQLite is built into all mobile phones and most computers and comes bundled inside countless other applications that people use every day. It also include lemon and sqlite3_analyzer and tcl tools.

Security Fix(es):

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.(CVE-2021-20227)

Record
OESA-2021-1252
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVBIT-sqlite-2021-20227 No score

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.

Record
BIT-sqlite-2021-20227
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
sqlite
Alpine:v3.12
3.33.0 up to 3.32.1-r1
3.32.1-r1
sqlite
Alpine:v3.14
3.33.0 up to 3.34.1-r0
3.34.1-r0
sqlite
Alpine:v3.15
3.33.0 up to 3.34.1-r0
3.34.1-r0
sqlite
Alpine:v3.16
3.33.0 up to 3.34.1-r0
3.34.1-r0
sqlite
Alpine:v3.17
3.33.0 up to 3.34.1-r0
3.34.1-r0
sqlite
Alpine:v3.18
3.33.0 up to 3.34.1-r0
3.34.1-r0
sqlite
Alpine:v3.19
3.33.0 up to 3.34.1-r0
3.34.1-r0
sqlite
Alpine:v3.20
3.33.0 up to 3.34.1-r0
3.34.1-r0
sqlite
Alpine:v3.21
3.33.0 up to 3.34.1-r0
3.34.1-r0
sqlite
Alpine:v3.22
3.33.0 up to 3.34.1-r0
3.34.1-r0
Show 7 moreShow less
Affected packages
PackageAffectedFixed
sqlite
Alpine:v3.23
3.33.0 up to 3.34.1-r0
3.34.1-r0
sqlite
Alpine:v3.24
3.33.0 up to 3.34.1-r0
3.34.1-r0
sqlite
Bitnami
3.33.0 up to 3.34.1
3.34.1
sqlite3
Debian:12
before 3.34.1-1
3.34.1-1
sqlite3
Debian:13
before 3.34.1-1
3.34.1-1
sqlite3
Debian:14
before 3.34.1-1
3.34.1-1
sqlite
openEuler:20.03-LTS-SP1
before 3.32.3-3.oe1
3.32.3-3.oe1

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-20227 is a medium vulnerability (CVSS 5.5) in Sqlite, published March 23, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.65%, the 51st percentile. Fixed in sqlite 3.32.1-r1.

References

Show 9 moreShow less
MoveEnter Open