GHSA-wxxw-5gq6-j2g5: Contao/core Contao/core Insufficient Input Validation Allows Vulnerability

CRITICAL
CVSS 9.0
Published
Advisory Summary

GHSA-wxxw-5gq6-j2g5 is a CRITICAL (CVSS 9.0) contao/core insufficient input validation allows vulnerability (General Security Weakness) affecting Contao/core libraries in the Packagist ecosystem. The issue involves contao/core insufficient input validation allows for code injection and remote execution. Remediation is available by upgrading affected packages to version 2.11.17, 3.2.9.

GHSA-wxxw-5gq6-j2g5 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-wxxw-5gq6-j2g5
Severity CRITICAL
CVSS v3.1 Base Score 9.0
CWE Classification General Security Weakness
Affected Product Contao/core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.0

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

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

How to Fix GHSA-wxxw-5gq6-j2g5

To remediate this vulnerability, upgrade all affected Contao/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.

contao/core fixed: 2.11.17
Upgrade contao/core to 2.11.17
contao/core fixed: 3.2.9
Upgrade contao/core to 3.2.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 contao/core

How to Check if You Are Affected

To determine whether your application is affected by GHSA-wxxw-5gq6-j2g5, inspect your project dependencies for Contao/core:

inspect dependencies for contao/core

Analyze the terminal output to locate any version of Contao/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.11.17), 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 Contao/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

contao/core versions 2.x prior to 2.11.17 and 3.x prior to 3.2.9 are vulnerable to arbitrary code execution on the server due to insufficient input validation. In fact, attackers can remove or change pathconfig.php by entering a URL, meaning that the entire Contao installation will no longer be accessible or malicious code can be executed.

GHSA-wxxw-5gq6-j2g5 Affected Contao/core Versions

2 component(s)
Fixed Versions:
2.11.173.2.9
Product / Package Ecosystem Affected Versions Fixed Version
contao/core
Packagist
≥ 2.0.0
< 2.11.17
2.11.17
contao/core
Packagist
≥ 3.0.0
< 3.2.9
3.2.9

References

Frequently Asked Questions

What is GHSA-wxxw-5gq6-j2g5?
GHSA-wxxw-5gq6-j2g5 is a security vulnerability in Contao/core involving contao/core Insufficient input validation allows for code injection and remote execution under General Security Weakness.
Which Contao/core versions are affected?
Affected versions include releases prior to 2.11.17, 3.2.9 across affected packages: contao/core.
What version fixes GHSA-wxxw-5gq6-j2g5?
Upgrading to 2.11.17, 3.2.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is contao/core affected?
Yes, contao/core is affected in releases prior to 2.11.17, 3.2.9. Upgrade your dependency to 2.11.17, 3.2.9 or later.
What is the CVSS score of GHSA-wxxw-5gq6-j2g5?
GHSA-wxxw-5gq6-j2g5 has a CVSS v3.1 base score of 9.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with GHSA-wxxw-5gq6-j2g5?
GHSA-wxxw-5gq6-j2g5 is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-wxxw-5gq6-j2g5?
Run the dependency tree command: 'inspect dependencies for contao/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-wxxw-5gq6-j2g5",
  "modified" : "2024-05-15T18:31:02Z",
  "published" : "2024-05-15T18:31:02Z",
  "aliases" : [ ],
  "summary" : "contao/core Insufficient input validation allows for code injection and remote execution",
  "details" : "contao/core versions 2.x prior to 2.11.17 and 3.x prior to 3.2.9 are vulnerable to arbitrary code execution on the server due to insufficient input validation. In fact, attackers can remove or change pathconfig.php by entering a URL, meaning that the entire Contao installation will no longer be accessible or malicious code can be executed.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "contao/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.11.17"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "contao/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.2.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/contao/core/issues/6855"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/contao/core/commit/d45503568751a868193929ef349a49ae5e6686f0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/contao/core/commit/d4a14f167e0cbb2e77c7829299e5b36f55c1ebce"
  }, {
    "type" : "WEB",
    "url" : "https://c-c-a.org/aktuelles/news/details/eine-neue-kritische-sicherheitsluecke-in-contao-entdeckt"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core/2014-04-07.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20240214121817/https://contao.org/en/news/new-security-hole-found-in-contao"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T18:31:02Z",
    "nvd_published_at" : null
  }
}