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

LOW
Advisory Identifier: GHSA-mgp6-j658-vcw9
CVSS 2.4
CWE-20 CWE-79
Published
Advisory Summary

CVE-2024-1245 is a LOW (CVSS 2.4) cross-site scripting vulnerability (CWE-20: Improper Input Validation) affecting Concrete5/concrete5 libraries in the Packagist ecosystem. The issue involves concrete cms vulnerable to stored xss in file tags and description attributes. Remediation is available by upgrading affected packages to version 9.2.5.

CVE-2024-1245 at a Glance

CVE Identifier CVE-2024-1245
GHSA Identifier GHSA-mgp6-j658-vcw9
Severity LOW
CVSS v3.1 Base Score 2.4
CWE Classification CWE-20: Improper Input Validation
Affected Product Concrete5/concrete5
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 2.4

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

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

How to Fix CVE-2024-1245

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.5
Upgrade concrete5/concrete5 to 9.2.5
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-1245, 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.5), 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 before 9.2.5 is vulnerable to stored XSS in file tags and description attributes since administrator entered file attributes are not sufficiently sanitized in the Edit Attributes page. A rogue administrator could put malicious code into the file tags or description attributes and, when another administrator opens the same file for editing, the malicious code could execute. The Concrete CMS Security team scored this 2.4 with CVSS v3 vector AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:N/A:N https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator .

CVE-2024-1245 Affected Concrete5/concrete5 Versions

1 component(s)
Fixed Versions:
9.2.5
Product / Package Ecosystem Affected Versions Fixed Version
concrete5/concrete5
Packagist
≥ 9.0.0RC1
< 9.2.5
9.2.5

References

Frequently Asked Questions

What is CVE-2024-1245?
CVE-2024-1245 is a security vulnerability in Concrete5/concrete5 involving Concrete CMS vulnerable to stored XSS in file tags and description attributes under CWE-20: Improper Input Validation.
Which Concrete5/concrete5 versions are affected?
Affected versions include releases prior to 9.2.5 across affected packages: concrete5/concrete5.
What version fixes CVE-2024-1245?
Upgrading to 9.2.5 (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.5. Upgrade your dependency to 9.2.5 or later.
What is the CVSS score of CVE-2024-1245?
CVE-2024-1245 has a CVSS v3.1 base score of 2.4 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-1245?
CVE-2024-1245 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-1245?
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-mgp6-j658-vcw9",
  "modified" : "2024-02-15T15:00:28Z",
  "published" : "2024-02-09T21:30:57Z",
  "aliases" : [ "CVE-2024-1245" ],
  "summary" : "Concrete CMS vulnerable to stored XSS in file tags and description attributes",
  "details" : "Concrete CMS version 9 before 9.2.5 is vulnerable to stored XSS in file tags and description attributes since administrator entered file attributes are not sufficiently sanitized in the Edit Attributes page. A rogue administrator could put malicious code into the file tags or description attributes and, when another administrator opens the same file for editing, the malicious code could execute. The Concrete CMS Security team scored this 2.4 with CVSS v3 vector  AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:N/A:N https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator . \n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "concrete5/concrete5"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0RC1"
      }, {
        "fixed" : "9.2.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-1245"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/concretecms/concretecms/commit/59a07472ad6349a2c5fb455837a54ed1fe3f6953"
  }, {
    "type" : "WEB",
    "url" : "https://documentation.concretecms.org/9-x/developers/introduction/version-history/925-release-notes"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/concretecms/concretecms"
  }, {
    "type" : "WEB",
    "url" : "https://www.concretecms.org/about/project-news/security/2024-02-04-security-advisory"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-79" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-09T22:17:37Z",
    "nvd_published_at" : "2024-02-09T20:15:54Z"
  }
}