Live threats

All CVEs / Drupal

CVE-2019-6340Drupal Core

Remote Code Execution without Authentication in Drupal Core

High 8.1 KEV No auth neededHigh EPSS

Priority
73
CVSS 3.1
8.1
EPSS
92.0%
probability of exploitation in 30 days · percentile 100
Auth required
No
In KEV since
Mar 25, 2022
CISA deadline
Apr 15, 2022
Ransomware use
Unknown
Published
Feb 21, 2019
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-502
SSVC (CISA)
Exploitation: active · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Drupal Core 8.5.x (before 8.5.11) and 8.6.x (before 8.6.10) fail to properly sanitize data from non-form sources in certain field types, allowing arbitrary PHP code execution. The vulnerability is triggered if the REST module is enabled with PATCH/POST requests, or if other web services modules are active. CISA confirmed this vulnerability is actively exploited.

Show the original NVD text

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 text, unmodified. NVD.

Exploitation confirmed by CISA

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.

Action required by CISA: Apply updates per vendor instructions.

Source text, unmodified. CISA KEV.

What to do

Patch available · fixed versions: 8.5.11, 8.6.10

Update Drupal Core to version 8.5.11 or 8.6.10 as applicable. If you use web services modules, apply associated updates as well.

Vendor advisory · www.drupal.org ↗

  1. Apply the vendor's security update for Core.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was April 15, 2022.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist drupal/core ≥ 8.0.0 < 8.5.11 8.5.11 composer require "drupal/core:^8.5.11"
Packagist drupal/core ≥ 8.6.0 < 8.6.10 8.6.10 composer require "drupal/core:^8.6.10"
Packagist drupal/core ≥ 8.6.0 < 8.6.10 8.6.10 composer require "drupal/core:^8.6.10"
Packagist drupal/core ≥ 7.0.0 < 7.62.0 7.62.0 composer require "drupal/core:^7.62.0"
Packagist drupal/core ≥ 8.0.0 < 8.5.11 8.5.11 composer require "drupal/core:^8.5.11"
Packagist drupal/drupal ≥ 7.0.0 < 7.62.0 7.62.0 composer require "drupal/drupal:^7.62.0"
Packagist drupal/drupal ≥ 8.0.0 < 8.5.11 8.5.11 composer require "drupal/drupal:^8.5.11"
Packagist drupal/drupal ≥ 8.6.0 < 8.6.10 8.6.10 composer require "drupal/drupal:^8.6.10"

Per OSV / GitHub Advisories (DRUPAL-CORE-2019-003, GHSA-3gx6-h57h-rm27). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
drupaldrupal≥ 8.5.0 < 8.5.11
drupaldrupal≥ 8.6.0 < 8.6.10

Official sources

References

Links published by the sources. Open them with care.