# CVE-2019-6340: Drupal core - Highly critical - Remote Code Execution

> CVE-2019-6340: Drupal core - Highly critical - Remote Code Execution. CVSS 8.1 (CVSS 3.1), in CISA KEV.

Canonical: https://rewindex.com/cve/CVE-2019-6340
Last updated: 2025-10-21T23:45:43Z

- Published: 2019-02-21 21:00 UTC · Updated: 2025-10-21 23:45 UTC · Assigner: drupal
- CVSS: 8.1 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 92.0%, 100th percentile (scored 2026-10-25)
- CISA KEV: yes, added 2022-03-25, federal due date 2022-04-15, ransomware use: Unknown

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

## CISA required action

Apply updates per vendor instructions.

## Affected vendors and products

- Drupal: Drupal Core

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2019-6340)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2019-6340)
- [https://www.drupal.org/sa-core-2019-003](https://www.drupal.org/sa-core-2019-003)
- [https://www.exploit-db.com/exploits/46452/](https://www.exploit-db.com/exploits/46452/)
- [https://www.exploit-db.com/exploits/46459/](https://www.exploit-db.com/exploits/46459/)
- [https://www.exploit-db.com/exploits/46510/](https://www.exploit-db.com/exploits/46510/)
- [https://www.synology.com/security/advisory/Synology\_SA\_19\_09](https://www.synology.com/security/advisory/Synology_SA_19_09)
- [http://www.securityfocus.com/bid/107106](http://www.securityfocus.com/bid/107106)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2019-6340 · Markdown: https://rewindex.com/cve/CVE-2019-6340.md · JSON: https://rewindex.com/api/v1/cves/CVE-2019-6340 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T01:58:52.402Z
