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

- Priority: **Act now**
- Reason: Listed as exploited by CISA (25-03-2022)
- Next step: Check the vendor advisory
- Status: published
- Published: 2019-02-21 · Modified: 2025-10-21
- Record: https://cvemate.com/vulnerability/CVE-2019-6340 · JSON: https://cvemate.com/vulnerability/CVE-2019-6340/json

## Description

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

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 92.017%, percentile 99.819%, as of 2026-12-04
- Known exploited (KEV): CISA listed 2022-03-25, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 4 (exploit-database, metasploit)

## Affected

- drupal drupal: ≥ 8.5.0, \< 8.5.11 \| ≥ 8.6.0, \< 8.6.10
- drupal drupal core: ≥ 8.5, \< 8.5.11 \| ≥ 8.6, \< 8.6.10

## References

- <https://www.synology.com/security/advisory/Synology_SA_19_09>
- <https://www.exploit-db.com/exploits/46452/>
- <https://www.drupal.org/sa-core-2019-003>
- <https://www.exploit-db.com/exploits/46510/>
- <http://www.securityfocus.com/bid/107106>
- <https://www.exploit-db.com/exploits/46459/>
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340>

---

Data as of 2026-12-05T08:59:07.699Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
