CVE-2019-6340: Drupal Core Remote Code Execution
Drupal Core · listed in the CISA catalog of actively exploited vulnerabilities since 2022-03-25.
- CVSS v3.1 (CISA ADP)
- 8.1
- high
- EPSS (exploit probability, 30 days)
- 92%
- higher than 99.8% of all CVEs
- Added to CISA KEV
- 2022-03-25
- US federal due date 2022-04-15
- Automatable (CISA SSVC)
- no
- technical impact: total
CVE-2019-6340 explained
CVE-2019-6340 is a deserialization flaw in Drupal Core 8.5.x and 8.6.x. Some field types do not properly sanitize data from non-form sources, which can lead to arbitrary PHP code execution on sites with web services modules enabled. CISA lists it as known to be exploited, so affected sites should be updated promptly.
Impact
An unauthenticated remote attacker may execute arbitrary PHP code on the server. This leads to full loss of confidentiality, integrity and availability. Attack complexity is high, and exploitation needs certain conditions. A site is only affected if the core RESTful Web Services module is enabled and allows PATCH or POST requests, or if another web services module such as JSON:API is enabled. CISA rates the technical impact as total and the vulnerability as not automatable.
Who is affected
Drupal Core versions from 8.5 up to but not including 8.5.11, and from 8.6 up to but not including 8.6.10, are affected. The fixes are in 8.5.11 and 8.6.10. The description also names Drupal 7 sites that use the Services or RESTful Web Services modules. The Drupal 7 Services module itself does not need an update, but related contributed updates from the advisory should be applied.
Written with AI from the data on this page and checked against it automatically.
Official 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.
CISA notes
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- Drupal CoreAffectedFixed in
- ≥ 8.5, < 8.5.11
- ≥ 8.6, < 8.6.10
- 8.5.11
- 8.6.10
| Product | Affected | Fixed in |
|---|---|---|
| Drupal Core |
|
|
How to fix it
- Update to a fixed version: 8.5.11, 8.6.10.
- Vendor advisory: drupal.org/sa-core-2019-003
- CISA's deadline for US federal agencies: 2022-04-15 (passed) – a useful benchmark for everyone else, too.
What to do
- Update Drupal Core 8.5.x sites to
8.5.11and 8.6.x sites to8.6.10or later. - Apply the other contributed module updates named in the Drupal advisory, especially on Drupal 7 sites using Services.
- Until patched, disable web services modules such as RESTful Web Services and JSON:API, or block PATCH and POST requests to them.
- Review the server and site for signs of compromise, because the flaw is known to be exploited.
Written with AI from the data on this page and checked against it automatically.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-502 Deserialization of Untrusted Data
Questions about CVE-2019-6340
- Is every Drupal 8 site affected?
- No. A site running an affected version is only exposed if the core RESTful Web Services module is enabled and allows PATCH or POST requests, or if another web services module such as JSON:API is enabled.
- Is this vulnerability exploited in the wild?
- Yes. CISA added CVE-2019-6340 to its Known Exploited Vulnerabilities catalog on 2022-03-25. The required action is to apply updates per vendor instructions.
- Do Drupal 7 sites need an update?
- The Drupal 7 Services module itself does not need an update at this time. If Services is in use, apply the other contributed updates associated with the Drupal advisory.
Written with AI from the data on this page and checked against it automatically.
References
Vendor
Other advisories
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.