GHSA-j66p-fvp2-fxhj: Drupal/drupal Drupal Core Arbitrary PHP Code Vulnerability

HIGH
CVSS 7.8
CWE-94
Published
Advisory Summary

GHSA-j66p-fvp2-fxhj is a HIGH (CVSS 7.8) drupal core arbitrary php code vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Drupal/drupal libraries in the Packagist ecosystem. The issue involves drupal core arbitrary php code execution. Remediation is available by upgrading affected packages to version 7.75, 8.8.12, 8.9.10, 9.0.9.

GHSA-j66p-fvp2-fxhj at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-j66p-fvp2-fxhj
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Drupal/drupal
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.8

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

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

How to Fix GHSA-j66p-fvp2-fxhj

To remediate this vulnerability, upgrade all affected Drupal/drupal 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/drupal fixed: 7.75
Upgrade drupal/drupal to 7.75
drupal/drupal fixed: 8.8.12
Upgrade drupal/drupal to 8.8.12
drupal/drupal fixed: 8.9.10
Upgrade drupal/drupal to 8.9.10
drupal/drupal fixed: 9.0.9
Upgrade drupal/drupal to 9.0.9
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/drupal

How to Check if You Are Affected

To determine whether your application is affected by GHSA-j66p-fvp2-fxhj, inspect your project dependencies for Drupal/drupal:

inspect dependencies for drupal/drupal

Analyze the terminal output to locate any version of Drupal/drupal in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.75), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Drupal/drupal, 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

The Drupal project uses the PEAR Archive_Tar library. The PEAR Archive_Tar library has released a security update that impacts Drupal. For more information please see: CVE-2020-28948 CVE-2020-28949 Multiple vulnerabilities are possible if Drupal is configured to allow .tar, .tar.gz, .bz2, or .tlz file uploads and processes them. To mitigate this issue, prevent untrusted users from uploading .tar, .tar.gz, .bz2, or .tlz files.

GHSA-j66p-fvp2-fxhj Affected Drupal/drupal Versions

4 component(s)
Fixed Versions:
7.758.8.128.9.109.0.9
Product / Package Ecosystem Affected Versions Fixed Version
drupal/drupal
Packagist
≥ 7.0.0
< 7.75
7.75
drupal/drupal
Packagist
≥ 8.0.0
< 8.8.12
8.8.12
drupal/drupal
Packagist
≥ 8.9.0
< 8.9.10
8.9.10
drupal/drupal
Packagist
≥ 9.0.0
< 9.0.9
9.0.9

References

Frequently Asked Questions

What is GHSA-j66p-fvp2-fxhj?
GHSA-j66p-fvp2-fxhj is a security vulnerability in Drupal/drupal involving Drupal core Arbitrary PHP code execution under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Drupal/drupal versions are affected?
Affected versions include releases prior to 7.75, 8.8.12, 8.9.10, 9.0.9 across affected packages: drupal/drupal.
What version fixes GHSA-j66p-fvp2-fxhj?
Upgrading to 7.75, 8.8.12, 8.9.10, 9.0.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is drupal/drupal affected?
Yes, drupal/drupal is affected in releases prior to 7.75, 8.8.12, 8.9.10, 9.0.9. Upgrade your dependency to 7.75, 8.8.12, 8.9.10, 9.0.9 or later.
What is the CVSS score of GHSA-j66p-fvp2-fxhj?
GHSA-j66p-fvp2-fxhj has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-j66p-fvp2-fxhj?
GHSA-j66p-fvp2-fxhj is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Packagist dependencies for GHSA-j66p-fvp2-fxhj?
Run the dependency tree command: 'inspect dependencies for drupal/drupal'. 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-j66p-fvp2-fxhj",
  "modified" : "2024-05-15T21:02:35Z",
  "published" : "2024-05-15T21:02:35Z",
  "aliases" : [ ],
  "summary" : "Drupal core Arbitrary PHP code execution",
  "details" : "The Drupal project uses the PEAR Archive_Tar library. The PEAR Archive_Tar library has released a security update that impacts Drupal. For more information please see:\nCVE-2020-28948\nCVE-2020-28949\n\nMultiple vulnerabilities are possible if Drupal is configured to allow .tar, .tar.gz, .bz2, or .tlz file uploads and processes them.\n\nTo mitigate this issue, prevent untrusted users from uploading .tar, .tar.gz, .bz2, or .tlz files.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/drupal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.75"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/drupal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.8.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/drupal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.9.0"
      }, {
        "fixed" : "8.9.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/drupal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.0.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/2020-11-25.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/drupal/drupal"
  }, {
    "type" : "WEB",
    "url" : "https://www.drupal.org/sa-core-2020-013"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T21:02:35Z",
    "nvd_published_at" : null
  }
}