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

Severity
HIGH
CVSS v3
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
92.017%
chance of exploitation in the next 30 days
higher than 99.8% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2022-03-25
Public exploit code
Yes
Exploit references (NVD and CNA): 3
Metasploit modules: 1
Nuclei templates: 1
Exploit-DB: 3

Weakness

CISA Known Exploited Vulnerabilities entry

Vulnerability nameDrupal Core Remote Code Execution Vulnerability
Vendor / productDrupal / Core
Date added2022-03-25
Federal remediation due date2022-04-15
Required actionApply updates per vendor instructions.
Known ransomware campaign useUnknown

CISA SSVC decision points

Exploitationactive
Automatableno
Technical impacttotal
Scored2025-02-07

Timeline

  1. 2019-02-21Published by the CNA21:00 UTC
  2. 2019-02-23First Exploit-DB entry (EDB-ID 46452)2 days after publication
  3. 2022-03-25Added to the CISA KEV catalog1128 days after publication
  4. 2022-05-13GitHub advisory published (GHSA-3gx6-h57h-rm27)1177 days after publication
  5. 2025-02-07CISA SSVC decision recorded2178 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Exploit-DBTypePlatformPublishedEDB-verified
EDB-ID 46510remotephp2019-03-07yes
EDB-ID 46459webappsphp2019-02-25no
EDB-ID 46452webappsphp2019-02-23no

Nuclei templates:

GitHub advisory GHSA-3gx6-h57h-rm27, affected packages:

PackageVulnerable versionsFixed in
Packagist drupal/corefrom 7.0.0 before 7.62.07.62.0
Packagist drupal/corefrom 8.0.0 before 8.5.118.5.11
Packagist drupal/corefrom 8.6.0 before 8.6.108.6.10
Packagist drupal/drupalfrom 7.0.0 before 7.62.07.62.0
Packagist drupal/drupalfrom 8.0.0 before 8.5.118.5.11

1 more affected packages in the advisory.

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
drupal drupalfrom 8.5.0 before 8.5.11fixed in 8.5.11from 8.6.0 before 8.6.10fixed in 8.6.108.5.118.6.10

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources