CVE-2018-8740
published 2018-03-17CVE-2018-8740: 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…
PriorityP341high7.5CVSS 3.0
AVNACLPRNUINSUCNINAH
EPSS
8.41%
94.4th percentile
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.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | sqlite3 | < sqlite3 3.22.0-2 (bookworm) | sqlite3 3.22.0-2 (bookworm) |
| ghost | sqlite3 | >= 0 < 3.22.0-2 | 3.22.0-2 |
| ghost | sqlite3 | >= 0 < 3.22.0-2 | 3.22.0-2 |
| ghost | sqlite3 | >= 0 < 3.22.0-2 | 3.22.0-2 |
| ghost | sqlite3 | >= 0 < 3.22.0-2 | 3.22.0-2 |
| ghost | sqlite3 | >= 0 < 3.11.0-1ubuntu1.5 | 3.11.0-1ubuntu1.5 |
| ghost | sqlite3 | >= 0 < 3.11.0-1ubuntu1.3 | 3.11.0-1ubuntu1.3 |
| ghost | sqlite3 | >= 0 < 3.22.0-1ubuntu0.4 | 3.22.0-1ubuntu0.4 |
| ghost | sqlite3 | >= 0 < 3.22.0-1ubuntu0.2 | 3.22.0-1ubuntu0.2 |
| ghost | sqlite3 | >= 0 < 3.31.1-4ubuntu0.1 | 3.31.1-4ubuntu0.1 |
| sqlite | sqlite | <= 3.22.0 | — |
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
SQLite vulnerabilities
vendor_ubuntu·2020-06-10·CVSS 7.5
CVE-2018-8740 [HIGH] SQLite vulnerabilities
Title: SQLite vulnerabilities
Summary: Several security issues were fixed in SQLite.
It was discovered that SQLite incorrectly handled certain corruped schemas.
An attacker could possibly use this issue to cause a denial of service.
This issue only affected Ubuntu 18.04 LTS. (CVE-2018-8740)
It was discovered that SQLite incorrectly handled certain SELECT
statements. An attacker could possibly use this issue to cause a denial of
service. This issue was only addressed in Ubuntu 19.10. (CVE-2019-19603)
It was discovered that SQLite incorrectly handled certain self-referential
views. An attacker could possibly use this issue to cause a denial of
service. This issue was only addressed in Ubuntu 19.10. (CVE-2019-19645)
Henry Liu discovered that SQLite incorrectly handled certain malformed
w
Ubuntu
SQLite vulnerabilities
vendor_ubuntu·2019-12-02·CVSS 7.5
CVE-2018-8740 [HIGH] SQLite vulnerabilities
Title: SQLite vulnerabilities
Summary: Several security issues were fixed in SQLite.
It was discovered that SQLite incorrectly handled certain schemas.
An attacker could possibly use this issue to cause a denial of service.
This issue only affected Ubuntu 12.04 ESM. (CVE-2018-8740)
It was discovered that SQLite incorrectly handled certain schemas.
An attacker could possibly use this issue to cause a denial of service.
This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 19.04.
(CVE-2019-16168)
It was discovered that SQLite incorrectly handled certain schemas.
An attacker could possibly use this issue to mishandles some expressions.
This issue only affected Ubuntu 19.04 and Ubuntu 19.10. (CVE-2019-19242)
It was discovered that SQLite incorrectly handled certain querie
Red Hat
sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service
vendor_redhat·2018-03-17·CVSS 7.5
CVE-2018-8740 [HIGH] CWE-476 sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service
sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service
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.
A NULL pointer dereference vulnerability was found in SQLite. Loading a database whose schema was corrupted using a CREATE TABLE AS statement would result in a SQLite crash.
Statement: Red Hat Product Security has rated this issue as having a security impact of Low. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Package: sqlite (Red Hat Enterprise
Debian
CVE-2018-8740: sqlite3 - In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TAB...
vendor_debian·2018·CVSS 7.5
CVE-2018-8740 [HIGH] CVE-2018-8740: sqlite3 - In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TAB...
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.
Scope: local
bookworm: resolved (fixed in 3.22.0-2)
bullseye: resolved (fixed in 3.22.0-2)
forky: resolved (fixed in 3.22.0-2)
sid: resolved (fixed in 3.22.0-2)
trixie: resolved (fixed in 3.22.0-2)
GHSA
GHSA-c753-vqf3-vjxh: In SQLite through 3
ghsa_unreviewed·2022-05-13
CVE-2018-8740 [HIGH] CWE-476 GHSA-c753-vqf3-vjxh: In SQLite through 3
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.
OSV
sqlite3 vulnerabilities
osv·2020-06-10·CVSS 7.5
CVE-2018-8740 [HIGH] sqlite3 vulnerabilities
sqlite3 vulnerabilities
It was discovered that SQLite incorrectly handled certain corruped schemas.
An attacker could possibly use this issue to cause a denial of service.
This issue only affected Ubuntu 18.04 LTS. (CVE-2018-8740)
It was discovered that SQLite incorrectly handled certain SELECT
statements. An attacker could possibly use this issue to cause a denial of
service. This issue was only addressed in Ubuntu 19.10. (CVE-2019-19603)
It was discovered that SQLite incorrectly handled certain self-referential
views. An attacker could possibly use this issue to cause a denial of
service. This issue was only addressed in Ubuntu 19.10. (CVE-2019-19645)
Henry Liu discovered that SQLite incorrectly handled certain malformed
window-function queries. An attacker could possibly use this is
OSV
sqlite3 vulnerabilities
osv·2019-12-02·CVSS 7.5
CVE-2018-8740 [HIGH] sqlite3 vulnerabilities
sqlite3 vulnerabilities
It was discovered that SQLite incorrectly handled certain schemas.
An attacker could possibly use this issue to cause a denial of service.
This issue only affected Ubuntu 12.04 ESM. (CVE-2018-8740)
It was discovered that SQLite incorrectly handled certain schemas.
An attacker could possibly use this issue to cause a denial of service.
This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 19.04.
(CVE-2019-16168)
It was discovered that SQLite incorrectly handled certain schemas.
An attacker could possibly use this issue to mishandles some expressions.
This issue only affected Ubuntu 19.04 and Ubuntu 19.10. (CVE-2019-19242)
It was discovered that SQLite incorrectly handled certain queries.
An attacker could possibly use this issue to execute arbitr
OSV
CVE-2018-8740: In SQLite through 3
osv·2018-03-17·CVSS 7.5
CVE-2018-8740 [HIGH] CVE-2018-8740: In SQLite through 3
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-8740 sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service
bugzilla·2018-03-21·CVSS 7.5
CVE-2018-8740 [HIGH] CVE-2018-8740 sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service
CVE-2018-8740 sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service
SQLite through version 3.22.0 is vulnerable to a NULL pointer dereference when using databases that have been corrupted with 'CREATE TABLE AS' statements. An attacker could exploit this with a crafted database file to trigger a crash and resulting denial of service.
Upstream Patch:
https://www.sqlite.org/cgi/src/vdiff?from=1774f1c3baf0bc3d&to=d75e67654aa9620b
Additional References:
http://seclists.org/oss-sec/2018/q1/244
Discussion:
Created mingw-sqlite tracking bugs for this issue:
Affects: fedora-all [bug 1558808]
Created sqlite2 tracking bugs for this issue:
Affects: fedora-all [bug 1558805]
Created sqlite tracking bugs for this issue:
Aff
Bugzilla
CVE-2018-8740 mingw-sqlite: sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [epel-7]
bugzilla·2018-03-21·CVSS 7.5
CVE-2018-8740 [HIGH] CVE-2018-8740 mingw-sqlite: sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [epel-7]
CVE-2018-8740 mingw-sqlite: sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [epel-7]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-7.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
f
Bugzilla
CVE-2018-8740 sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [fedora-all]
bugzilla·2018-03-21·CVSS 7.5
CVE-2018-8740 [HIGH] CVE-2018-8740 sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [fedora-all]
CVE-2018-8740 sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg
Bugzilla
CVE-2018-8740 sqlite2: sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [epel-all]
bugzilla·2018-03-21·CVSS 7.5
CVE-2018-8740 [HIGH] CVE-2018-8740 sqlite2: sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [epel-all]
CVE-2018-8740 sqlite2: sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fe
Bugzilla
CVE-2018-8740 sqlite2: sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [fedora-all]
bugzilla·2018-03-21·CVSS 7.5
CVE-2018-8740 [HIGH] CVE-2018-8740 sqlite2: sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [fedora-all]
CVE-2018-8740 sqlite2: sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and th
Bugzilla
CVE-2018-8740 mingw-sqlite: sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [fedora-all]
bugzilla·2018-03-21·CVSS 7.5
CVE-2018-8740 [HIGH] CVE-2018-8740 mingw-sqlite: sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [fedora-all]
CVE-2018-8740 mingw-sqlite: sqlite: NULL pointer dereference with databases with schema corrupted with CREATE TABLE AS allows for denial of service [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog a
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00050.htmlhttp://www.securityfocus.com/bid/103466https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6964https://bugs.launchpad.net/ubuntu/+source/sqlite3/+bug/1756349https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3Ehttps://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3Ehttps://lists.debian.org/debian-lts-announce/2019/01/msg00009.htmlhttps://lists.debian.org/debian-lts-announce/2020/08/msg00037.htmlhttps://lists.debian.org/debian-lts-announce/2023/05/msg00022.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PU4NZ6DDU4BEM3ACM3FM6GLEPX56ZQXK/https://usn.ubuntu.com/4205-1/https://usn.ubuntu.com/4394-1/https://www.sqlite.org/cgi/src/timeline?r=corrupt-schemahttps://www.sqlite.org/cgi/src/vdiff?from=1774f1c3baf0bc3d&to=d75e67654aa9620bhttp://lists.opensuse.org/opensuse-security-announce/2019-05/msg00050.htmlhttp://www.securityfocus.com/bid/103466https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6964https://bugs.launchpad.net/ubuntu/+source/sqlite3/+bug/1756349https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3Ehttps://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3Ehttps://lists.debian.org/debian-lts-announce/2019/01/msg00009.htmlhttps://lists.debian.org/debian-lts-announce/2020/08/msg00037.htmlhttps://lists.debian.org/debian-lts-announce/2023/05/msg00022.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PU4NZ6DDU4BEM3ACM3FM6GLEPX56ZQXK/https://usn.ubuntu.com/4205-1/https://usn.ubuntu.com/4394-1/https://www.sqlite.org/cgi/src/timeline?r=corrupt-schemahttps://www.sqlite.org/cgi/src/vdiff?from=1774f1c3baf0bc3d&to=d75e67654aa9620b
2018-03-17
Published