CVE-2019-6340 · Severity: critical · CVSS 3 · Exploited in the wild · Published 2022-05-13
Drupal Core contains a remote code execution vulnerability due to improper sanitization of data from non-form sources in certain field types. An attacker can exploit this by sending malicious PATCH or POST requests to sites with RESTful Web Services or similar modules enabled, potentially leading to arbitrary PHP code execution.
Yes. drupal/core (Packagist): upgrade to 8.5.11, 8.6.10 or later; drupal/drupal (Packagist): upgrade to 7.62.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2019-6340 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2019-6340?
Check whether you run Drupal Core, drupal/core (Packagist) or drupal/drupal (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
drupal/core (Packagist): upgrade to 8.5.11, 8.6.10 or later
composer require drupal/core:^8.6.10
drupal/drupal (Packagist): upgrade to 7.62.0 or later
composer require drupal/drupal:^7.62.0
Affected products
Drupal Drupal Core 8.5.x before 8.5.11, 8.6.x before 8.6.10
Identifiers
CVE-2019-6340
DRUPAL-CORE-2019-003
GHSA-3gx6-h57h-rm27
Timeline
2019-02-20: disclosed: Initial advisory date based on CVE ID and early references.
2022-03-25: kev added: Added to CISA Known Exploited Vulnerabilities Catalog.
2019-03-05: exploited: Exploit code published on Exploit-DB.