Stackurity Start free trial

CVEs / CVE-2019-6340

CVE-2019-6340: Drupal Core Remote Code Execution Vulnerability

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2019-6340

Summary

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, Known Exploited Vulnerabilities catalog

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.)

The CVE record, via NVD · published 21 Feb 2019 · NVD status: Analyzed

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
Drupal Drupal Corefrom 8.5, before 8.5.118.5.11
Drupal Drupal Corefrom 8.6, before 8.6.108.6.10
As stated by OSV
ProductAffectedFixed in
drupal/core (Packagist)from 8.6.0, before 8.6.108.6.10
drupal/core (Packagist)from 7.0.0, before 7.62.07.62.0
drupal/core (Packagist)from 8.0.0, before 8.5.118.5.11
drupal/drupal (Packagist)from 7.0.0, before 7.62.07.62.0
drupal/drupal (Packagist)from 8.0.0, before 8.5.118.5.11
drupal/drupal (Packagist)from 8.6.0, before 8.6.108.6.10

Package versions from GHSA-3gx6-h57h-rm27.

Exploitation

In CISA KEV since25 Mar 2022
Due date for US federal agencies15 Apr 2022
Used in ransomware campaignsUnknown
Required actionApply updates per vendor instructions.

Severity

CVSS 3.18.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by NVD
WeaknessCWE-502

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.