CVE-2021-20227
publishedsqlite: potential use-after-free bug when processing a subquery with both a correlated WHERE clause and a "HAVING 0" clause and where the parent query is an aggregate
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | sqlitesqlite 3.34.1 | Affected | Not stated | redhat |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Alpine Linux | edge | sqlite | Fixed | 3.34.1-r0 | Package fix record |
| Alpine Linux | v3.12 | sqlite | Fixed | 3.32.1-r1 | Package fix record |
| Alpine Linux | v3.14 | sqlite | Fixed | 3.34.1-r0 | Package fix record |
| Alpine Linux | v3.15 | sqlite | Fixed | 3.34.1-r0 | Package fix record |
Show 11 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.0 to < V3.1.5 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Alpine Linux | v3.16 | sqlite | Fixed | 3.34.1-r0 | Package fix record |
| Alpine Linux | v3.17 | sqlite | Fixed | 3.34.1-r0 | Package fix record |
| Alpine Linux | v3.18 | sqlite | Fixed | 3.34.1-r0 | Package fix record |
| Alpine Linux | v3.19 | sqlite | Fixed | 3.34.1-r0 | Package fix record |
| Alpine Linux | v3.20 | sqlite | Fixed | 3.34.1-r0 | Package fix record |
| Alpine Linux | v3.21 | sqlite | Fixed | 3.34.1-r0 | Package fix record |
| Alpine Linux | v3.22 | sqlite | Fixed | 3.34.1-r0 | Package fix record |
| Alpine Linux | v3.23 | sqlite | Fixed | 3.34.1-r0 | Package fix record |
| Alpine Linux | v3.24 | sqlite | Fixed | 3.34.1-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | sqlite | sqlite 3.34.1 (affected) | redhat · cna |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.0 to < V3.1.5 (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
1- CWE-416
References
9- https://bugzilla.redhat.com/show_bug.cgi?id=1924886
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- GLSA-202103-04 https://security.gentoo.org/glsa/202103-04
- GLSA-202210-40 https://security.gentoo.org/glsa/202210-40
- https://security.netapp.com/advisory/ntap-20210423-0010/
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.sqlite.org/releaselog/3_34_1.html
Provider assertions
3redhat · cna
siemens-SADP · adp
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6f03b4272e885a3037ec4e2719394de4b0b00e08a541dad9a66b7d01e971608e
- Ingested
- 14 Oct 2026, 14:23:10 UTC
- Source record
- Official CVE record