Every CVE Search/ Get API key

CVE-2020-13871

SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite...

7.5 HighFix available

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

4.45%Up 2.6 points since Apr 14, 2021
90%50%10%1%

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 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Show 3 moreShow less

Affected packages

Affected packages
PackageAffectedFixed
platform/external/sqlite
Android
11:0 up to 11:2021-11-01, plus listed versions
11
11:2021-11-01
sqlite
Bitnami
3.32.2 up to 3.32.3
3.32.3
sqlite3
Debian:12
before 3.32.2-2
3.32.2-2
sqlite3
Debian:13
before 3.32.2-2
3.32.2-2
sqlite3
Debian:14
before 3.32.2-2
3.32.2-2
sqlite3
Debian: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
sqlite3
Mageia:7
From an advisory covering 9 CVEs
before 3.31.1-1.1.mga7
3.31.1-1.1.mga7
sqlite3
openSUSE:Tumbleweed
From an advisory covering 10 CVEs
before 3.36.0-1.2
3.36.0-1.2

History

History
RecordedChangedSources
affectedOSV
factsOSV
first indexedCVE 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

Show 36 moreShow less
MoveEnter Open