CVE-2018-8740 json
In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, rel…
published 2018-03-17 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-20350
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 8.0%
- EPSS 8.0% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, related to build.c and prepare.c.
Patch / fix
- sqlite3 Debian 14, Debian 13, Debian 12 3.22.0-2
debian advisories DEBIAN-CVE-2018-8740
- sqlite3 Ubuntu 14.04 LTS 3.8.2-1ubuntu2.2
- sqlite3 Ubuntu 16.04 LTS 3.11.0-1ubuntu1.1
- sqlite3 Ubuntu 18.04 LTS 3.22.0-1ubuntu0.4
ubuntu advisories UBUNTU-CVE-2018-8740
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- sqlite3 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +11 more 3.36.0-9.18.1
- sqlite3 SLES for SAP 12 SP4, SLES for SAP 12 SP3, SLES 12 SP4 +5 more 3.8.10.2-9.6.1
- sqlite3 SLES 12-LTSS 3.8.3.1-2.12.1
suse advisories SUSE-SU-2021:3215-1SUSE-SU-2019:1522-1SUSE-SU-2019:1208-1
- sqlite3 openSUSE Tumbleweed 3.36.0-1.2
opensuse advisories openSUSE-SU-2024:11400-1
- sqlite Alpine 3.4 3.13.0-r2
- sqlite Alpine 3.5 3.15.2-r2
- sqlite Alpine 3.6 3.20.1-r2
- sqlite Alpine 3.7 3.21.0-r1
alpine advisories ALPINE-CVE-2018-8740
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-8740 updated cvss 3.3
sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service
-
Red Hat Enterprise Linux 7 lemon, sqlite, sqlite-tclaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux 5 sqlite Red Hat Enterprise Linux 6 lemon, sqlite, sqlite-tcl Red Hat Enterprise Linux 8 lemon, sqlite, sqlite-libsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-26-141-03 updated cvss 7.5
ABB B&R Automation Studio
-
ABB B&R Automation Studio <6.5affected: vendor fix, mitigation
-
ABB B&R Automation Studio 6.5fixed
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
Exploit prediction
7.97% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
References
-
sqlite.org
/cgi/src/vdiff?from=1774f1c3baf0bc3d&to=d75e67654aa9620b
patch, vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-05/msg00050.html
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/PU4NZ6DDU4BEM3ACM3FM6GLEPX56ZQXK/
vendor-advisory
-
usn.ubuntu.com
/4205-1/
vendor-advisory
-
usn.ubuntu.com
/4394-1/
vendor-advisory
-
sqlite.org
/cgi/src/timeline?r=corrupt-schema
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2019/01/msg00009.html
mailing-list, third-party-advisory
-
bugs.launchpad.net
/ubuntu/+source/sqlite3/+bug/1756349
third-party-advisory
-
securityfocus.com
/bid/103466
vdb-entry, third-party-advisory
-
bugs.chromium.org
/p/oss-fuzz/issues/detail?id=6964
permissions-required, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2020/08/msg00037.html
mailing-list
-
lists.apache.org
/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
mailing-list
-
lists.debian.org
/debian-lts-announce/2023/05/msg00022.html
mailing-list
Sources
- CVE List CVE-2018-8740
- NVD CVE-2018-8740
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.