CVE-2023-4145: Pimcore/customer management framework bundle Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-735f-w79p-282x
CVSS 6.5
CWE-87 CWE-79
Published
Advisory Summary

CVE-2023-4145 is a MODERATE (CVSS 6.5) cross-site scripting vulnerability (CWE-87: Improper Neutralization of Alternate XSS Syntax) affecting Pimcore/customer management framework bundle libraries in the Packagist ecosystem. The issue involves pimcore/customer-management-framework-bundle cross-site scripting vulnerability in segment name. Remediation is available by upgrading affected packages to version 3.4.2.

CVE-2023-4145 at a Glance

CVE Identifier CVE-2023-4145
GHSA Identifier GHSA-735f-w79p-282x
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-87: Improper Neutralization of Alternate XSS Syntax
Affected Product Pimcore/customer management framework bundle
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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 Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2023-4145

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

pimcore/customer-management-framework-bundle fixed: 3.4.2
Upgrade pimcore/customer-management-framework-bundle to 3.4.2
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 pimcore/customer-management-framework-bundle

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-4145, inspect your project dependencies for Pimcore/customer management framework bundle:

inspect dependencies for pimcore/customer-management-framework-bundle

Analyze the terminal output to locate any version of Pimcore/customer management framework bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.4.2), 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-87: Improper Neutralization of Alternate XSS Syntax, where the product does not neutralize or incorrectly neutralizes user-controlled input for alternate script syntax. In Pimcore/customer management framework bundle, 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

### Impact As HTML injection works in email an attacker can trick a victim to click on such hyperlinks to redirect him to any malicious site and also can host a XSS page. All this will surely cause some damage to the victim. This could lead to users being tricked into giving logins away to malicious attackers. ### Patches Update to version 3.4.2 or apply this patch manually https://github.com/pimcore/customer-data-framework/commit/72f45dd537a706954e7a71c99fbe318640e846a2.patch ### Workarounds Apply https://github.com/pimcore/customer-data-framework/commit/72f45dd537a706954e7a71c99fbe318640e846a2.patch manually. ### References https://huntr.dev/bounties/ce852777-2994-40b4-bb4e-c4d10023eeb0/

CVE-2023-4145 Affected Pimcore/customer management framework bundle Versions

1 component(s)
Fixed Versions:
3.4.2
Product / Package Ecosystem Affected Versions Fixed Version
pimcore/customer-management-framework-bundle
Packagist
< 3.4.2
3.4.2

References

Frequently Asked Questions

What is CVE-2023-4145?
CVE-2023-4145 is a security vulnerability in Pimcore/customer management framework bundle involving pimcore/customer-management-framework-bundle Cross-site Scripting vulnerability in Segment name under CWE-87: Improper Neutralization of Alternate XSS Syntax.
Which Pimcore/customer management framework bundle versions are affected?
Affected versions include releases prior to 3.4.2 across affected packages: pimcore/customer-management-framework-bundle.
What version fixes CVE-2023-4145?
Upgrading to 3.4.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pimcore/customer-management-framework-bundle affected?
Yes, pimcore/customer-management-framework-bundle is affected in releases prior to 3.4.2. Upgrade your dependency to 3.4.2 or later.
What is the CVSS score of CVE-2023-4145?
CVE-2023-4145 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L.
What CWE is associated with CVE-2023-4145?
CVE-2023-4145 is classified under CWE-87: Improper Neutralization of Alternate XSS Syntax (The product does not neutralize or incorrectly neutralizes user-controlled input for alternate script syntax.).
How can I check Packagist dependencies for CVE-2023-4145?
Run the dependency tree command: 'inspect dependencies for pimcore/customer-management-framework-bundle'. 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-735f-w79p-282x",
  "modified" : "2023-08-03T19:40:12Z",
  "published" : "2023-08-03T16:32:49Z",
  "aliases" : [ "CVE-2023-4145" ],
  "summary" : "pimcore/customer-management-framework-bundle Cross-site Scripting vulnerability in Segment name",
  "details" : "### Impact\nAs HTML injection works in email an attacker can trick a victim to click on such hyperlinks to redirect him to any malicious site and also can host a XSS page. All this will surely cause some damage to the victim. This could lead to users being tricked into giving logins away to malicious attackers.\n\n### Patches\nUpdate to version 3.4.2 or apply this patch manually https://github.com/pimcore/customer-data-framework/commit/72f45dd537a706954e7a71c99fbe318640e846a2.patch\n\n### Workarounds\nApply https://github.com/pimcore/customer-data-framework/commit/72f45dd537a706954e7a71c99fbe318640e846a2.patch manually.\n\n### References\nhttps://huntr.dev/bounties/ce852777-2994-40b4-bb4e-c4d10023eeb0/\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "pimcore/customer-management-framework-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.4.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pimcore/customer-data-framework/security/advisories/GHSA-735f-w79p-282x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-4145"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pimcore/customer-data-framework/commit/72f45dd537a706954e7a71c99fbe318640e846a2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pimcore/customer-data-framework/commit/72f45dd537a706954e7a71c99fbe318640e846a2.patch"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pimcore/customer-data-framework"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/ce852777-2994-40b4-bb4e-c4d10023eeb0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79", "CWE-87" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-03T16:32:49Z",
    "nvd_published_at" : "2023-08-03T17:15:12Z"
  }
}