Skip to content
OpenAdvisories
High · 8.1 Known exploited Scanner template Public exploit CVE-2019-6340 DRUPAL-CORE-2019-003EUVD-2022-2184GHSA-3gx6-h57h-rm27

Drupal core - Highly critical - Remote Code Execution

Published Feb 21, 2019 · Updated Oct 21, 2025 · Assigned by drupal

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

Affected products

VendorProductAffectedFixed
Drupal Drupal Core 8.5 – < 8.5.11, 8.6 – < 8.6.10 8.5.11

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

GitHub 11 repositories · most starred shown

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist drupal/core >= 8.0.0, < 8.5.11 · >= 8.6.0, < 8.6.10 8.5.11, 8.6.10 DRUPAL-CORE-2019-003
Packagist drupal/core >= 8.6.0, < 8.6.10 8.6.10 GHSA-3gx6-h57h-rm27
Packagist drupal/core >= 7.0.0, < 7.62.0 7.62.0 GHSA-3gx6-h57h-rm27
Packagist drupal/core >= 8.0.0, < 8.5.11 8.5.11 GHSA-3gx6-h57h-rm27
Packagist drupal/drupal >= 7.0.0, < 7.62.0 7.62.0 GHSA-3gx6-h57h-rm27
Packagist drupal/drupal >= 8.0.0, < 8.5.11 8.5.11 GHSA-3gx6-h57h-rm27
Packagist drupal/drupal >= 8.6.0, < 8.6.10 8.6.10 GHSA-3gx6-h57h-rm27

Advisories 1

References