{"id":"CVE-2019-6340","kind":"vulnerability","aliases":["CVE-2019-6340"],"related":[],"title":"Drupal Core: 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.)","summary":"Drupal Core does not properly sanitize data from non-form sources for some field types, which can lead to arbitrary PHP code execution. An attacker who can submit crafted data to an affected field can run code on the server.","severity":"critical","cvss":8.1,"epss":0.92017,"exploited":true,"exploited_at":"2022-03-25T00:00:00+00:00","products":[{"name":"Drupal Core","fixed":[],"affected":"","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["drupal","exploited","php","runtime","self-hosted"],"not_affected_if":["default-config"],"how_to_check":null,"fix":"Apply the Drupal Core updates per vendor instructions; the sources do not name the fixed version.","status":"open","published_at":"2019-02-21T21:29:00+00:00","first_seen_at":"2026-10-23T19:11:52+00:00","triaged_at":"2026-10-23T21:20:07+00:00","updated_at":"2026-10-23T21:57:35+00:00","category":"runtime","confidence":0.6,"triage":{"at":"2026-10-23T21:20:07Z","model":"claude-haiku-5-5","output":{"fix":"Apply the Drupal Core updates per vendor instructions; the sources do not name the fixed version.","reach":"internet","impact":"high","summary":"Drupal Core does not properly sanitize data from non-form sources for some field types, which can lead to arbitrary PHP code execution. An attacker who can submit crafted data to an affected field can run code on the server.","category":"runtime","who_cares":["drupal","php","self-hosted"],"confidence":0.6,"needs_auth":"unknown","worst_case":"Attacker runs arbitrary PHP code on the Drupal server","analyst_note":"Find the affected Drupal core version range and fixed release in the Drupal security advisory for CVE-2019-6340 and the exact field types and auth requirements.","how_to_check":"unknown","needs_analyst":true,"not_affected_if":["default-config"],"user_interaction":"unknown","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000449,"input_tokens":2820,"output_tokens":333,"severity_before":"unknown"},"analyst_status":"queued","analyst_note":"Find the affected Drupal core version range and fixed release in the Drupal security advisory for CVE-2019-6340 and the exact field types and auth requirements.","search":"'-2019':10A,13A '-6340':11A,14A '7':158C,162C '8':121C,149C '8.5':80C '8.5.11':83C '8.6':86C '8.6.10':89C 'advisori':184C 'affect':57B,105C 'allow':130C 'anoth':139C 'api':146C 'appli':177C 'arbitrari':44B,94C 'associ':181C 'attack':49B 'case':100C 'code':6A,46B,61B,96C 'condit':113C 'contribut':179C 'core':2A,4A,16A,25B,122C 'craft':53B 'cve':9A,12A 'data':30B,54B,72C 'drupal':1A,3A,15A,17B,24B,79C,85C,120C,148C,157C,161C 'enabl':128C,143C 'execut':7A,47B,97C 'exploit':18B 'field':38B,58B,66C 'follow':112C 'form':34B,76C 'host':23B 'json':145C 'lead':42B,92C 'like':144C 'met':115C 'modul':127C,142C,164C 'non':33B,75C 'non-form':32B,74C 'note':159C 'one':109C 'patch':131C 'php':19B,45B,95C 'post':133C 'proper':28B,70C 'remot':5A 'request':134C 'requir':168C 'rest':123C,126C,153C 'run':60B 'runtim':20B 'sanit':29B,71C 'self':22B 'self-host':21B 'server':64B 'servic':125C,141C,151C,155C,163C,186C 'site':102C,117C,137C 'sourc':35B,77C 'submit':52B 'time':173C 'type':39B,67C 'updat':170C,180C 'use':189C 'vulner':8A 'web':124C,140C,154C 'x':81C,87C","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2019-02-21T21:29:00+00:00","kev":{"dateAdded":"2022-03-25","dueDate":"2022-04-15","requiredAction":"Apply updates per vendor instructions.","knownRansomwareCampaignUse":"Unknown"},"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"nvd@nist.gov","poc_count":0,"sources":[{"source":"kev","external_id":"CVE-2019-6340","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2019-6340","severity":null,"published_at":"2022-03-25T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-23T19:11:52+00:00","fetched_at":"2026-10-25T10:39:07+00:00","note":null},{"source":"epss","external_id":"CVE-2019-6340","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-6340","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-10-23T19:13:44+00:00","fetched_at":"2026-10-23T19:13:44+00:00","note":null},{"source":"nvd","external_id":"CVE-2019-6340","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-6340","severity":null,"published_at":"2019-02-21T21:29:00+00:00","modified_at":"2026-06-17T02:39:02+00:00","first_seen_at":"2026-10-23T21:57:35+00:00","fetched_at":"2026-10-23T21:57:35+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}