CVE-2024-21665: Pimcore/ecommerce framework bundle Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-cx99-25hr-5jxf
CVSS 4.3
CWE-284
Published
Advisory Summary

CVE-2024-21665 is a MODERATE (CVSS 4.3) remote code execution vulnerability (CWE-284: Improper Access Control) affecting Pimcore/ecommerce framework bundle libraries in the Packagist ecosystem. The issue involves pimcore ecommerce framework bundle improper access control allows unprivileged user to access back-office orders list. Remediation is available by upgrading affected packages to version 1.0.10.

CVE-2024-21665 at a Glance

CVE Identifier CVE-2024-21665
GHSA Identifier GHSA-cx99-25hr-5jxf
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-284: Improper Access Control
Affected Product Pimcore/ecommerce framework bundle
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.3

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:N/S:U/C:L/I:N/A:N).

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

How to Fix CVE-2024-21665

To remediate this vulnerability, upgrade all affected Pimcore/ecommerce 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/ecommerce-framework-bundle fixed: 1.0.10
Upgrade pimcore/ecommerce-framework-bundle to 1.0.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 pimcore/ecommerce-framework-bundle

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-21665, inspect your project dependencies for Pimcore/ecommerce framework bundle:

inspect dependencies for pimcore/ecommerce-framework-bundle

Analyze the terminal output to locate any version of Pimcore/ecommerce framework bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Pimcore/ecommerce 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

### Summary An authenticated and unauthorized user can access the back-office orders list and be able to query over the information returned. ### Details Permissions do not seem to be enforced when reaching the `admin/ecommerceframework/admin-order/list` endpoint allowing an authenticated user without the permissions to access the endpoint and query the data available there. It seems that the access control is not enforced in this place : <https://github.com/pimcore/ecommerce-framework-bundle/blob/ff6ff287b6eb468bb940909c56970363596e5c21/src/Controller/AdminOrderController.php#L98> __Note__ : Testing this vulnerability requires a fully configured ecommerce website, but it looks vulnerable as when requesting the endpoint the data seem returned (and when looking at the source code nothing seems to validate the permissions on the specified endpoint). ### PoC In order to reproduce the issue, the following steps can be followed : 1. As an administrator : a. Create a role without any permission through Settings → User & Roles → Roles in the administration panel b. Create an user through Settings → User & Roles → Users and assign it the unprivileged role previously created 2. Log out the current administrator and log in with this new user 3. Access to the following endpoint `https://pimcore_instance/admin/ecommerceframework/admin-order/list` and the results will be returned to this unauthorized user ### Impact An unauthorized user can access back-office orders without being authorized to.

CVE-2024-21665 Affected Pimcore/ecommerce framework bundle Versions

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

References

Frequently Asked Questions

What is CVE-2024-21665?
CVE-2024-21665 is a security vulnerability in Pimcore/ecommerce framework bundle involving Pimcore Ecommerce Framework Bundle Improper Access Control allows unprivileged user to access back-office orders list under CWE-284: Improper Access Control.
Which Pimcore/ecommerce framework bundle versions are affected?
Affected versions include releases prior to 1.0.10 across affected packages: pimcore/ecommerce-framework-bundle.
What version fixes CVE-2024-21665?
Upgrading to 1.0.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pimcore/ecommerce-framework-bundle affected?
Yes, pimcore/ecommerce-framework-bundle is affected in releases prior to 1.0.10. Upgrade your dependency to 1.0.10 or later.
What is the CVSS score of CVE-2024-21665?
CVE-2024-21665 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-21665?
CVE-2024-21665 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Packagist dependencies for CVE-2024-21665?
Run the dependency tree command: 'inspect dependencies for pimcore/ecommerce-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-cx99-25hr-5jxf",
  "modified" : "2024-01-11T15:41:40Z",
  "published" : "2024-01-10T15:14:38Z",
  "aliases" : [ "CVE-2024-21665" ],
  "summary" : "Pimcore Ecommerce Framework Bundle Improper Access Control allows unprivileged user to access back-office orders list",
  "details" : "### Summary\nAn authenticated and unauthorized user can access the back-office orders list and be able to query over the information returned.\n\n### Details\nPermissions do not seem to be enforced when reaching the `admin/ecommerceframework/admin-order/list` endpoint allowing an authenticated user without the permissions to access the endpoint and query the data available there. It seems that the access control is not enforced in this place :\n\n<https://github.com/pimcore/ecommerce-framework-bundle/blob/ff6ff287b6eb468bb940909c56970363596e5c21/src/Controller/AdminOrderController.php#L98>\n\n__Note__ :  Testing this vulnerability requires a fully configured ecommerce website, but it looks vulnerable as when requesting the endpoint the data seem returned (and when looking at the source code nothing seems to validate the permissions on the specified endpoint).\n\n### PoC\nIn order to reproduce the issue, the following steps can be followed :\n\n1.  As an administrator :\n  a. Create a role without any permission through Settings → User & Roles → Roles in the administration panel\n  b. Create an user through Settings → User & Roles → Users and assign it the unprivileged role previously created\n2. Log out the current administrator and log in with this new user\n3. Access to the following endpoint `https://pimcore_instance/admin/ecommerceframework/admin-order/list` and the results will be returned to this unauthorized user\n\n### Impact\nAn unauthorized user can access back-office orders without being authorized to.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "pimcore/ecommerce-framework-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pimcore/ecommerce-framework-bundle/security/advisories/GHSA-cx99-25hr-5jxf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21665"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pimcore/ecommerce-framework-bundle/commit/05dec000ed009828084d05cf686f468afd1f464e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pimcore/ecommerce-framework-bundle"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pimcore/ecommerce-framework-bundle/blob/ff6ff287b6eb468bb940909c56970363596e5c21/src/Controller/AdminOrderController.php#L98"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pimcore/ecommerce-framework-bundle/releases/tag/v1.0.10"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-10T15:14:38Z",
    "nvd_published_at" : "2024-01-11T01:15:45Z"
  }
}