Skip to content
Fencer Vulns
high 7.5

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-tcl
    affected: 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-libs
    not 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.5
    affected: vendor fix, mitigation
  • ABB B&R Automation Studio 6.5
    fixed

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

References

Sources

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.