Pimcore Path Traversal Vulnerability in AdminBundle/Controller/Reports/CustomReportController.php
Published 2 May 2023 · Updated 16 Feb 2024
Affected package
- Affected
- <10.5.18
- Fixed in
- 10.5.18
composer require pimcore/pimcore:^10.5.18Details
Impact
The impact of this path traversal and arbitrary extension is limited (creation of arbitrary files and appending data to existing files) but when combined with the SQL Injection, the exported data RESTRICTED DIFFUSION 9 / 9 can be controlled and a webshell can be uploaded. Attackers can use that to execute arbitrary PHP code on the server with the permissions of the webserver.
Patches
Update to version 10.5.18 or apply this patch manually https://github.com/pimcore/pimcore/commit/7f788fa44bc18bc1c9182c25e26b770a1d30b62f.patch
Workarounds
Apply patch https://github.com/pimcore/pimcore/commit/7f788fa44bc18bc1c9182c25e26b770a1d30b62f.patch manually.
References
https://github.com/pimcore/pimcore/pull/14498
Is GHSA-g2mc-fqqc-hxg3 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected pimcore/pimcore, and gives you the command that fixes it.
References
- Linkgithub.com/pimcore/pimcore/security/advisories/GHSA-g2mc-fqqc-hxg3
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-30855
- Linkgithub.com/pimcore/pimcore/pull/14498
- Linkgithub.com/pimcore/pimcore/commit/7f788fa44bc18bc1c9182c25e26b770a1d30b62f.patch
- Linkgithub.com/pimcore/pimcore/commit/f1d904094700b513c4756904fa2b1e19d08d890e.patch
- Packagegithub.com/pimcore/pimcore
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.