{"schemaVersion":3,"id":"CVE-2019-6340","aliases":[],"status":"published","duplicateOf":null,"title":"Drupal Core Remote Code Execution Vulnerability","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.)","dates":{"published":"2019-02-21T21:00:00.000Z","modified":"2025-10-21T23:45:43.200Z","reserved":null,"kevAdded":["2022-03-25T00:00:00.000Z"],"kevDue":["2022-04-15T00:00:00.000Z"]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.92017,"percentile":0.99822,"severity":"critical","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.92017},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.92017,"percentile":0.99822}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.92017,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.92017,"percentile":0.99822}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2022-03-25T00:00:00.000Z","dueDate":"2022-04-15T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"Drupal Core Remote Code Execution Vulnerability","description":"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.","notes":[{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2019-6340","label":"nvd.nist.gov/vuln/detail/CVE-2019-6340"}],"vendor":"Drupal","product":"Core","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2022-03-25T00:00:00.000Z","dueDate":"2022-04-15T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"Drupal Core Remote Code Execution Vulnerability","description":"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.","notes":[{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2019-6340","label":"nvd.nist.gov/vuln/detail/CVE-2019-6340"}],"vendor":"Drupal","product":"Core","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"46510","name":"Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/46510","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"php","file":"exploits/php/remote/46510.rb","codes":["CVE-2019-6340"]},"metasploit":null},{"id":"46452","name":"Drupal < 8.6.10 / < 8.5.11 - REST Module Remote Code Execution","source":"exploit-database","url":"https://www.exploit-db.com/exploits/46452","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"php","file":"exploits/php/webapps/46452.txt","codes":["CVE-2019-6340"]},"metasploit":null},{"id":"46459","name":"Drupal < 8.6.9 - REST Module Remote Code Execution","source":"exploit-database","url":"https://www.exploit-db.com/exploits/46459","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"php","file":"exploits/php/webapps/46459.py","codes":["CVE-2019-6340"]},"metasploit":null},{"id":"MSF_EXPLOIT_UNIX_WEBAPP_DRUPAL_RESTWS_UNSERIALIZE","name":"Drupal RESTful Web Services unserialize() RCE","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/unix/webapp/drupal_restws_unserialize.rb","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/unix/webapp/drupal_restws_unserialize","rank":"300","rankName":"normal","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":["ioc-in-logs"],"reliability":["unreliable-session"]}}],"exploitCount":4,"weaknesses":[{"id":"CWE-502","name":"Deserialization of Untrusted Data","description":"The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/502.html"}],"affected":[{"vendor":"drupal","product":"drupal","name":"drupal","label":"drupal","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 8.5.0, < 8.5.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.6.0, < 8.6.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 8.5.0, < 8.5.11 | ≥ 8.6.0, < 8.6.10","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"drupal","label":"Drupal","category":"server-app"}},"hubHref":"/vendor/drupal/drupal"},{"vendor":"drupal","product":"drupal core","name":"Drupal core","label":"drupal core","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 8.5, < 8.5.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.6, < 8.6.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 8.5, < 8.5.11 | ≥ 8.6, < 8.6.10","eol":null,"hubHref":"/vendor/drupal/drupal_core"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.synology.com/security/advisory/Synology_SA_19_09","label":"www.synology.com/security/advisory/Synology_SA_19_09","hostname":"www.synology.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://www.exploit-db.com/exploits/46452/","label":"www.exploit-db.com/exploits/46452/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Patch","Third Party Advisory","VDB Entry"]},{"url":"https://www.drupal.org/sa-core-2019-003","label":"www.drupal.org/sa-core-2019-003","hostname":"www.drupal.org","tags":["X Refsource CONFIRM","Mitigation","Vendor Advisory"]},{"url":"https://www.exploit-db.com/exploits/46510/","label":"www.exploit-db.com/exploits/46510/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/107106","label":"www.securityfocus.com/bid/107106","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Broken Link","Third Party Advisory"]},{"url":"https://www.exploit-db.com/exploits/46459/","label":"www.exploit-db.com/exploits/46459/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-6340","hostname":"www.cisa.gov","tags":["Government Resource","US Government Resource"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2019-02-21T21:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2022-03-25T00:00:00.000Z","label":"Added to CISA KEV","detail":"Drupal Core Remote Code Execution Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2022-04-15T00:00:00.000Z","label":"CISA remediation due","detail":"Apply updates per vendor instructions.","source":"cisa"},{"kind":"modified","date":"2025-10-21T23:45:43.200Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":85,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T17:58:07.162Z","stale":false,"partial":false}}