LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

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

RBRecent Breaches Vulnerability Intelligence·Mar 25, 2022
CVSS 8.1 · High⚠ Actively exploited (CISA KEV)
8.1
CVSS score
High
Severity
Active
CISA KEV
No
Ransomware use
Apr 15, 2022
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2019-6340 to its Known Exploited Vulnerabilities catalog on Mar 25, 2022, with a federal patch deadline of Apr 15, 2022 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

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

CVE-2019-6340 is a remote code execution vulnerability in Drupal Core. Certain field types fail to properly sanitize data that arrives from non-form sources, which can allow an attacker to achieve arbitrary PHP code execution on the server in some configurations. For teams running Drupal, this matters because successful exploitation can give an attacker the ability to run code in the context of the web application, potentially leading to full site compromise.

Public detail is limited to the high-level description above; exact affected releases, preconditions, and patch identifiers must be confirmed against the vendor advisory. CISA lists the required action as applying updates per vendor instructions. Ransomware use is not documented for this CVE.

How it works

The underlying weakness is CWE-502 (Deserialization of Untrusted Data). In Drupal Core, some field types do not adequately sanitize or validate data that is supplied outside normal form submission paths. When that data is later processed in a way that involves unserialization or equivalent handling of untrusted input, an attacker who can supply crafted content may cause the application to execute arbitrary PHP code.

At a technical level, the abuse path relies on the application accepting and processing attacker-controlled data through those field types without the same sanitization applied to ordinary form input. The result, in vulnerable setups, is code execution on the host running Drupal. Specific exploit mechanics, required privileges, or exact data formats are not provided in the available facts and should not be assumed; defenders should treat any untrusted input reaching those field-handling paths as potentially dangerous until the site is patched and verified.

Am I affected? How to find it in your systems

Drupal Core is commonly deployed as the foundation for public websites, intranets, and content-management platforms, often on LAMP/LEMP stacks or equivalent PHP hosting. Inventory every instance: check package managers, Composer lock files, Drupal’s own status report or admin UI version display, configuration-management inventories, and container or VM images that bundle Drupal.

If version or configuration details are unclear, treat the instance as potentially affected until confirmed clean against the advisory.

How to remediate

Patch first. Apply the Drupal Core updates specified in the vendor advisory for CVE-2019-6340, following the vendor’s instructions exactly. After upgrading, verify the running version and re-test critical field and content workflows.

CISA’s required action is to apply updates per vendor instructions; that remains the primary remediation.

If you can't patch immediately

Until the vendor update can be installed, reduce exposure with compensating controls tailored to this weakness and product class.

These measures only lower risk; they do not replace the vendor patch.

If your data may have been exposed

Actively exploited remote-code-execution vulnerabilities in web applications can lead to full site takeover and subsequent data theft or further lateral movement. If you have reason to believe an instance was vulnerable and reachable, investigate for compromise, rotate credentials and secrets that the application could access, and follow your incident-response process. You can run a free exposure scan of your email addresses against known breach data to check whether associated accounts have appeared in prior breaches while you complete containment and recovery.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedDrupal · Core
WeaknessCWE-502
CVSS base score8.1 (High)
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
PublishedFeb 21, 2019
Added to CISA KEVMar 25, 2022
Federal patch deadlineApr 15, 2022
Known ransomware useNot documented
Check if your data is exposed →

References

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities