Security Resilience

CVE-2019-6340

RCE in Drupal 8.5.0 – 8.5.11

CISA KEVActive ExploitationEUVD ExploitedPublic PoCRCEDeserialization
Published
21 February 2019
Modified
07 November 2025
KEV Added
25 March 2022
Patch / advisory
CVSS Score v3.1 8.1
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.92 99.8th percentile
Risk Priority 86 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2019-6340 is a high-severity Deserialization of Untrusted Data (CWE-502) vulnerability in Drupal. Its CVSS base score is 8.1 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked in the top 0.2% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog; a public proof-of-concept is referenced.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2019-6340 is a deserialization flaw (CWE-502) in certain Drupal field types that fail to sanitize input originating from non-form sources. It affects Drupal 8.5.x releases prior to 8.5.11 and 8.6.x releases prior to 8.6.10. A site is vulnerable only when the core RESTful Web Services module is enabled and configured to accept PATCH or POST requests, or when an alternative web-services module such as JSON:API is present.

An unauthenticated remote attacker who can reach an exposed web-services endpoint can supply a crafted payload that triggers arbitrary PHP code execution. The attack requires a complex set of conditions (CVSS AC:H) but needs no user interaction or credentials, resulting in full confidentiality, integrity, and availability impact.

The Drupal security advisory SA-CORE-2019-003 recommends immediate upgrade to the fixed releases and states that sites not using the affected modules are not at risk. Public exploit code for the vulnerability has been published on Exploit-DB.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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

CWE(s)
KEV Date Added
25 March 2022

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-55636Same product: Drupal Drupal
CVE-2024-55637Same product: Drupal Drupal
CVE-2024-55638Same product: Drupal Drupal
CVE-2025-13081Same product: Drupal Drupal
CVE-2026-9082Same product: Drupal Drupalboth on KEV
CVE-2026-55803Same product: Drupal Drupal
CVE-2025-31674Same product: Drupal Drupal
CVE-2026-6366Same product: Drupal Drupal
CVE-2026-55804Same product: Drupal Drupal
CVE-2024-11942Same product: Drupal Drupal

Affected Assets

drupal
drupal
8.5.0 — 8.5.11 · 8.6.0 — 8.6.10

Mitigating Controls

Likely Mitigating Controls

Our mappings. Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-502

Penetration testing supplies malicious serialized objects, detecting unsafe deserialization and supporting corrective actions.

addresses: CWE-502

Evaluation of untrusted data handling (deserialization testing) reveals unsafe processing, which the required remediation process addresses.

addresses: CWE-502

Untrusted serialized data can be deserialized and observed inside the chamber, blocking gadget-chain exploitation outside the sandbox.

addresses: CWE-502

Validates or rejects untrusted serialized data before deserialization occurs.

addresses: CWE-502

Identifies and blocks malicious code introduced through deserialization of untrusted data at system boundaries.

addresses: CWE-502

Integrity verification of serialized information can detect tampering before deserialization occurs.

addresses: CWE-502

Provenance of associated data allows detection of untrusted sources before deserialization or processing occurs.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing includes validation of deserialization routines and the use of untrusted data, reducing the likelihood that unsafe object reconstruction will be deployed.

prevents

Training technical teams on secure deserialization practices reduces a minority of CWE-502 instances, but developers remain fallible and the owner explicitly identified A.8.29 (security testing) as the strongest control for this weakness, with A.8.28 (secure coding) graded only `partial` on the same pair.

prevents

Requiring vetted libraries, regular updates and SAST before release reduces the likelihood that deserialization logic will accept and act on attacker-controlled serialized objects.

finds

Regular scanning of third-party libraries and timely patching reduce the likelihood that unsafe deserialization vulnerabilities remain active.

References