CVE-2019-6340 — Drupal Core Remote Code Execution Vulnerability
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.)
Who exploits it and how urgent it is
A 0–100 score combining confirmed exploitation, ransomware and APT use, public exploits, EPSS and severity.
How the score was calculated
- Confirmed exploitation (CISA KEV)+35
- Public exploit/PoC (nuclei, metasploit, exploitdb, github)+20
- EPSS 92% (30-day exploitation probability)+15
- Technical severity (high)+6
The score orders the patch queue; it does not replace your asset context (internet exposure, criticality, compensating controls).
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the sources call it.
CISA SSVC assessment CISA
Three decision points CISA publishes for the CVEs it assesses (SSVC 2.0.3). A stakeholder decision, not a severity score.
Remediation
Fixes and mitigations documented by the sources — linked to the original advisory.
- Documented mitigation — www.drupal.org (NIST National Vulnerability Database)
- Documented patch — www.exploit-db.com (NIST National Vulnerability Database)
- Composer Drupal/core: fixed in version 8.6.10 — github.com (GitHub Security Advisories)
- Composer Drupal/core: fixed in version 7.62.0 — github.com (GitHub Security Advisories)
- Composer Drupal/core: fixed in version 8.5.11 — github.com (GitHub Security Advisories)
- Composer Drupal/drupal: fixed in version 7.62.0 — github.com (GitHub Security Advisories)
- Composer Drupal/drupal: fixed in version 8.5.11 — github.com (GitHub Security Advisories)
- Composer Drupal/drupal: fixed in version 8.6.10 — github.com (GitHub Security Advisories)
CISA required action CISA
Apply updates per vendor instructions.
US federal deadline: Apr 15, 2022 — passed 1645 day(s) ago
First 24 hours
Ordered from the record’s own fields — exposure first, because you cannot patch what you have not found. A rule-generated starting point.
- Identify exposed assets running the affected vendor/product/version combinations (Drupal Drupal, Drupal Drupal core, Composer Drupal/core…).
- Treat as emergency remediation: the CVE is in CISA KEV (confirmed exploitation).
- The attack is network-based and needs no privileges: restrict exposure (ACLs, VPN, WAF) until patched.
- Apply the fixed version or the patch documented under Remediation.
- EPSS ahead of 100% of scored CVEs: prioritize it in the patch queue.
- Search available logs for exploit probes matching the vulnerability class (insecure deserialization), errors and authentication anomalies.
Affected scope
Vendor, product and versions as the sources word them.
| Vendor | Product | Versions | Status | Source |
|---|---|---|---|---|
| Drupal | Drupal | ≥ 8.5.0 and < 8.5.11≥ 8.6.0 and < 8.6.10 | Vulnerable | NIST National Vulnerability Database |
| Drupal | Drupal core | ≥ 8.5 and < 8.5.11≥ 8.6 and < 8.6.10 | Vulnerable | CVE Program (cve.org) e CISA ADP |
| Composer | Drupal/core | ≥ 8.6.0 and < 8.6.10≥ 7.0.0 and < 7.62.0≥ 8.0.0 and < 8.5.11 | Vulnerable | GitHub Security Advisories |
| Composer | Drupal/drupal | ≥ 7.0.0 and < 7.62.0≥ 8.0.0 and < 8.5.11≥ 8.6.0 and < 8.6.10 | Vulnerable | GitHub Security Advisories |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Every base score collected
Sources score independently and may disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Scored by |
|---|---|---|---|---|---|
| 8.1 | CVSS 3.1 | High | 2.2 | 5.9 | nvd@nist.gov via NIST National Vulnerability Database |
| 8.1 | CVSS 3.1 | High | 2.2 | 5.9 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 via NIST National Vulnerability Database |
| 8.1 | CVSS 3.1 | High | — | — | CISA-ADP via CVE Program (cve.org) e CISA ADP |
| 8.1 | CVSS 3.0 | High | — | — | GitHub, Inc. via GitHub Security Advisories |
| 6.8 | CVSS 2.0 | Medium | 8.6 | 6.4 | nvd@nist.gov via NIST National Vulnerability Database |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (score shown at the top: nvd@nist.gov) Weakness MITRE
Weakness class according to MITRE’s CWE catalog.
CISA KEV details CISA
CISA lists a CVE once it has evidence of exploitation against real targets.
CISA records ransomware use only for campaigns it has confirmed, so “Unknown” means unrecorded, not ruled out. The deadline binds US federal agencies; for everyone else it is a reference date.
Public exploits, PoCs and detection templates
Public code that demonstrates or tests the flaw raises the odds of mass exploitation — and Nuclei templates help find vulnerable assets in your environment.
- Drupal RESTful Web Services unserialize() RCE normal Feb 20, 2019
- Drupal8's REST RCE, SA-CORE-2019-003, CVE-2019-6340 ★ 71 May 27, 2019
- Environment for CVE-2019-6340 (Drupal) ★ 42 Feb 23, 2019
- CVE-2019-6340-Drupal SA-CORE-2019-003 ★ 30 Feb 22, 2019
- CVE-2019-6340 POC Drupal rce ★ 11 Feb 25, 2019
- (CVE-2019-6340, CVE-2018-7600) drupal8-REST-RCE ★ 4 Aug 31, 2020
- CVE-2019-6340 Drupal 8.6.9 REST Auth Bypass examples ★ 2 Feb 25, 2019
- cve-2019-6340 ★ 0 Feb 26, 2019
- Bits generated while analyzing CVE-2019-6340 Drupal RESTful RCE ★ 0 Mar 12, 2019
- Drupal Drupal 8.6.x RCE Exploit ★ 0 May 1, 2021
- Sumitpathania03/Drupal-cve-2019-6340 ★ 0 Feb 22, 2023
Warning: public PoCs are sometimes disguised malware. Use them only for authorized testing in an isolated environment. This portal does not host exploit code — it only points to the sources.
EPSS over time FIRST
Oct 13, 2026 → Oct 15, 2026 · 3 reading(s) · max 92.02%
Detection
Read off the CVSS vector and the weakness class. Starting points, not tested rules.
- Prioritize edge telemetry for the network-reachable component (proxy, WAF, IDS/IPS).
- Monitor serialized objects in requests and unexpected processes spawned by the runtime.
- Hunt retroactively in logs from before Mar 25, 2022 (KEV listing): exploitation may have started earlier.
Timeline
What happened to this CVE, newest first.
- 2026
- Fix documented
- Affected products added · composer/drupal/core, composer/drupal/drupal
- Affected products added · drupal/drupal core
- SSVC assessment updated
- Record published
- Fix documented
- Affected products added · drupal/drupal
- CVSS changed · 8.1
- Source status changed · → Analyzed
- Added to CISA KEV (detected)
- Record created in this database
- 2022
- Added to CISA KEV catalog
- 2019
- CVE published
Source activity
Repeated readings are counted rather than listed.
- 2× References added · Oct 13, 2026 – Oct 13, 2026
- 1× Official description updated · Oct 13, 2026 – Oct 13, 2026
References
14 on the record
- www.drupal.org/sa-core-2019-003
- www.exploit-db.com/exploits/46452/
- www.cisa.gov/known-exploited-vulnerabilities-catalog
- www.exploit-db.com/exploits/46459/
- www.exploit-db.com/exploits/46452
- www.exploit-db.com/exploits/46459
- www.exploit-db.com/exploits/46510/
- www.synology.com/security/advisory/Synology_SA_19_09
- www.exploit-db.com/exploits/46510
- nvd.nist.gov/vuln/detail/CVE-2019-6340
- github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2019-634
- github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2019-6
- www.securityfocus.com/bid/107106
- github.com/advisories/GHSA-3gx6-h57h-rm27
Elsewhere on this site
Related CVEs (same products)
- Medium CVE-2026-55805 Drupal core - Moderately critical - Cross-site scripting - SA-CORE-2026-012 Aug 25, 2026
- Medium CVE-2026-15917 Drupal core - Moderately critical - Cross-site scripting - SA-CORE-2026-011 Aug 25, 2026
- Medium CVE-2026-15916 Drupal core - Moderately critical - Information disclosure - SA-CORE-2026-010 Aug 25, 2026
- Medium CVE-2026-55808 Drupal core - Moderately critical - Improper validation - SA-CORE-2026-009 Jul 10, 2026
- Medium CVE-2026-55804 Drupal core - Moderately critical - Gadget chain - SA-CORE-2026-006 Jul 10, 2026
- Medium CVE-2026-55806 Drupal core - Less critical - Cache poisoning and open redirect - SA-CORE-2026-007 Jul 10, 2026
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record
Text assembled only from the fields above — no additional claims.
What should defenders know first?
CVE-2019-6340 is "Drupal Core Remote Code Execution Vulnerability", rated High. It affects Drupal (Drupal); versions are in the scope table. It is in CISA KEV: there is evidence of real-world exploitation. CVSS 8.1 describes technical severity. EPSS 92.02% estimates the probability of exploitation in 30 days; neither replaces your asset context. First verify whether exposed or business-critical assets run the affected versions, apply vendor fixes or mitigations, and preserve logs for review.
Comments
Moderated technical discussion. Read the community guidelines.
No comments yet.
Sign in or create an account to comment and suggest corrections.