---
id: "CVE-2019-6340"
kind: "vulnerability"
aliases: ["CVE-2019-6340"]
title: "Drupal Core: Drupal Core Remote Code Execution Vulnerability"
severity: "critical"
cvss: 8.1
epss: 0.92017
exploited: true
status: "open"
category: "runtime"
products: [{"name": "Drupal Core", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["drupal", "exploited", "php", "runtime", "self-hosted"]
not_affected_if: ["default-config"]
published_at: "2019-02-21T21:29:00+00:00"
first_seen_at: "2026-10-23T19:11:52+00:00"
updated_at: "2026-10-23T21:57:35+00:00"
sources: [{"source": "kev", "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2019-6340", "first_seen_at": "2026-10-23T19:11:52+00:00"}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2019-6340", "first_seen_at": "2026-10-23T19:13:44+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-6340", "first_seen_at": "2026-10-23T21:57:35+00:00"}]
---

# Drupal Core: Drupal Core Remote Code Execution Vulnerability

Drupal Core does not properly sanitize data from non-form sources for some field types, which can lead to arbitrary PHP code execution. An attacker who can submit crafted data to an affected field can run code on the server.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:Drupal Core affected ? fixed ?

## Fix

Apply the Drupal Core updates per vendor instructions; the sources do not name the fixed version.

## Timeline

- 2026-10-23T19:11:52+00:00 kev https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2019-6340
- 2026-10-23T19:13:44+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2019-6340
- 2026-10-23T21:57:35+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2019-6340

## From the sources

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.)

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
