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

# CVE-2019-6340

Publication date 21 February 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-2019-6340?format=md#impact-score)

Toggle side navigation

## Description

Some field types do not properly sanitize data from non-form sources in
Drupal 8.5.x before 8.5.11 and Drupal 8.6.x before 8.6.10. This can lead to
arbitrary PHP code execution in some cases. A site is only affected by this
if one of the following conditions is met: The site has the Drupal 8 core
RESTful Web Services (rest) module enabled and allows PATCH or POST
requests, or the site has another web services module enabled, like
JSON:API in Drupal 8, or Services or RESTful Web Services in Drupal 7.
(Note: The Drupal 7 Services module itself does not require an update at
this time, but you should apply other contributed updates associated with
this advisory if Services is in use.)

[Read the notes from the security team](https://ubuntu.com/security/CVE-2019-6340?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| drupal7 | 18.10 cosmic | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not affected |

---

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

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

drupal 7 not affected per Debian

## 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.1/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-2019-6340)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2019-6340)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2019-6340)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2019-6340)

### Other references

* <https://www.drupal.org/sa-core-2019-003>
* <https://www.synology.com/security/advisory/Synology_SA_19_09>
* <https://www.cve.org/CVERecord?id=CVE-2019-6340>
* <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>
