CVE-2018-8740: Null Pointer Dereference

Published Mar 17, 2018
·
Updated

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 Software

3 affected componentsFixes available
SQLite SQLite<=3.22.0
Debian Debian Linux=8.0
debian/sqlite3
3.34.1-33.34.1-3+deb11u13.40.1-2+deb12u23.46.1-7+deb13u13.46.1-93.53.3-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/sqlite3 to a version that resolves this vulnerability.

    Fixed in 3.34.1-3Fixed in 3.34.1-3+deb11u1Fixed in 3.40.1-2+deb12u2Fixed in 3.46.1-7+deb13u1Fixed in 3.46.1-9Fixed in 3.53.3-1

Event History

Mar 17, 2018
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·12:29 AM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 20, 2026
Data Sourced
via Ubuntu·09:14 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·09:14 PM
Description
Jun 29, 2026
Data Sourced
via Debian·02:44 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is CVE-2018-8740?

CVE-2018-8740 is a vulnerability in SQLite through 3.22.0 that can cause a NULL pointer dereference when databases with corrupted schema are used with a CREATE TABLE AS statement.

2

What is the severity of CVE-2018-8740?

The severity of CVE-2018-8740 is rated as high with a severity value of 7.5.

3

How does CVE-2018-8740 affect software?

CVE-2018-8740 affects SQLite versions up to and including 3.22.0 and can cause a NULL pointer dereference when databases with corrupted schema are used with a CREATE TABLE AS statement.

4

What is the remedy for CVE-2018-8740 in Debian?

The remedy for CVE-2018-8740 in Debian is to update to version 3.27.2-3+deb10u1 or higher for SQLite or version 3.27.2-3+deb10u1, 3.27.2-3+deb10u2, 3.34.1-3, 3.40.1-2, or 3.43.2-1 for SQLite3.

5

What is the remedy for CVE-2018-8740 in Ubuntu?

The remedy for CVE-2018-8740 in Ubuntu is to update to version 3.22.0-1ubuntu0.4 for SQLite3 in Bionic, version 3.8.2-1ubuntu2.2 for SQLite3 in Trusty, version 3.22.0-2 for SQLite3 with upstream, or version 3.11.0-1ubuntu1.1 for SQLite3 in Xenial.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203