CVE-2024-3180: Concrete5/concrete5 Cross-Site Scripting Vulnerability

LOW
Advisory Identifier: GHSA-9qhc-pg6j-wf23
CVSS 3.1
CWE-20 CWE-79
Published
Advisory Summary

CVE-2024-3180 is a LOW (CVSS 3.1) cross-site scripting vulnerability (CWE-20: Improper Input Validation) affecting Concrete5/concrete5 libraries in the Packagist ecosystem. The issue involves concrete cms stored xss in blocks of type file. Remediation is available by upgrading affected packages to version 9.2.8, 8.5.16.

CVE-2024-3180 at a Glance

CVE Identifier CVE-2024-3180
GHSA Identifier GHSA-9qhc-pg6j-wf23
Severity LOW
CVSS v3.1 Base Score 3.1
CWE Classification CWE-20: Improper Input Validation
Affected Product Concrete5/concrete5
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 3.1

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

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

How to Fix CVE-2024-3180

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

concrete5/concrete5 fixed: 9.2.8
Upgrade concrete5/concrete5 to 9.2.8
concrete5/concrete5 fixed: 8.5.16
Upgrade concrete5/concrete5 to 8.5.16
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 concrete5/concrete5

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-3180, inspect your project dependencies for Concrete5/concrete5:

inspect dependencies for concrete5/concrete5

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

Concrete CMS version 9 below 9.2.8 and previous versions below 8.5.16 is vulnerable to Stored XSS in blocks of type file. Stored XSS could be caused by a rogue administrator adding malicious code to the link-text field when creating a block of type file. The Concrete CMS security team gave this vulnerability a CVSS v3.1 score of 3.1 with a vector of AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:L https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator . Thanks Alexey Solovyev for reporting.

CVE-2024-3180 Affected Concrete5/concrete5 Versions

2 component(s)
Fixed Versions:
9.2.88.5.16
Product / Package Ecosystem Affected Versions Fixed Version
concrete5/concrete5
Packagist
≥ 9.0.0RC1
< 9.2.8
9.2.8
concrete5/concrete5
Packagist
< 8.5.16
8.5.16

References

Frequently Asked Questions

What is CVE-2024-3180?
CVE-2024-3180 is a security vulnerability in Concrete5/concrete5 involving Concrete CMS Stored XSS in blocks of type file under CWE-20: Improper Input Validation.
Which Concrete5/concrete5 versions are affected?
Affected versions include releases prior to 9.2.8, 8.5.16 across affected packages: concrete5/concrete5.
What version fixes CVE-2024-3180?
Upgrading to 9.2.8, 8.5.16 (or the latest patched release for your respective branch) resolves the vulnerability.
Is concrete5/concrete5 affected?
Yes, concrete5/concrete5 is affected in releases prior to 9.2.8, 8.5.16. Upgrade your dependency to 9.2.8, 8.5.16 or later.
What is the CVSS score of CVE-2024-3180?
CVE-2024-3180 has a CVSS v3.1 base score of 3.1 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2024-3180?
CVE-2024-3180 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-2024-3180?
Run the dependency tree command: 'inspect dependencies for concrete5/concrete5'. 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-9qhc-pg6j-wf23",
  "modified" : "2024-08-08T19:04:10Z",
  "published" : "2024-04-03T21:31:41Z",
  "aliases" : [ "CVE-2024-3180" ],
  "summary" : "Concrete CMS Stored XSS in blocks of type file",
  "details" : "Concrete CMS version 9 below 9.2.8 and previous versions below 8.5.16 is vulnerable to Stored XSS in blocks of type file. Stored XSS could be caused by a rogue administrator adding malicious code to the link-text field when creating a block of type file. The Concrete CMS security team gave this vulnerability a CVSS v3.1 score of 3.1 with a vector of AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:L https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator . Thanks Alexey Solovyev for reporting.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "concrete5/concrete5"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0RC1"
      }, {
        "fixed" : "9.2.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "concrete5/concrete5"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.5.16"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-3180"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/concretecms/concretecms/commit/822e689cefe1eb876e9de31dad9ce660f3b5c295"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/concretecms/concretecms/commit/e85ef2408a5eea7d5646178fbef0ab243baaed8f"
  }, {
    "type" : "WEB",
    "url" : "https://documentation.concretecms.org/9-x/developers/introduction/version-history/928-release-notes?_gl=1*1bcxp5s*_ga*MTc1NDc0Njk2Mi4xNzA2ODI4MDU1*_ga_HFB3HPNNLS*MTcxMjE2NjYyNi4xMy4xLjE3MTIxNjY2ODEuMC4wLjA."
  }, {
    "type" : "WEB",
    "url" : "https://documentation.concretecms.org/developers/introduction/version-history/8516-release-notes?_gl=1*1oa3zn1*_ga*MTc1NDc0Njk2Mi4xNzA2ODI4MDU1*_ga_HFB3HPNNLS*MTcxMjE2NjYyNi4xMy4xLjE3MTIxNjY3MDcuMC4wLjA."
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/concretecms/concretecms"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-79" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-03T22:06:26Z",
    "nvd_published_at" : "2024-04-03T19:15:44Z"
  }
}