CVE-2019-6340
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.)
Weakness
- CWE-502: Deserialization of Untrusted Data
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Drupal Core Remote Code Execution Vulnerability |
|---|---|
| Vendor / product | Drupal / Core |
| Date added | 2022-03-25 |
| Federal remediation due date | 2022-04-15 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-02-07 |
Timeline
- 2019-02-21Published by the CNA21:00 UTC
- 2019-02-23First Exploit-DB entry (EDB-ID 46452)2 days after publication
- 2022-03-25Added to the CISA KEV catalog1128 days after publication
- 2022-05-13GitHub advisory published (GHSA-3gx6-h57h-rm27)1177 days after publication
- 2025-02-07CISA SSVC decision recorded2178 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 46510 | remote | php | 2019-03-07 | yes |
| EDB-ID 46459 | webapps | php | 2019-02-25 | no |
| EDB-ID 46452 | webapps | php | 2019-02-23 | no |
Nuclei templates:
- CVE-2019-6340: Drupal - Remote Code Execution
GitHub advisory GHSA-3gx6-h57h-rm27, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Packagist drupal/core | from 7.0.0 before 7.62.0 | 7.62.0 |
| Packagist drupal/core | from 8.0.0 before 8.5.11 | 8.5.11 |
| Packagist drupal/core | from 8.6.0 before 8.6.10 | 8.6.10 |
| Packagist drupal/drupal | from 7.0.0 before 7.62.0 | 7.62.0 |
| Packagist drupal/drupal | from 8.0.0 before 8.5.11 | 8.5.11 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| drupal drupal | from 8.5.0 before 8.5.11fixed in 8.5.11from 8.6.0 before 8.6.10fixed in 8.6.10 | 8.5.118.6.10 |
References
- https://www.exploit-db.com/exploits/46452/
- https://www.drupal.org/sa-core-2019-003
- https://www.exploit-db.com/exploits/46459/
- https://www.exploit-db.com/exploits/46510/
- http://www.securityfocus.com/bid/107106
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340
- https://www.synology.com/security/advisory/Synology_SA_19_09
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2019-6340'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2019-6340'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2019-6340'curl 'https://api.contrastcyber.com/cve_products/CVE-2019-6340'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2019-6340'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).