CVE-2020-13871
SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite...
SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite for window functions is too late.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite for window functions is too late.
- Record
CVE-2020-13871- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-416
- Updated
- 2026-11-02
CVE List No score
SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite for window functions is too late.
- Record
CVE-2020-13871- Updated
- 2026-11-02
EUVDEUVD-2020-6079 No score
SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite for window functions is too late.
- Record
EUVD-2020-6079- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-wjq2-9xcc-v8x3
7.5
SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite...
SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite for window functions is too late.
- Record
GHSA-wjq2-9xcc-v8x3- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-416
- Updated
- 2026-11-02
OSVBELL-CVE-2020-13871
7.5
CVE-2020-13871 does not affect BellSoft software
- Record
BELL-CVE-2020-13871- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSV
7.5
SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite for window functions is too late.
- Record
CVE-2020-13871- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 5 moreShow less
OSVDEBIAN-CVE-2020-13871
7.5
SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite for window functions is too late.
- Record
DEBIAN-CVE-2020-13871- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVASB-A-192606047 No score
In resetAccumulator of select.c, there is a possible use after free. This could lead to local information disclosure with no additional execution privileges needed. User interaction is not needed for exploitation.
- Record
ASB-A-192606047- Updated
- 2026-11-05
OSVBIT-sqlite-2020-13871 No score
SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite for window functions is too late.
- Record
BIT-sqlite-2020-13871- Updated
- 2026-11-02
OSVMGASA-2021-0303 No score
Updated sqlite3 packages fix security vulnerabilities
In SQLite 3.31.1, isAuxiliaryVtabOperator allows attackers to trigger a NULL pointer dereference and segmentation fault because of generated column optimizations (CVE-2020-9327).
SQLite through 3.31.1 allows attackers to cause a denial of service (segmentation fault) via a malformed window-function query because the AggInfo object's initialization is mishandled (CVE-2020-11655).
SQLite through 3.32.0 has an integer overflow in sqlite3_str_vappendf in printf.c (CVE-2020-13434).
SQLite through 3.32.0 has a segmentation fault in sqlite3ExprCodeTarget in expr.c (CVE-2020-13435).
ext/fts3/fts3.c in SQLite before 3.32.0 has a use-after-free in fts3EvalNextRow, related to the snippet feature (CVE-2020-13630).
SQLite before 3.32.0 allows a virtual table to be renamed to the name of one of its shadow tables, related to alter.c and build.c (CVE-2020-13631).
ext/fts3/fts3_snippet.c in SQLite before 3.32.0 has a NULL pointer dereference via a crafted matchinfo() query (CVE-2020-13632).
SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite for window functions is too late (CVE-2020-13871).
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 (CVE-2020-15358).
- Record
MGASA-2021-0303- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11400-1 No score
libsqlite3-0-3.36.0-1.2 on GA media
These are all security issues fixed in the libsqlite3-0-3.36.0-1.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11400-1- Updated
- 2026-11-02
Affected products
- sqlite
- debian linux
- fedoraproject fedora
- netapp cloud backup
- netapp ontap select deploy administration utility
- oracle communications messaging server
- oracle communications network charging and control
- oracle enterprise manager ops center
- oracle hyperion infrastructure technology
- oracle mysql workbench
- oracle zfs storage appliance kit
- siemens simatic s7-1500 cpu 1518-4 pn/dp mfp
Affected packages
| Package | Affected | Fixed |
|---|---|---|
platform/external/sqliteAndroid |
11:0 up to 11:2021-11-01, plus listed versions 11 |
11:2021-11-01 |
sqliteBitnami |
3.32.2 up to 3.32.3 | 3.32.3 |
sqlite3Debian:12 |
before 3.32.2-2 | 3.32.2-2 |
sqlite3Debian:13 |
before 3.32.2-2 | 3.32.2-2 |
sqlite3Debian:14 |
before 3.32.2-2 | 3.32.2-2 |
sqlite3Debian:9 From an advisory covering 12 CVEs |
before 3.16.2-5+deb9u2, plus listed versions 3.16.2-53.16.2-5+deb9u1 |
3.16.2-5+deb9u2 |
sqlite3Mageia:7 From an advisory covering 9 CVEs |
before 3.31.1-1.1.mga7 | 3.31.1-1.1.mga7 |
sqlite3openSUSE:Tumbleweed From an advisory covering 10 CVEs |
before 3.36.0-1.2 | 3.36.0-1.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | OSV | |
| facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-13871 is a high vulnerability (CVSS 7.5) in Sqlite, published June 6, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.45%, the 91st percentile. Fixed in platform/external/sqlite 11:2021-11-01.
References
security.gentoo.org/glsa/202007-26
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BN32AGQPMHZRNM6P6L5GZPETOWTGXOKP
lists.debian.org/debian-lts-announce/2020/08/msg00037.html
oracle.com/security-alerts/cpujan2021.html
sqlite.org/src/info/cd708fa84d2aaaea
sqlite.org/src/info/c8d3b9f0a750a529
Show 36 moreShow less
sqlite.org/src/info/79eff1d0383179c4
security.netapp.com/advisory/ntap-20200619-0002
oracle.com/security-alerts/cpuApr2021.html
cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
cert-portal.siemens.com/productcert/html/ssa-389290.html
cert-portal.siemens.com/productcert/html/ssa-398330.html
nvd.nist.gov/vuln/detail/CVE-2020-13871
lists.fedoraproject.org/archives/list/[email protected]/message/BN32AGQPMHZRNM6P6L5GZPETOWTGXOKP
github.com/advisories/GHSA-wjq2-9xcc-v8x3
source.android.com/security/bulletin/2021-11-01
android.googlesource.com/platform/external/sqlite/+/84500124e617d2548c2b2374eb84a3e0ea8884d1
docs.bell-sw.com/security/cves/CVE-2020-13871
security-tracker.debian.org/tracker/CVE-2020-13871
advisories.mageia.org/MGASA-2021-0303.html
bugs.mageia.org/show_bug.cgi?id=26270
access.redhat.com/errata/RHSA-2020:4442
debian.org/lts/security/2020/dla-2340
lists.fedoraproject.org/archives/list/[email protected]/thread/BN32AGQPMHZRNM6P6L5GZPETOWTGXOKP
ubuntu.com/security/notices/USN-4438-1
sqlite.org/releaselog/3_32_3.html
sqlite.org/releaselog/3_32_2.html
sqlite.org/releaselog/3_32_1.html
sqlite.org/releaselog/3_32_0.html
usn.ubuntu.com/4394-1
lists.fedoraproject.org/archives/list/[email protected]/thread/L7KXQWHIY2MQP4LNM6ODWJENMXYYQYBN
debian.org/lts/security/2020/dla-2221
suse.com/security/cve/CVE-2018-8740
suse.com/security/cve/CVE-2019-16168
suse.com/security/cve/CVE-2019-9936
suse.com/security/cve/CVE-2019-9937
suse.com/security/cve/CVE-2020-13434
suse.com/security/cve/CVE-2020-13435
suse.com/security/cve/CVE-2020-13630
suse.com/security/cve/CVE-2020-13631
suse.com/security/cve/CVE-2020-13632
suse.com/security/cve/CVE-2020-13871