CVE-2023-31250: Drupal/core Access Bypass Vulnerability

CRITICAL
Advisory Identifier: GHSA-8849-cv9f-vccm
Published
Advisory Summary

CVE-2023-31250 is a CRITICAL access bypass vulnerability (General Security Weakness) affecting Drupal/core libraries in the Packagist ecosystem. The issue involves access bypass in drupal core. Remediation is available by upgrading affected packages to version 10.0.8, 9.5.8, 9.4.14, 7.96.

CVE-2023-31250 at a Glance

CVE Identifier CVE-2023-31250
GHSA Identifier GHSA-8849-cv9f-vccm
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Drupal/core
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2023-31250

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: 10.0.8
Upgrade drupal/core to 10.0.8
drupal/core fixed: 9.5.8
Upgrade drupal/core to 9.5.8
drupal/core fixed: 9.4.14
Upgrade drupal/core to 9.4.14
drupal/core fixed: 7.96
Upgrade drupal/core to 7.96
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-2023-31250, 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 10.0.8), 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 General Security Weakness. 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

The file download facility doesn't sufficiently sanitize file paths in certain situations. This may result in users gaining access to private files that they should not have access to. Some sites may require configuration changes following this security release. Review the release notes for your Drupal version if you have issues accessing private files after updating.

CVE-2023-31250 Affected Drupal/core Versions

4 component(s)
Fixed Versions:
10.0.89.5.89.4.147.96
Product / Package Ecosystem Affected Versions Fixed Version
drupal/core
Packagist
≥ 10.0.0
< 10.0.8
10.0.8
drupal/core
Packagist
≥ 9.5.0
< 9.5.8
9.5.8
drupal/core
Packagist
≥ 9.0.0
< 9.4.14
9.4.14
drupal/core
Packagist
≥ 7.0.0
< 7.96
7.96

References

Frequently Asked Questions

What is CVE-2023-31250?
CVE-2023-31250 is a security vulnerability in Drupal/core involving Access bypass in Drupal core under General Security Weakness.
Which Drupal/core versions are affected?
Affected versions include releases prior to 10.0.8, 9.5.8, 9.4.14, 7.96 across affected packages: drupal/core.
What version fixes CVE-2023-31250?
Upgrading to 10.0.8, 9.5.8, 9.4.14, 7.96 (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 10.0.8, 9.5.8, 9.4.14, 7.96. Upgrade your dependency to 10.0.8, 9.5.8, 9.4.14, 7.96 or later.
What CWE is associated with CVE-2023-31250?
CVE-2023-31250 is classified under General Security Weakness.
How can I check Packagist dependencies for CVE-2023-31250?
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-8849-cv9f-vccm",
  "modified" : "2023-04-27T14:01:16Z",
  "published" : "2023-04-26T21:30:37Z",
  "aliases" : [ "CVE-2023-31250" ],
  "summary" : "Access bypass in Drupal core",
  "details" : "The file download facility doesn't sufficiently sanitize file paths in certain situations. This may result in users gaining access to private files that they should not have access to. Some sites may require configuration changes following this security release. Review the release notes for your Drupal version if you have issues accessing private files after updating.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0"
      }, {
        "fixed" : "10.0.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.5.0"
      }, {
        "fixed" : "9.5.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.4.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.96"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-31250"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/drupal/core"
  }, {
    "type" : "WEB",
    "url" : "https://www.drupal.org/sa-core-2023-005"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-27T14:01:16Z",
    "nvd_published_at" : "2023-04-26T19:15:09Z"
  }
}