CVE-2019-6340
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.)
CVSS
- Version: 3.1
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Base score: 8.1
Exploitation probability (EPSS)
- Probability of exploitation in the next 30 days: 92%
- Percentile among all scored CVEs: 100
- Score date: 10/7/2026
EPSS (Exploit Prediction Scoring System, FIRST) estimates how likely a vulnerability is to be exploited in the wild within 30 days. It complements CVSS (impact) and CISA KEV (confirmed exploitation).
CISA KEV — actively exploited
- Added to catalog: 3/25/2022
- Remediation due date: 4/15/2022
- Known ransomware use: Unknown
💥 Public exploits
Exploit code or detection templates are publicly available. This is not the same as confirmed active exploitation (KEV), but it raises the risk: patch with priority.
- Metasploit module (reliable, widely available exploit) · Drupal RESTful Web Services unserialize() RCE
- Published on Exploit-DB · Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit) (3/7/2019)
- Published on Exploit-DB · Drupal < 8.6.9 - REST Module Remote Code Execution (2/25/2019)
- Published on Exploit-DB · Drupal < 8.6.10 / < 8.5.11 - REST Module Remote Code Execution (2/23/2019)
- Nuclei template (automated mass detection) · Drupal - Remote Code Execution
- Proof of concept on GitHub (unverified) · List of proofs of concept on GitHub
⚠️ GitHub proofs of concept are not verified: some are fake or contain malware. Never run them outside an isolated lab.
🎯 ATT&CK techniques
How this vulnerability is exploited and what the attacker gains, in MITRE ATT&CK terms.
- Exploitation
T1190Exploit Public-Facing Applicationinitial access90 % - Primary impact
T1059Command and Scripting Interpreterexecution85 % - Secondary impact
T1565.001Stored Data Manipulationimpact70 %
Vulnerabilidad de deserialización insegura (CWE-502) en servicios REST/JSON:API de Drupal sin autenticación (AV:N, PR:N), permitiendo ejecución remota de código PHP mediante PATCH/POST. KEV activo confirma explotación real en campo.
Inferred by our analysis agent from the official description, CVSS vector and CWE, and checked by a supervisor. May contain errors.
🛡️ ATT&CK mitigations that cover these techniques
Affected technologies (1)
CWEs
- CWE-502
- CWE-502
References
- http://www.securityfocus.com/bid/107106
- https://www.drupal.org/sa-core-2019-003
- https://www.exploit-db.com/exploits/46452/
- https://www.exploit-db.com/exploits/46459/
- https://www.exploit-db.com/exploits/46510/
- https://www.synology.com/security/advisory/Synology_SA_19_09
- http://www.securityfocus.com/bid/107106
- https://www.drupal.org/sa-core-2019-003
- https://www.exploit-db.com/exploits/46452/
- https://www.exploit-db.com/exploits/46459/
- https://www.exploit-db.com/exploits/46510/
- https://www.synology.com/security/advisory/Synology_SA_19_09
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340
Raw JSON (NVD)
Show
{
"id": "CVE-2019-6340",
"cveTags": [],
"metrics": {
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2019-6340",
"role": "CISA Coordinator",
"options": [
{
"exploitation": "active"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"version": "2.0.3",
"timestamp": "2025-02-07T12:38:47.444954Z"
}
}
],
"cvssMetricV2": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"cvssData": {
"version": "2.0",
"baseScore": 6.8,
"accessVector": "NETWORK",
"vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
"authentication": "NONE",
"integrityImpact": "PARTIAL",
"accessComplexity": "MEDIUM",
"availabilityImpact": "PARTIAL",
"confidentialityImpact": "PARTIAL"
},
"acInsufInfo": false,
"impactScore": 6.4,
"baseSeverity": "MEDIUM",
"obtainAllPrivilege": false,
"exploitabilityScore": 8.6,
"obtainUserPrivilege": false,
"obtainOtherPrivilege": false,
"userInteractionRequired": false
}
],
"cvssMetricV31": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"cvssData": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 8.1,
"attackVector": "NETWORK",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"integrityImpact": "HIGH",
"userInteraction": "NONE",
"attackComplexity": "HIGH",
"availabilityImpact": "HIGH",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
},
"impactScore": 5.9,
"exploitabilityScore": 2.2
},
{
"type": "Secondary",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"cvssData": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 8.1,
"attackVector": "NETWORK",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"integrityImpact": "HIGH",
"userInteraction": "NONE",
"attackComplexity": "HIGH",
"availabilityImpact": "HIGH",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
},
"impactScore": 5.9,
"exploitabilityScore": 2.2
}
]
},
"affected": [
{
"source": "mlhess@drupal.org",
"affectedData": [
{
"vendor": "Drupal",
"product": "Drupal Core",
"versions": [
{
"status": "affected",
"version": "8.5",
"lessThan": "8.5.11",
"versionType": "custom"
},
{
"status": "affected",
"version": "8.6",
"lessThan": "8.6.10",
"versionType": "custom"
}
]
}
]
}
],
"published": "2019-02-21T21:29:00.343",
"references": [
{
"url": "http://www.securityfocus.com/bid/107106",
"tags": [
"Broken Link",
"Third Party Advisory",
"VDB Entry"
],
"source": "mlhess@drupal.org"
},
{
"url": "https://www.drupal.org/sa-core-2019-003",
"tags": [
"Mitigation",
"Vendor Advisory"
],
"source": "mlhess@drupal.org"
},
{
"url": "https://www.exploit-db.com/exploits/46452/",
"tags": [
"Patch",
"Third Party Advisory",
"VDB Entry"
],
"source": "mlhess@drupal.org"
},
{
"url": "https://www.exploit-db.com/exploits/46459/",
"tags": [
"Exploit",
"Third Party Advisory",
"VDB Entry"
],
"source": "mlhess@drupal.org"
},
{
"url": "https://www.exploit-db.com/exploits/46510/",
"tags": [
"Exploit",
"Third Party Advisory"
],
"source": "mlhess@drupal.org"
},
{
"url": "https://www.synology.com/security/advisory/Synology_SA_19_09",
"tags": [
"Third Party Advisory"
],
"source": "mlhess@drupal.org"
},
{
"url": "http://www.securityfocus.com/bid/107106",
"tags": [
"Broken Link",
"Third Party Advisory",
"VDB Entry"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://www.drupal.org/sa-core-2019-003",
"tags": [
"Mitigation",
"Vendor Advisory"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://www.exploit-db.com/exploits/46452/",
"tags": [
"Patch",
"Third Party Advisory",
"VDB Entry"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://www.exploit-db.com/exploits/46459/",
"tags": [
"Exploit",
"Third Party Advisory",
"VDB Entry"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://www.exploit-db.com/exploits/46510/",
"tags": [
"Exploit",
"Third Party Advisory"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://www.synology.com/security/advisory/Synology_SA_19_09",
"tags": [
"Third Party Advisory"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340",
"tags": [
"US Government Resource"
],
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
}
],
"vulnStatus": "Analyzed",
"weaknesses": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"description": [
{
"lang": "en",
"value": "CWE-502"
}
]
},
{
"type": "Secondary",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"description": [
{
"lang": "en",
"value": "CWE-502"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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.)"
},
{
"lang": "es",
"value": "Algunos tipos de campos no sanean correctamente los datos provenientes de fuentes \"non-form\" en Drupal en sus versiones 8.5.x anteriores a la 8.5.11 y en las versiones 8.6.x anteriores a la 8.6.10. Esto puede provocar, en algunos casos, la ejecución de código PHP. Un sitio solo se ve afectado por esto si se cumple una de las siguientes condiciones. Este sitio tiene el módulo Drupal 8 core RESTful Web Services (rest) habilitado y permite peticiones PATCH o POST, o el sitio tiene otro módulo de servicios web habilitado, como JSON:API en Drupal 8 o Services o RESTful Web Services en Drupal 7. (Nota: El módulo de Drupal 7 Services mismo no precisa una actualización en este momento. Sin embargo, se deberían instalar otras actualizaciones contribuidas que estén asociadas con este aviso si \"Service\" se encuentra en uso.)"
}
],
"lastModified": "2026-06-17T02:39:02.497",
"cisaActionDue": "2022-04-15",
"cisaExploitAdd": "2022-03-25",
"configurations": [
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "C48137EC-482F-4A58-8C07-FCC401416C94",
"versionEndExcluding": "8.5.11",
"versionStartIncluding": "8.5.0"
},
{
"criteria": "cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "78790D50-3793-41B4-9490-78EDF9A1C4B4",
"versionEndExcluding": "8.6.10",
"versionStartIncluding": "8.6.0"
}
],
"operator": "OR"
}
]
}
],
"sourceIdentifier": "mlhess@drupal.org",
"cisaRequiredAction": "Apply updates per vendor instructions.",
"cisaVulnerabilityName": "Drupal Core Remote Code Execution Vulnerability"
}