CVE-2019-6340
Drupal core - Highly critical - Remote Code Execution
- Published
- Feb 21, 2019
- Updated
- Oct 21, 2025
- Assigning CNA
- drupal
- Evidence observed
- Feb 23, 2019
Primary CVSS
nvd · CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HHigh · next 30 days
- Percentile
- 99.8%
- Model date
- Oct 15, 2026
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
CISA Known Exploited
This CVE appears in the CISA Known Exploited Vulnerabilities catalog.
Summary
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.)
Sources
- Drupal - Remote Code ExecutionTemplate
http/cves/2019/CVE-2019-6340.yaml
Nuclei TemplatesDeclared conditions
- network: http($.protocol_keys)
- verification: status,word($.matchers[*].type)
modules/exploits/unix/webapp/drupal_restws_unserialize.rb
Metasploit Framework modulesDeclared conditions
- platform: PHP,Unix($.exploit_unix/webapp/drupal_restws_unserialize.platform)
- verification: check_declared($.exploit_unix/webapp/drupal_restws_unserialize.check)
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.