CVE-2019-6340
Drupal core - Highly critical - Remote Code Execution
- Published
- Updated
- Reserved
- 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.)
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Drupal Core Remote Code Execution Vulnerability.
- Added
- 25 Mar 2022
- Fix due (US federal)
- 15 Apr 2022
- Used by ransomware
- Not known
Apply updates per vendor instructions.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 92.0% · top 0.2% of all CVEs (4 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.1.
Weakness
Affected products
- affected 8.5 – < 8.5.11
- affected 8.6 – < 8.6.10
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistdrupal/coreGHSA-3gx6-h57h-rm27 (opens in a new tab)
- Packagistdrupal/drupalGHSA-3gx6-h57h-rm27 (opens in a new tab)
References (7)
- https://www.synology.com/security/advisory/Synology_SA_19_09 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 46452 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- https://www.drupal.org/sa-core-2019-003 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 46510 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 107106 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- 46459 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-3gx6-h57h-rm27 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2019-6340)Record last updated .