CVE-2018-7600: Drupal/core Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-7fh9-933g-885p
CVSS 9.8
CWE-20
Published
Advisory Summary

CVE-2018-7600 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-20: Improper Input Validation) affecting Drupal/core libraries in the Packagist ecosystem. The issue involves drupal core remote code execution vulnerability. Remediation is available by upgrading affected packages to version 7.58, 8.3.9, 8.4.6, 8.5.1.

CVE-2018-7600 at a Glance

CVE Identifier CVE-2018-7600
GHSA Identifier GHSA-7fh9-933g-885p
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-20: Improper Input Validation
Affected Product Drupal/core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2018-7600

To remediate this vulnerability, upgrade all affected Drupal/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

drupal/core fixed: 7.58
Upgrade drupal/core to 7.58
drupal/core fixed: 8.3.9
Upgrade drupal/core to 8.3.9
drupal/core fixed: 8.4.6
Upgrade drupal/core to 8.4.6
drupal/core fixed: 8.5.1
Upgrade drupal/core to 8.5.1
drupal/drupal fixed: 7.58
Upgrade drupal/drupal to 7.58
drupal/drupal fixed: 8.3.9
Upgrade drupal/drupal to 8.3.9
drupal/drupal fixed: 8.4.6
Upgrade drupal/drupal to 8.4.6
drupal/drupal fixed: 8.5.1
Upgrade drupal/drupal to 8.5.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for drupal/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2018-7600, inspect your project dependencies for Drupal/core:

inspect dependencies for drupal/core

Analyze the terminal output to locate any version of Drupal/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.58), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Drupal/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Drupal before 7.58, 8.x before 8.3.9, 8.4.x before 8.4.6, and 8.5.x before 8.5.1 allows remote attackers to execute arbitrary code because of an issue affecting multiple subsystems with default or common module configurations.

CVE-2018-7600 Affected Drupal/core Versions

8 component(s)
Fixed Versions:
7.588.3.98.4.68.5.1
Product / Package Ecosystem Affected Versions Fixed Version
drupal/core
Packagist
≥ 7.0
< 7.58
7.58
drupal/core
Packagist
≥ 8.0
< 8.3.9
8.3.9
drupal/core
Packagist
≥ 8.4.0
< 8.4.6
8.4.6
drupal/core
Packagist
≥ 8.5.0
< 8.5.1
8.5.1
drupal/drupal
Packagist
≥ 7.0
< 7.58
7.58
drupal/drupal
Packagist
≥ 8.0
< 8.3.9
8.3.9
drupal/drupal
Packagist
≥ 8.4
< 8.4.6
8.4.6
drupal/drupal
Packagist
≥ 8.5
< 8.5.1
8.5.1

References

twitter.com/ricterz/status/9844... WEB
https://twitter.com/RicterZ/status/984495201354854401
twitter.com/ricterz/status/9795... WEB
https://twitter.com/RicterZ/status/979567469726613504
research.checkpoint.com/uncovering-drupalge... WEB
https://research.checkpoint.com/uncovering-drupalgeddon-2
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2018/03/msg00028.html
Drupal/core Security Information SECURITY
https://groups.drupal.org/security/faq-2018-002
greysec.net/showthread.php WEB
https://greysec.net/showthread.php?tid=2912&pid=10561
Drupal/core Source Repository REPOSITORY
https://github.com/g0rx/CVE-2018-7600-Drupal-RCE
Drupal/core Source Repository REPOSITORY
https://github.com/drupal/core
Drupal/core Source Repository REPOSITORY
https://github.com/a2u/CVE-2018-7600
Drupal/core Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2018-7600.yaml
Drupal/core Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2018-7600.yaml
blog.appsecco.com/remote-code-executi... WEB
https://blog.appsecco.com/remote-code-execution-with-drupal-core-sa-core-2018-002-95e6ecc0c714
badpackets.net/over-100000-drupal-... WEB
https://badpackets.net/over-100000-drupal-websites-vulnerable-to-drupalgeddon-2-cve-2018-7600
Drupal/core Security Information SECURITY
http://www.securityfocus.com/bid/103534
Drupal/core Security Information SECURITY
http://www.securitytracker.com/id/1040598
www.drupal.org/sa-core-2018-002 WEB
https://www.drupal.org/sa-core-2018-002
Drupal/core Security Information SECURITY
https://www.debian.org/security/2018/dsa-4156
www.cisa.gov/known-exploited-vul... WEB
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-7600
twitter.com/arancaytar/status/9... WEB
https://twitter.com/arancaytar/status/979090719003627521
NVD — CVE-2018-7600 NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-7600
www.tenable.com/blog/critical-drupa... WEB
https://www.tenable.com/blog/critical-drupal-core-vulnerability-what-you-need-to-know
Drupal/core Security Information SECURITY
https://www.synology.com/support/security/Synology_SA_18_17
www.exploit-db.com/exploits/44482 WEB
https://www.exploit-db.com/exploits/44482
www.exploit-db.com/exploits/44449 WEB
https://www.exploit-db.com/exploits/44449
www.exploit-db.com/exploits/44448 WEB
https://www.exploit-db.com/exploits/44448

Frequently Asked Questions

What is CVE-2018-7600?
CVE-2018-7600 is a security vulnerability in Drupal/core involving Drupal Core Remote Code Execution Vulnerability under CWE-20: Improper Input Validation.
Which Drupal/core versions are affected?
Affected versions include releases prior to 7.58, 8.3.9, 8.4.6, 8.5.1 across affected packages: drupal/core, drupal/drupal.
What version fixes CVE-2018-7600?
Upgrading to 7.58, 8.3.9, 8.4.6, 8.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is drupal/core affected?
Yes, drupal/core is affected in releases prior to 7.58, 8.3.9, 8.4.6, 8.5.1. Upgrade your dependency to 7.58, 8.3.9, 8.4.6, 8.5.1 or later.
Is drupal/drupal affected?
Yes, drupal/drupal is affected in releases prior to 7.58, 8.3.9, 8.4.6, 8.5.1. Upgrade your dependency to 7.58, 8.3.9, 8.4.6, 8.5.1 or later.
What is the CVSS score of CVE-2018-7600?
CVE-2018-7600 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H.
What CWE is associated with CVE-2018-7600?
CVE-2018-7600 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Packagist dependencies for CVE-2018-7600?
Run the dependency tree command: 'inspect dependencies for drupal/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7fh9-933g-885p",
  "modified" : "2025-10-22T17:30:06Z",
  "published" : "2022-05-14T01:29:45Z",
  "aliases" : [ "CVE-2018-7600" ],
  "summary" : "Drupal Core Remote Code Execution Vulnerability",
  "details" : "Drupal before 7.58, 8.x before 8.3.9, 8.4.x before 8.4.6, and 8.5.x before 8.5.1 allows remote attackers to execute arbitrary code because of an issue affecting multiple subsystems with default or common module configurations.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0"
      }, {
        "fixed" : "7.58"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0"
      }, {
        "fixed" : "8.3.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.4.0"
      }, {
        "fixed" : "8.4.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.5.0"
      }, {
        "fixed" : "8.5.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/drupal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0"
      }, {
        "fixed" : "7.58"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/drupal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0"
      }, {
        "fixed" : "8.3.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/drupal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.4"
      }, {
        "fixed" : "8.4.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/drupal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.5"
      }, {
        "fixed" : "8.5.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-7600"
  }, {
    "type" : "WEB",
    "url" : "https://www.tenable.com/blog/critical-drupal-core-vulnerability-what-you-need-to-know"
  }, {
    "type" : "WEB",
    "url" : "https://www.synology.com/support/security/Synology_SA_18_17"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/44482"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/44449"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/44448"
  }, {
    "type" : "WEB",
    "url" : "https://www.drupal.org/sa-core-2018-002"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2018/dsa-4156"
  }, {
    "type" : "WEB",
    "url" : "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-7600"
  }, {
    "type" : "WEB",
    "url" : "https://twitter.com/arancaytar/status/979090719003627521"
  }, {
    "type" : "WEB",
    "url" : "https://twitter.com/RicterZ/status/984495201354854401"
  }, {
    "type" : "WEB",
    "url" : "https://twitter.com/RicterZ/status/979567469726613504"
  }, {
    "type" : "WEB",
    "url" : "https://research.checkpoint.com/uncovering-drupalgeddon-2"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2018/03/msg00028.html"
  }, {
    "type" : "WEB",
    "url" : "https://groups.drupal.org/security/faq-2018-002"
  }, {
    "type" : "WEB",
    "url" : "https://greysec.net/showthread.php?tid=2912&pid=10561"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/g0rx/CVE-2018-7600-Drupal-RCE"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/drupal/core"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/a2u/CVE-2018-7600"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2018-7600.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2018-7600.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://blog.appsecco.com/remote-code-execution-with-drupal-core-sa-core-2018-002-95e6ecc0c714"
  }, {
    "type" : "WEB",
    "url" : "https://badpackets.net/over-100000-drupal-websites-vulnerable-to-drupalgeddon-2-cve-2018-7600"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/103534"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id/1040598"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-23T22:36:48Z",
    "nvd_published_at" : "2018-03-29T07:29:00Z"
  }
}