# CVE-2019-6340: Drupal Core Remote Code Execution Vulnerability

Source: https://junglewise.ai/threats/cve-2019-6340-drupal-core-remote-code-execution-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-13. Updated: 2026-05-10  
License: CC BY 4.0 with a link back

CVE-2019-6340 · Severity: critical · CVSS 3 · Exploited in the wild · Published 2022-05-13

Drupal Core contains a remote code execution vulnerability due to improper sanitization of data from non-form sources in certain field types. An attacker can exploit this by sending malicious PATCH or POST requests to sites with RESTful Web Services or similar modules enabled, potentially leading to arbitrary PHP code execution.

Technologies: [Drupal Core](https://junglewise.ai/threats/technologies/core), [drupal/core (Packagist)](https://junglewise.ai/threats/technologies/packagist-drupal-core), [drupal/drupal (Packagist)](https://junglewise.ai/threats/technologies/drupal-drupal). Vendors: [Drupal](https://junglewise.ai/threats/vendors/drupal), [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2019-6340 exploited in the wild?** Yes. CVE-2019-6340 is known to be exploited in the wild, first recorded on 25 March 2022. Treat it as urgent.

**How severe is CVE-2019-6340?** Critical severity, with a CVSS score of 3, published 13 May 2022.

**Which products and versions are affected?** drupal/core (Packagist) ECOSYSTEM:introduced=8.0.0,fixed=8.5.11|ECOSYSTEM:introduced=8.6.0,fixed=8.6.10, ECOSYSTEM:introduced=8.6.0,fixed=8.6.10; drupal/drupal (Packagist) ECOSYSTEM:introduced=7.0.0,fixed=7.62.0.

**Is there a fix for CVE-2019-6340?** Yes. drupal/core (Packagist): upgrade to 8.5.11, 8.6.10 or later; drupal/drupal (Packagist): upgrade to 7.62.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2019-6340 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2019-6340?** Check whether you run Drupal Core, drupal/core (Packagist) or drupal/drupal (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- drupal/core (Packagist): upgrade to 8.5.11, 8.6.10 or later

  ```sh
  composer require drupal/core:^8.6.10
  ```

- drupal/drupal (Packagist): upgrade to 7.62.0 or later

  ```sh
  composer require drupal/drupal:^7.62.0
  ```


## Affected products

- Drupal Drupal Core 8.5.x before 8.5.11, 8.6.x before 8.6.10

## Identifiers

- CVE-2019-6340
- DRUPAL-CORE-2019-003
- GHSA-3gx6-h57h-rm27

## Timeline

- 2019-02-20: disclosed: Initial advisory date based on CVE ID and early references.
- 2022-03-25: kev added: Added to CISA Known Exploited Vulnerabilities Catalog.
- 2019-03-05: exploited: Exploit code published on Exploit-DB.

## Related threats

- [Drupal core Link module cross-site scripting in markup sanitization](https://junglewise.ai/threats/cve-2026-108515-drupal-core-2026-015-the-drupal-core-link-module-provides-a)
- [Drupal Navigation module cross-site scripting in attributes](https://junglewise.ai/threats/cve-2026-108514-drupal-core-2026-016-the-navigation-module-doesn-t-sufficiently)
- [Drupal Core remote code execution in Field UI module](https://junglewise.ai/threats/cve-2026-108097-drupal-core-2026-014-a-remote-code-execution-vulnerability)
- [Drupal cross-site scripting in CKEditor WYSIWYG](https://junglewise.ai/threats/drupal-core-2026-013-the-drupal-project-uses-the-ckeditor-https-github-f5b3da40)
- [Drupal stored cross-site scripting in Layout Builder](https://junglewise.ai/threats/cve-2026-55805-drupal-stored-cross-site-scripting-in-layout-builder)
