LiveActive security incident?Get immediate response
CVE Record

CVE-2019-6340: Drupal core - Highly critical - Remote Code Execution

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

HighCVSS 8.1Known exploitedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

CVE-2019-6340 is a Drupal core remote code execution flaw. Some exposed Drupal web service configurations could let an unauthenticated attacker execute PHP code. The issue affects Drupal 8.5.x before 8.5.11 and 8.6.x before 8.6.10 when specific REST or web services conditions are present.

Executive priority

Treat internet-facing affected Drupal systems as urgent. The combination of remote code execution, unauthenticated attack surface, public exploit references, and CISA KEV status creates material business risk where advisory conditions are met.

Technical view

Drupal did not properly sanitize data from non-form sources for some field types. Exposure requires Drupal core REST with PATCH or POST enabled, or another web services module such as JSON:API, Services, or RESTful Web Services. The CVE is categorized as CWE-502 and scored CVSS 8.1 high.

Likely exposure

Highest risk is internet-facing Drupal 8.5 or 8.6 sites with REST, JSON:API, Services, or similar web services enabled. Sites without these web service paths are less likely affected, based on the advisory conditions.

Exploitation context

CISA lists CVE-2019-6340 in the Known Exploited Vulnerabilities catalog, so active exploitation is supported. Exploit-DB references also indicate public exploit material exists, but this assessment does not rely on or describe exploit mechanics.

Researcher notes

The source bundle confirms affected Drupal core branches and conditional exposure, but does not prove every Drupal 7 Services deployment is affected. Validate module state, request methods, and Drupal core version before assigning exposure.

Mitigation direction

  • Upgrade Drupal 8.5.x to 8.5.11 or later.
  • Upgrade Drupal 8.6.x to 8.6.10 or later.
  • Review Drupal SA-CORE-2019-003 for current vendor guidance.
  • Disable unnecessary REST or web services modules where possible.
  • Restrict PATCH and POST access to exposed web service endpoints.

Validation and detection

  • Inventory Drupal sites and confirm exact core versions.
  • Check whether REST, JSON:API, Services, or RESTful Web Services are enabled.
  • Verify whether PATCH or POST requests are allowed to REST endpoints.
  • Review logs for suspicious web service requests around exposed endpoints.
  • Confirm remediation by rechecking version and module configuration.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-502: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2019-6340 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.1 (3.1)
Known Exploited
Yes
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
7Source links

CISA KEV status

Status
Known exploited
Source
CISA / ADP
Date added
Not provided

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.1CVSS 3.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H2.25.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

8.1High
CVSS 3.1 vector shape for CVE-2019-6340Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
DrupalDrupal Core8.5, 8.6Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-502 · source CWE mapping

Deserialization of Untrusted Data

Deserialization of Untrusted Data represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.