Vulnerability · CVE-2019-6340
Drupal Core Remote Code Execution Vulnerability
Published Feb 21, 2019 · catalog updated Jun 16, 2026 · Drupal Drupal Core
Patch now
CVE-2019-6340 is in the CISA known-exploited catalog, due Apr 15, 2022. Confirm Drupal Drupal Core against the vendor advisory and apply that fix. The CVSS score does not change the priority.
- Severity
- High8.1
- Known exploitation
- CISA KEV and VulnCheck KEV
- EPSS
- 92.02%
- Remediation
- Remediation guidance
- Affected products
- cpe drupal/drupal · vendor Drupal Core · vendor Drupal Drupal Core
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.)
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- cpe drupal/drupalversion unspecified
- vendor Drupal Coreversion unspecified
- vendor Drupal Drupal Coreversion unspecified
How to fix CVE-2019-6340
Recommended remediation
Apply updates per vendor instructions. CISA due date Apr 15, 2022.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
CVE-2019-6340 is in the CISA known-exploited catalog, due Apr 15, 2022. Confirm Drupal Drupal Core against the vendor advisory and apply that fix. The CVSS score does not change the priority.
Which versions are affected?
Affected version ranges are not on this record. Apply updates per vendor instructions.
What should an analyst verify?
CWE-502: Deserialization of Untrusted Data. EPSS 92.02%. The CISA KEV listing is the exploitation evidence. A public exploit reference is linked in Sources. That is not the same as confirmed exploitation. Use the source links for the original advisory.
Technology hubs
Code
The project this record applies to. Exploit listings stay in References.
No public source repository is identified for this product.
Timeline
Detection, updates, and resolution for this record.
Feb 21, 2019 · Catalog
Detected
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
Mar 25, 2022 · CISA KEV
Known exploited
Apply updates per vendor instructions.
Apr 15, 2022 · CISA KEV
Remediation due
Apply updates per vendor instructions.
Jun 16, 2026 · Catalog
Updated
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
Sources
- CISA KEVConfirmed exploitationCVE-2019-6340
In Drupal Core, some field types do not properly sanitize data from non-form sources. This can lead to arbitrary PHP code execution in some cases.
cisa.gov - CVE.orgVulnerability recordCVE-2019-6340
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2019-6340
30-day exploitation probability 92.0%
first.org - Exploit DatabasePublic exploit reference46452
Public archive entry. The exploit body is not stored here.
exploit-db.com - Exploit DatabasePublic exploit reference46510
Public archive entry. The exploit body is not stored here.
exploit-db.com - Metasploit ModulesPublic exploit moduleexploit_unix/webapp/drupal_restws_unserialize
Public module reference (normal). Module source is not copied into this catalog.
rapid7.com - NIST NVDVulnerability recordCVE-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
nvd.nist.gov - VulnCheck KEVConfirmed exploitationCVE-2019-6340
In Drupal Core, some field types do not properly sanitize data from non-form sources. This can lead to arbitrary PHP code execution in some cases.
vulncheck.com
References
- Broken Link · securityfocus.com
- VulnCheck exploitation evidence · blog.sonicwall.com
- VulnCheck exploitation evidence · dashboard.shadowserver.org
- VulnCheck exploitation evidence · dashboard.shadowserver.org
- CISA note · nvd.nist.gov
- VulnCheck exploitation evidence · unit42.paloaltonetworks.com
- VulnCheck exploitation evidence · cisa.gov
- Mitigation · drupal.org
- Patch · exploit-db.com
- Exploit · exploit-db.com
- Exploit · exploit-db.com
- VulnCheck exploitation evidence · lacework.com
- Third Party Advisory · synology.com
Freshness
Last verified in this catalog Oct 17, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.