CVE-2019-6340
CVE-2019-6340 is a high-severity vulnerability in Drupal with a CVSS 3.x base score of 8.1. It is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, confirming it has been exploited in the wild (added 2022-03-25). The underlying weakness is classified as CWE-502.
Key facts
- Severity: High (CVSS 3.x base score 8.1)
- CVSS v2: 6.8
- EPSS exploit prediction: 92% (100th percentile)
- Actively exploited: Yes — listed in CISA KEV (added 2022-03-25)
- EU (EUVD) id: EUVD-2022-2184
- EU exploitation: Flagged exploited in the ENISA EU Vulnerability Database (since 2022-03-25)
- Weakness: CWE-502
- Affected product: Drupal
- Published:
- Last modified:
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.)
Frequently asked questions
- What is CVE-2019-6340?
- 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.)
- How severe is CVE-2019-6340?
- CVE-2019-6340 has a CVSS 3.x base score of 8.1, rated high severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2019-6340 being actively exploited?
- Yes. CVE-2019-6340 is on CISA's Known Exploited Vulnerabilities (KEV) catalog, added on 2022-03-25, which means active exploitation has been confirmed. It should be prioritised for remediation.
- What products are affected by CVE-2019-6340?
- CVE-2019-6340 affects Drupal. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2019-6340?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Because this CVE is known to be actively exploited, treat remediation as urgent — CISA KEV typically sets a short remediation deadline.
- Does CVE-2019-6340 have an EU (EUVD) identifier?
- Yes. CVE-2019-6340 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2022-2184. It is also flagged as exploited in the EUVD (since 2022-03-25).
- When was CVE-2019-6340 published?
- CVE-2019-6340 was published on 2019-02-21 and last updated on 2026-06-17.
References
- http://www.securityfocus.com/bid/107106
- https://www.drupal.org/sa-core-2019-003
- https://www.exploit-db.com/exploits/46452/
- https://www.exploit-db.com/exploits/46459/
- https://www.exploit-db.com/exploits/46510/
- https://www.synology.com/security/advisory/Synology_SA_19_09
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340
Affected products (1)
- cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*
More vulnerabilities in Drupal
- CVE-2009-3352 — Critical (CVSS 10.0): Multiple unspecified vulnerabilities in the quota_by_role (Quota by role) module for Drupal have unknown impact and…
- CVE-2026-9082 — Critical (CVSS 9.8): Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Drupal Drupal…
- CVE-2024-55638 — Critical (CVSS 9.8): Deserialization of Untrusted Data vulnerability in Drupal Core allows Object Injection.This issue affects Drupal Core:…
- CVE-2024-55637 — Critical (CVSS 9.8): Deserialization of Untrusted Data vulnerability in Drupal Core allows Object Injection.This issue affects Drupal Core:…
- CVE-2024-55636 — Critical (CVSS 9.8): Deserialization of Untrusted Data vulnerability in Drupal Core allows Object Injection.This issue affects Drupal Core:…
- CVE-2020-13675 — Critical (CVSS 9.8): Drupal's JSON:API and REST/File modules allow file uploads through their HTTP APIs. The modules do not correctly run…
Other CWE-502 (Deserialization of Untrusted Data) vulnerabilities
- CVE-2026-41104 — Critical (CVSS 10.0): Deserialization of untrusted data in Microsoft Planetary Computer Pro allows an unauthorized attacker to disclose…
- CVE-2026-43633 — Critical (CVSS 10.0): HestiaCP versions 1.9.0 through 1.9.4 contain a deserialization vulnerability in the web terminal component caused by a…
- CVE-2026-33819 — Critical (CVSS 10.0): Deserialization of untrusted data in Microsoft Bing allows an unauthorized attacker to execute code over a network.
- CVE-2026-20131 — Critical (CVSS 10.0): A vulnerability in the web-based management interface of Cisco Secure Firewall Management Center (FMC) Software could…
- CVE-2026-25632 — Critical (CVSS 10.0): EPyT-Flow is a Python package designed for the easy generation of hydraulic and water quality scenario data of water…
- CVE-2025-14931 — Critical (CVSS 10.0): Hugging Face smolagents Remote Python Executor Deserialization of Untrusted Data Remote Code Execution Vulnerability.…
Browse all CWE-502 (Deserialization of Untrusted Data) vulnerabilities →