ZeroHour

CVE-2019-6340

KEV PoC ×2large

Deserialization RCE in Drupal 8 Core Web Services (CVE-2019-6340)

CISA: Drupal Core Remote Code Execution Vulnerability

CVSS 3.1
8.1 high
EPSS
92%p100
Published
()
KEV added
AI analysis

Several field types in Drupal 8.5.x and 8.6.x fail to properly sanitize data arriving from non-form sources (CWE-502, deserialization of untrusted data), which can lead to arbitrary PHP code execution on the server. The flaw is triggered remotely when a site has the Drupal 8 RESTful Web Services (rest) core module enabled and accepts PATCH or POST requests, or when other web services modules are enabled, such as JSON:API on Drupal 8 or the Services and RESTful Web Services contributed modules on Drupal 7. A successful attack yields unauthenticated remote code execution with high impact on confidentiality, integrity, and availability, typically running as the web server user. Only Drupal sites meeting the web-services conditions are affected: Drupal 8 sites running versions before 8.5.11 or 8.6.10, and Drupal 7 sites using the Services or RESTful Web Services contributed modules. The flaw has public proof-of-concept exploits on Exploit-DB, was reported as under active exploitation shortly after disclosure, and is listed in CISA's Known Exploited Vulnerabilities catalog (added 2022-03-25).

What to do: Upgrade Drupal 8 core to 8.5.11 or later, or 8.6.10 or later, per vendor instructions. If patching is not immediately possible, disable the RESTful Web Services and JSON:API modules or restrict untrusted PATCH/POST requests to their endpoints; Drupal 7 sites using Services or RESTful Web Services should apply the contributed module updates from this advisory. Review web server and module logs for suspicious POST/PATCH requests to REST or JSON:API routes as evidence of compromise.

Affected
Drupal Core (Drupal 8)8.5.x before 8.5.11 and 8.6.x before 8.6.10, when the RESTful Web Services (rest) core module is enabled with PATCH/POST allowed, or when other web services mod
Drupal 7 with contributed web services modulesDrupal 7 sites using the Services or RESTful Web Services contributed modules (Drupal 7 core itself requires no update; associated contributed module updates sh
Estimated exposure
largeroughly 10,000–100,000 sites plausibly exposed (a subset of the hundreds of thousands of Drupal 8 deployments, limited to those with REST/JSON:API web services… — Drupal 8 powers hundreds of thousands of websites, but only the subset that enabled the core REST module or JSON:API/other web services modules is exposed, which public scans and typical deployment patterns suggest is on the order of tens…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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

CISA Known Exploited Vulnerability
Affected
Drupal Core
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
drupal
Products
drupal
Ecosystems
Drupal
Weakness
CWE-502
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news