{
  "id": "CVE-2019-6340",
  "url": "https://poc.griffinguard.io/cve/CVE-2019-6340",
  "published_at": "2019-02-21T21:00:00Z",
  "title": "Drupal core - Highly critical - Remote Code Execution",
  "vendor": "Drupal",
  "product": "Drupal Core",
  "cvss": {
    "score": 8.1,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2022-03-25",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 1128
  },
  "first_poc": {
    "created_at": "2019-02-23T00:00:00Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 1.1,
    "source": "exploitdb",
    "url": "https://www.exploit-db.com/exploits/46452"
  },
  "poc_repo_count": 11,
  "exploit_count": 5,
  "suspicious_repo_count": 1,
  "edge_device": null,
  "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.)",
  "cwe": "CWE-502",
  "cvss_by_source": {
    "cisa-adp": 8.1
  },
  "repos": [
    {
      "repo": "g0rx/Drupal-SA-CORE-2019-003",
      "url": "https://github.com/g0rx/Drupal-SA-CORE-2019-003",
      "created_at": "2019-02-22T16:03:40Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 30,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "error",
      "owner_created_at": "2015-02-11T15:31:40Z"
    },
    {
      "repo": "knqyf263/CVE-2019-6340",
      "url": "https://github.com/knqyf263/CVE-2019-6340",
      "created_at": "2019-02-23T13:28:58Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 42,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2012-08-31T07:56:45Z"
    },
    {
      "repo": "DevDungeon/CVE-2019-6340-Drupal-8.6.9-REST-Auth-Bypass",
      "url": "https://github.com/DevDungeon/CVE-2019-6340-Drupal-8.6.9-REST-Auth-Bypass",
      "created_at": "2019-02-25T03:38:47Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-01-10T05:21:58Z"
    },
    {
      "repo": "oways/CVE-2019-6340",
      "url": "https://github.com/oways/CVE-2019-6340",
      "created_at": "2019-02-25T07:47:16Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 11,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-02-22T05:57:06Z"
    },
    {
      "repo": "cved-sources/cve-2019-6340",
      "url": "https://github.com/cved-sources/cve-2019-6340",
      "created_at": "2019-02-26T18:26:50Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-01-06T17:06:27Z"
    },
    {
      "repo": "honeybot/wtf-plugin-honeybot-cve_2019_6340",
      "url": "https://github.com/honeybot/wtf-plugin-honeybot-cve_2019_6340",
      "created_at": "2019-03-06T08:40:14Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-02-13T14:34:59Z"
    },
    {
      "repo": "d1vious/cve-2019-6340-bits",
      "url": "https://github.com/d1vious/cve-2019-6340-bits",
      "created_at": "2019-03-12T01:13:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2012-02-26T23:51:00Z"
    },
    {
      "repo": "josehelps/cve-2019-6340-bits",
      "url": "https://github.com/josehelps/cve-2019-6340-bits",
      "created_at": "2019-03-12T01:13:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2012-02-26T23:51:00Z"
    },
    {
      "repo": "jas502n/CVE-2019-6340",
      "url": "https://github.com/jas502n/CVE-2019-6340",
      "created_at": "2019-05-27T19:06:14Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 71,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-01-07T12:20:39Z"
    },
    {
      "repo": "borahan951/priv8.mechploit",
      "url": "https://github.com/borahan951/priv8.mechploit",
      "created_at": "2019-11-10T09:05:54Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-09-22T05:50:42Z"
    },
    {
      "repo": "Mezantrop74/M3M0",
      "url": "https://github.com/Mezantrop74/M3M0",
      "created_at": "2020-05-12T11:44:02Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-08-01T23:46:16Z"
    },
    {
      "repo": "starling021/M3M0",
      "url": "https://github.com/starling021/M3M0",
      "created_at": "2020-08-30T00:23:12Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2020-08-19T01:12:21Z"
    },
    {
      "repo": "ludy-dev/drupal8-REST-RCE",
      "url": "https://github.com/ludy-dev/drupal8-REST-RCE",
      "created_at": "2020-08-31T22:55:18Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 4,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 50,
      "suspicious": true,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo",
        "large base64 blob in code in drupal8-REST-RCE.py"
      ],
      "status": "analyzed",
      "owner_created_at": "2020-08-30T08:00:41Z"
    },
    {
      "repo": "nobodyatall648/CVE-2019-6340",
      "url": "https://github.com/nobodyatall648/CVE-2019-6340",
      "created_at": "2021-05-01T15:00:34Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-01-23T09:48:26Z"
    },
    {
      "repo": "Sumitpathania03/Drupal-cve-2019-6340",
      "url": "https://github.com/Sumitpathania03/Drupal-cve-2019-6340",
      "created_at": "2023-02-22T05:24:37Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2023-02-22T04:59:50Z"
    },
    {
      "repo": "reanzai/Reanzai-Penetration-Testing-tool",
      "url": "https://github.com/reanzai/Reanzai-Penetration-Testing-tool",
      "created_at": "2024-12-30T04:49:33Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-05-23T15:36:33Z"
    },
    {
      "repo": "joaoaugustom/Drupal_REST-RCE_Unauthenticated",
      "url": "https://github.com/joaoaugustom/Drupal_REST-RCE_Unauthenticated",
      "created_at": "2026-05-27T01:16:33Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-11-30T13:37:13Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "drupal/core",
        "ranges": [
          "\u003e= 8.6.0, \u003c 8.6.10"
        ],
        "fixed_in": [
          "8.6.10"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-3gx6-h57h-rm27"
      },
      {
        "vendor": "",
        "product": "drupal/core",
        "ranges": [
          "\u003e= 7.0.0, \u003c 7.62.0"
        ],
        "fixed_in": [
          "7.62.0"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-3gx6-h57h-rm27"
      },
      {
        "vendor": "",
        "product": "drupal/core",
        "ranges": [
          "\u003e= 8.0.0, \u003c 8.5.11"
        ],
        "fixed_in": [
          "8.5.11"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-3gx6-h57h-rm27"
      },
      {
        "vendor": "",
        "product": "drupal/drupal",
        "ranges": [
          "\u003e= 7.0.0, \u003c 7.62.0"
        ],
        "fixed_in": [
          "7.62.0"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-3gx6-h57h-rm27"
      },
      {
        "vendor": "",
        "product": "drupal/drupal",
        "ranges": [
          "\u003e= 8.0.0, \u003c 8.5.11"
        ],
        "fixed_in": [
          "8.5.11"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-3gx6-h57h-rm27"
      },
      {
        "vendor": "",
        "product": "drupal/drupal",
        "ranges": [
          "\u003e= 8.6.0, \u003c 8.6.10"
        ],
        "fixed_in": [
          "8.6.10"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-3gx6-h57h-rm27"
      }
    ],
    "upgrade": [
      "Upgrade drupal/core to 8.6.10 or later.",
      "Upgrade drupal/core to 7.62.0 or later.",
      "Upgrade drupal/core to 8.5.11 or later.",
      "Upgrade drupal/drupal to 7.62.0 or later.",
      "Upgrade drupal/drupal to 8.5.11 or later.",
      "Upgrade drupal/drupal to 8.6.10 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/46452/",
      "source": "cvelist",
      "title": "46452",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/46459/",
      "source": "cvelist",
      "title": "46459",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/46510/",
      "source": "cvelist",
      "title": "46510",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/46452",
      "source": "exploitdb",
      "title": "Drupal \u003c 8.6.10 / \u003c 8.5.11 - REST Module Remote Code Execution",
      "published_at": "2019-02-23T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/46459",
      "source": "exploitdb",
      "title": "Drupal \u003c 8.6.9 - REST Module Remote Code Execution",
      "published_at": "2019-02-25T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/46510",
      "source": "exploitdb",
      "title": "Drupal \u003c 8.5.11 / \u003c 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit)",
      "published_at": "2019-03-07T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/drupal_restws_unserialize.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Drupal RESTful Web Services unserialize() RCE (exploit/unix/webapp/drupal_restws_unserialize)",
      "published_at": "2019-03-05T19:26:01Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-6340.yaml",
      "source": "nuclei",
      "title": "nuclei template: Drupal - Remote Code Execution",
      "published_at": "2023-04-27T04:28:59Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/node/",
      "query_markers": [
        "_format=hal_json"
      ],
      "headers": [
        {
          "name": "Accept",
          "value": "*/*"
        },
        {
          "name": "Cache-Control",
          "value": "no-cache"
        }
      ],
      "body_markers": [
        "\"link\"",
        "\"value\":\"link\"",
        "\"options\"",
        "\"_links\"",
        "\"type\"",
        "\"href\":\"http://localhost/rest/type/shortcut/default\""
      ],
      "content_type": "application/hal+json",
      "ports": [
        8080
      ],
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
      ],
      "protocol": "http",
      "repos": [
        "jas502n/CVE-2019-6340",
        "knqyf263/CVE-2019-6340"
      ],
      "repo_count": 2,
      "confidence": 0.85,
      "evidence": [
        "jas502n/CVE-2019-6340/CVE-2019-6340.py:38",
        "jas502n/CVE-2019-6340/README.md:105",
        "knqyf263/CVE-2019-6340/README.md:37"
      ]
    },
    {
      "method": "GET",
      "path_template": "/node/1",
      "query_markers": [
        "_format=hal_json"
      ],
      "content_type": "application/hal+json",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "knqyf263/CVE-2019-6340"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "knqyf263/CVE-2019-6340/README.md:16"
      ]
    },
    {
      "method": "GET",
      "path_template": "/node/3",
      "query_markers": [
        "_format=hal_json"
      ],
      "headers": [
        {
          "name": "Accept",
          "value": "application/hal+json"
        },
        {
          "name": "Cache-Control",
          "value": "no-cache"
        }
      ],
      "content_type": "application/hal+json",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "DevDungeon/CVE-2019-6340-Drupal-8.6.9-REST-Auth-Bypass"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "DevDungeon/CVE-2019-6340-Drupal-8.6.9-REST-Auth-Bypass/exploit.py:36"
      ]
    },
    {
      "method": "PATCH",
      "path_template": "/node/1",
      "query_markers": [
        "_format=hal_json"
      ],
      "body_markers": [
        "\"link\"",
        "\"_links\""
      ],
      "content_type": "application/json",
      "ports": [
        8090
      ],
      "protocol": "http",
      "repos": [
        "nobodyatall648/CVE-2019-6340"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "nobodyatall648/CVE-2019-6340/CVE-2019-6340.py:42"
      ]
    },
    {
      "method": "POST",
      "path_template": "/entity/node/",
      "query_markers": [
        "_format=hal_json"
      ],
      "headers": [
        {
          "name": "Accept",
          "value": "application/hal+json"
        },
        {
          "name": "Cache-Control",
          "value": "no-cache"
        }
      ],
      "content_type": "application/hal+json",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "DevDungeon/CVE-2019-6340-Drupal-8.6.9-REST-Auth-Bypass"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "DevDungeon/CVE-2019-6340-Drupal-8.6.9-REST-Auth-Bypass/create_node_via_rest.py:29"
      ]
    }
  ],
  "rules": []
}
