CVE-2024-21665: Pimcore/ecommerce framework bundle Remote Code Execution Vulnerability
MODERATECVE-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
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).
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.
Upgrade pimcore/ecommerce-framework-bundle to 1.0.10
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
CVE-2024-21665 Affected Pimcore/ecommerce framework bundle Versions
1 component(s)| 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?
Which Pimcore/ecommerce framework bundle versions are affected?
What version fixes CVE-2024-21665?
Is pimcore/ecommerce-framework-bundle affected?
What is the CVSS score of CVE-2024-21665?
What CWE is associated with CVE-2024-21665?
How can I check Packagist dependencies for CVE-2024-21665?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}