---
title: "CVE-2018-8740\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2018-8740?format=md
keywords: index, follow
---

# CVE-2018-8740

Publication date 17 March 2018

Last updated 25 August 2025

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.5 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2018-8740?format=md#impact-score)

Toggle side navigation

## Description

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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| sqlite3 | 20.04 LTS focal | Not affected |
| 19.10 eoan | Not affected |
| 19.04 disco | Not affected |
| 18.10 cosmic | Not affected |
| 18.04 LTS bionic | Fixed 3.22.0-1ubuntu0.4 |
| 17.10 artful | Ignored end of life |
| 16.04 LTS xenial | Fixed 3.11.0-1ubuntu1.1 |
| 14.04 LTS trusty | Fixed 3.8.2-1ubuntu2.2 |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2018-8740?format=md#patch-details)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| sqlite3 | * Upstream:   <https://www.sqlite.org/cgi/src/vdiff?from=1774f1c3baf0bc3d&to=d75e67654aa9620b> * Upstream:   [1e9c47b](https://github.com/sqlite/sqlite/commit/1e9c47be1e81e94a67f788c98fd70e8bf70e3746) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.5 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | None |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.5 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-8740)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-8740)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2018-8740)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2018-8740)

### Related Ubuntu Security Notices (USN)

+ [USN-4205-1](https://usn.ubuntu.com/USN-4205-1)
+ SQLite vulnerabilities
+ 2 December 2019

+ [USN-4394-1](https://usn.ubuntu.com/USN-4394-1)
+ SQLite vulnerabilities
+ 10 June 2020

### Other references

* <https://www.sqlite.org/cgi/src/timeline?r=corrupt-schema>
* <https://www.cve.org/CVERecord?id=CVE-2018-8740>
