CVE-2021-20227

NameCVE-2021-20227
DescriptionA 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
sqlite (PTS)buster2.8.17-15fixed
buster (security)2.8.17-15+deb10u1fixed
sqlite3 (PTS)buster3.27.2-3+deb10u1fixed
buster (security)3.27.2-3+deb10u2fixed
bullseye3.34.1-3fixed
bookworm, sid3.40.1-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
sqlitesource(unstable)(not affected)
sqlite3sourcestretch(not affected)
sqlite3sourcebuster(not affected)
sqlite3source(unstable)3.34.1-1

Notes

[buster] - sqlite3 <not-affected> (Introduced in 3.33)
[stretch] - sqlite3 <not-affected> (Introduced in 3.33)
- sqlite <not-affected> (Introduced in 3.33)
https://bugzilla.redhat.com/show_bug.cgi?id=1924886
https://sqlite.org/src/info/30a4c323650cc949
Patch: https://github.com/sqlite/sqlite/commit/f39168e468af3b1d6b6d37efdcb081eced6724b2
Introduced in https://github.com/sqlite/sqlite/commit/896366282dae3789fb277c2dad8660784a0895a3

Search for package or bug name: Reporting problems