Pimcore Arbitrary File Read in Admin JS CSS files
Description
Pimcore is an open source data and experience management platform. Prior to version 10.5.21, the /admin/misc/script-proxy API endpoint that is accessible by an authenticated administrator user is vulnerable to arbitrary JavaScript and CSS file read via the scriptPath and scripts parameters. The scriptPath parameter is not sanitized properly and is vulnerable to path traversal attack. Any JavaScript/CSS file from the application server can be read by specifying sufficient number of ../ patterns to go out from the application webroot followed by path of the folder where the file is located in the "scriptPath" parameter and the file name in the "scripts" parameter. The JavaScript file is successfully read only if the web application has read access to it. Users should update to version 10.5.21 to receive a patch or, as a workaround, apply the patch manual.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
pimcore/pimcorePackagist | < 10.5.21 | 10.5.21 |
Affected products
1Patches
1498cadec2292[Security] Admin Authenticated Arbitrary File Read (#14974)
3 files changed · +9 −1
bundles/AdminBundle/Controller/Admin/Asset/AssetController.php+4 −0 modified@@ -2459,6 +2459,10 @@ public function importServerAction(Request $request) */ public function importServerFilesAction(Request $request) { + if(!Tool\Admin::getCurrentUser()->isAdmin()) { + throw $this->createAccessDeniedException('Permission denied. You don\'t have the rights to import files from the server!'); + } + $assetFolder = Asset::getById((int) $request->get('parentId')); if (!$assetFolder) { throw $this->createNotFoundException('Parent asset not found');
bundles/AdminBundle/Resources/public/js/pimcore/asset/tree.js+1 −1 modified@@ -594,7 +594,7 @@ pimcore.asset.tree = Class.create({ }); } - if (perspectiveCfg.inTreeContextMenu("asset.add.importFromServer")) { + if (perspectiveCfg.inTreeContextMenu("asset.add.importFromServer") && pimcore.currentuser.admin) { menuItems.push({ text: t("import_from_server"), handler: this.importFromServer.bind(this, tree, record),
doc/Development_Documentation/23_Installation_and_Upgrade/09_Upgrade_Notes/README.md+4 −0 modified@@ -1,8 +1,12 @@ # Upgrade Notes +## 10.5.21 +- [Assets] The Asset `Import from Server` feature is now only available for admins. It will be removed in Pimcore 11 + ## 10.5.13 - [Web2Print] Print document twig expressions are now executed in a sandbox with restrictive security policies (just like Sending mails and Dataobject Text Layouts introduced in 10.5.9). + ## 10.5.10 - [DataObject] Deprecated: Loading non-Concrete objects with the Concrete class will not be possible in Pimcore 11.
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-j5c3-r84f-9596ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-30852ghsaADVISORY
- github.com/pimcore/pimcore/commit/498cadec2292f7842fb10612068ac78496e884b4.patchghsax_refsource_MISCWEB
- github.com/pimcore/pimcore/pull/14959ghsax_refsource_MISCWEB
- github.com/pimcore/pimcore/security/advisories/GHSA-j5c3-r84f-9596ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.