CVE-2024-11942: Drupal/core Drupal Core Vulnerable To Improper Vulnerability

MODERATE
Advisory Identifier: GHSA-52jr-x6h6-xj6g
CVSS 5.9
CWE-390
Published
Advisory Summary

CVE-2024-11942 is a MODERATE (CVSS 5.9) drupal core vulnerable to improper vulnerability (CWE-390: Detection of Error Condition Without Action) affecting Drupal/core libraries in the Packagist ecosystem. The issue involves drupal core vulnerable to improper error handling. Remediation is available by upgrading affected packages to version 10.2.10.

CVE-2024-11942 at a Glance

CVE Identifier CVE-2024-11942
GHSA Identifier GHSA-52jr-x6h6-xj6g
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-390: Detection of Error Condition Without Action
Affected Product Drupal/core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.9

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

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

How to Fix CVE-2024-11942

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.2.10
Upgrade drupal/core to 10.2.10
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-2024-11942, 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.2.10), 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-390: Detection of Error Condition Without Action, where the product detects a specific error, but takes no actions to handle the error. 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

Under certain uncommon site configurations, a bug in the CKEditor 5 module can cause some image uploads to move the entire webroot to a different location on the file system. This could be exploited by a malicious user to take down a site. The issue is mitigated by the fact that several non-default site configurations must exist simultaneously for this to occur.

CVE-2024-11942 Affected Drupal/core Versions

1 component(s)
Fixed Versions:
10.2.10
Product / Package Ecosystem Affected Versions Fixed Version
drupal/core
Packagist
≥ 10.0.0
< 10.2.10
10.2.10

References

Frequently Asked Questions

What is CVE-2024-11942?
CVE-2024-11942 is a security vulnerability in Drupal/core involving Drupal core vulnerable to improper error handling under CWE-390: Detection of Error Condition Without Action.
Which Drupal/core versions are affected?
Affected versions include releases prior to 10.2.10 across affected packages: drupal/core.
What version fixes CVE-2024-11942?
Upgrading to 10.2.10 (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.2.10. Upgrade your dependency to 10.2.10 or later.
What is the CVSS score of CVE-2024-11942?
CVE-2024-11942 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2024-11942?
CVE-2024-11942 is classified under CWE-390: Detection of Error Condition Without Action (The product detects a specific error, but takes no actions to handle the error.).
How can I check Packagist dependencies for CVE-2024-11942?
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-52jr-x6h6-xj6g",
  "modified" : "2024-12-05T19:58:23Z",
  "published" : "2024-12-05T15:31:02Z",
  "aliases" : [ "CVE-2024-11942" ],
  "summary" : "Drupal core vulnerable to improper error handling",
  "details" : "Under certain uncommon site configurations, a bug in the CKEditor 5 module can cause some image uploads to move the entire webroot to a different location on the file system. This could be exploited by a malicious user to take down a site.\n\nThe issue is mitigated by the fact that several non-default site configurations must exist simultaneously for this to occur.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0"
      }, {
        "fixed" : "10.2.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-11942"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/drupal/core"
  }, {
    "type" : "WEB",
    "url" : "https://www.drupal.org/sa-core-2024-002"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-390" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-05T19:58:23Z",
    "nvd_published_at" : "2024-12-05T15:15:08Z"
  }
}