{"api_version":"1","generated_at":"2026-07-21T19:50:07+00:00","cve":"CVE-2019-6340","urls":{"html":"https://cve.report/CVE-2019-6340","api":"https://cve.report/api/cve/CVE-2019-6340.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-6340","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-6340"},"summary":{"title":"CVE-2019-6340","description":"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.)","state":"PUBLIC","assigner":"security@drupal.org","published_at":"2019-02-21 21:29:00","updated_at":"2020-08-24 17:37:00"},"problem_types":["CWE-502"],"metrics":[],"references":[{"url":"https://www.exploit-db.com/exploits/46459/","name":"46459","refsource":"EXPLOIT-DB","tags":["Exploit","Third Party Advisory","VDB Entry"],"title":"Drupal < 8.6.9 - REST Module Remote Code Execution - PHP webapps Exploit","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.exploit-db.com/exploits/46452/","name":"46452","refsource":"EXPLOIT-DB","tags":["Patch","Third Party Advisory","VDB Entry"],"title":"Drupal < 8.6.10 / < 8.5.11 - REST Module Remote Code Execution - PHP webapps Exploit","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.exploit-db.com/exploits/46510/","name":"46510","refsource":"EXPLOIT-DB","tags":["Exploit","Third Party Advisory"],"title":"Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit) - PHP remote Exploit","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.drupal.org/sa-core-2019-003","name":"https://www.drupal.org/sa-core-2019-003","refsource":"CONFIRM","tags":["Mitigation","Vendor Advisory"],"title":"Drupal core - Highly critical - Remote Code Execution - SA-CORE-2019-003 | Drupal.org","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.synology.com/security/advisory/Synology_SA_19_09","name":"https://www.synology.com/security/advisory/Synology_SA_19_09","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"Synology Inc.","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/107106","name":"107106","refsource":"BID","tags":["Third Party Advisory","VDB Entry"],"title":"Drupal Core CVE-2019-6340 Arbitrary PHP Code Execution Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-6340","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-6340","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2019","cve_id":"6340","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"drupal","cpe5":"drupal","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"6340","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"drupal","cpe5":"drupal","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":{"cve_year":"2019","cve_id":"6340","cve":"CVE-2019-6340","vendorProject":"Drupal","product":"Core","vulnerabilityName":"Drupal Core Remote Code Execution Vulnerability","dateAdded":"2022-03-25","shortDescription":"In Drupal Core, some field types do not properly sanitize data from non-form sources. This can lead to arbitrary PHP code execution in some cases.","requiredAction":"Apply updates per vendor instructions.","dueDate":"2022-04-15","knownRansomwareCampaignUse":"Unknown","notes":"https://nvd.nist.gov/vuln/detail/CVE-2019-6340","cwes":"CWE-502","catalogVersion":"2026.07.21","updated_at":"2026-07-21 15:05:33"},"epss":{"cve_year":"2019","cve_id":"6340","cve":"CVE-2019-6340","epss":"0.920170000","percentile":"0.998090000","score_date":"2026-07-20","updated_at":"2026-07-21 00:13:16"},"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@drupal.org","ID":"CVE-2019-6340","STATE":"PUBLIC","TITLE":"Drupal core - Highly critical - Remote Code Execution"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Drupal Core","version":{"version_data":[{"affected":"<","version_name":"8.5","version_value":"8.5.11"},{"affected":"<","version_name":"8.6","version_value":"8.6.10"}]}}]},"vendor_name":"Drupal"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","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.)"}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Remote code execution"}]}]},"references":{"reference_data":[{"name":"https://www.synology.com/security/advisory/Synology_SA_19_09","refsource":"CONFIRM","url":"https://www.synology.com/security/advisory/Synology_SA_19_09"},{"name":"46452","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/46452/"},{"name":"https://www.drupal.org/sa-core-2019-003","refsource":"CONFIRM","url":"https://www.drupal.org/sa-core-2019-003"},{"name":"46510","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/46510/"},{"name":"107106","refsource":"BID","url":"http://www.securityfocus.com/bid/107106"},{"name":"46459","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/46459/"}]},"source":{"advisory":"SA-CORE-2019-003","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2019-02-21 21:29:00","lastModifiedDate":"2020-08-24 17:37:00","problem_types":["CWE-502"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*","versionStartIncluding":"8.6.0","versionEndExcluding":"8.6.10","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*","versionStartIncluding":"8.5.0","versionEndExcluding":"8.5.11","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2019","CveId":"6340","Ordinal":"144035","Title":"CVE-2019-6340","CVE":"CVE-2019-6340","Year":"2019"},"notes":[{"CveYear":"2019","CveId":"6340","Ordinal":"1","NoteData":"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.)","Type":"Description","Title":null},{"CveYear":"2019","CveId":"6340","Ordinal":"2","NoteData":"2019-02-21","Type":"Other","Title":"Published"},{"CveYear":"2019","CveId":"6340","Ordinal":"3","NoteData":"2019-03-08","Type":"Other","Title":"Modified"}]}}}