CVE-2019-6340Drupal Core Remote Code Execution Vulnerability
CVSS score
8.1
High
CVSS 3.1 from NVD
Exploit probability (EPSS)
92.0%
92.0% chance of exploitation in the next 30 days, higher than 99.8% of all CVEs.
CISA KEV
Actively exploited
Added to KEV on 25 Mar 2022.
US federal deadline to fix: 15 Apr 2022.
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.)
Source: NVD · CNA: mlhess@drupal.org
How to fix it, step by step
Treat it as urgent
Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 25 Mar 2022.
US federal agencies must fix it by 15 Apr 2022. It's a sensible deadline for everyone else too.
CISA's full instruction
Apply updates per vendor instructions.
Check whether you're affected
Find every system running Drupal, Drupal Core and compare its version with the affected versions.
Update to a fixed version
- Update Drupal, Drupal Core to 8.5.11, 8.6.10 or later, on the branch you run.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Check for signs of compromise
Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| Drupal Drupal | ≥ 8.5.0, < 8.5.11 · ≥ 8.6.0, < 8.6.10 |
| Drupal Drupal Core | ≥ 8.5, < 8.5.11 · ≥ 8.6, < 8.6.10 |
Weakness
- CWE-502 deserialization of untrusted data
Timeline
- Published:
- Added to CISA KEV:
- Last modified:
Frequently asked questions
Is CVE-2019-6340 being exploited?
Yes. CISA added CVE-2019-6340 to its Known Exploited Vulnerabilities catalog on 25 Mar 2022, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 92.0% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2019-6340?
CVE-2019-6340 has a CVSS 3.1 base score of 8.1 (high).
Which versions are affected?
Drupal Drupal (≥ 8.5.0, < 8.5.11; ≥ 8.6.0, < 8.6.10), Drupal Drupal Core (≥ 8.5, < 8.5.11; ≥ 8.6, < 8.6.10)
Is there a patch for CVE-2019-6340?
The official record links to vendor advisories or patches; see “What to do” above.
References
- www.drupal.org/sa-core-2019-003(Mitigation, Vendor Advisory)
- www.exploit-db.com/exploits/46452/(Patch, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/46459/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/46510/(Exploit, Third Party Advisory)
- www.securityfocus.com/bid/107106(Broken Link, Third Party Advisory, VDB Entry)
- www.synology.com/security/advisory/Synology_SA_19_09(Third Party Advisory)
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340(US Government Resource)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.