CVE-2019-6340: Drupal Core Remote Code Execution Vulnerability
Vulnerability summary
CVE-2019-6340 is a high (CVSS 8.1) Deserialization of Untrusted Data vulnerability in Drupal Core. It is known to be exploited: CISA lists it, first on 25-03-2022. EPSS estimates a 92.02% chance of exploitation in the next 30 days, higher than 99.8% of scored vulnerabilities. 4 public exploits are recorded.
Timeline
- 21-02-2019PublishedVulnerability first disclosed.
- 25-03-2022Added to CISA KEVDrupal Core Remote Code Execution Vulnerability
- 15-04-2022CISA remediation dueApply updates per vendor instructions.
- 21-10-2025Last modifiedVulnerability information updated.
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.)
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
92.02%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 92.02% on 20-09-2026
Known exploited
Compare KEV catalogs- Added
- 25-03-2022
- Federal due date
- 15-04-2022
CISA required action
Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2019-6340
Public exploits
4 foundDrupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit)
Maturity: weaponized
Drupal < 8.6.10 / < 8.5.11 - REST Module Remote Code Execution
Maturity: poc
Drupal < 8.6.9 - REST Module Remote Code Execution
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Drupal2 products
- drupal≥ 8.5.0, < 8.5.11 | ≥ 8.6.0, < 8.6.10
- drupal core≥ 8.5, < 8.5.11 | ≥ 8.6, < 8.6.10
1 vendor · 2 products
References
7 links- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340Government ResourceUS Government Resource