---
title: "CVE-2018-20506\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-20506?format=md
keywords: index, follow
---

# CVE-2018-20506

Publication date 3 April 2019

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

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

## Cvss 3 Severity Score

**8.1 · High**

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

Toggle side navigation

## Description

SQLite before 3.25.3, when the FTS3 extension is enabled, encounters an
integer overflow (and resultant buffer overflow) for FTS3 queries in a
"merge" operation that occurs after crafted changes to FTS3 shadow tables,
allowing remote attackers to execute arbitrary code by leveraging the
ability to run arbitrary SQL statements (such as in certain WebSQL use
cases). This is a different vulnerability than CVE-2018-20346.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| sqlite3 | 19.04 disco | Not affected |
| 18.10 cosmic | Fixed 3.24.0-1ubuntu0.1 |
| 18.04 LTS bionic | Fixed 3.22.0-1ubuntu0.1 |
| 16.04 LTS xenial | Fixed 3.11.0-1ubuntu1.2 |
| 14.04 LTS trusty | Fixed 3.8.2-1ubuntu2.2+esm1  Ubuntu Pro |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

8.1 · High

* Base metrics

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

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

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

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-4019-1](https://usn.ubuntu.com/USN-4019-1)
+ SQLite vulnerabilities
+ 19 June 2019

+ [USN-4019-2](https://usn.ubuntu.com/USN-4019-2)
+ SQLite vulnerabilities
+ 19 June 2019

### Other references

* <https://sqlite.org/src/info/940f2adc8541a838>
* <http://seclists.org/fulldisclosure/2019/Jan/62>
* <http://seclists.org/fulldisclosure/2019/Jan/64>
* <http://seclists.org/fulldisclosure/2019/Jan/66>
* <http://seclists.org/fulldisclosure/2019/Jan/67>
* <http://seclists.org/fulldisclosure/2019/Jan/68>
* <http://seclists.org/fulldisclosure/2019/Jan/69>
* <https://seclists.org/bugtraq/2019/Jan/28>
* <https://seclists.org/bugtraq/2019/Jan/29>
* <https://seclists.org/bugtraq/2019/Jan/31>
* <https://seclists.org/bugtraq/2019/Jan/32>
* <https://seclists.org/bugtraq/2019/Jan/33>
* <https://seclists.org/bugtraq/2019/Jan/39>
* <https://support.apple.com/kb/HT209443>
* <https://support.apple.com/kb/HT209446>
* <https://support.apple.com/kb/HT209447>
* <https://support.apple.com/kb/HT209448>
* <https://support.apple.com/kb/HT209450>
* <https://support.apple.com/kb/HT209451>
* <https://www.cve.org/CVERecord?id=CVE-2018-20506>
