MediumGHSA-hg77-vx9v-f49xCVE-2023-2336

Path Traversal in Asset "import from server" option

Published 27 Apr 2023 · Updated 16 Feb 2024

Affected package

Affected
<10.5.21
Fixed in
10.5.21
Update to the fixed version for your release line, for example:composer require pimcore/pimcore:^10.5.21

Details

Impact

An authenticated attacker can abuse import-server-files with a path traversal to download an arbitrary file from the server

An arbitrary file read vulnerability allows an attacker to read files on the server that they should not have access to, potentially including sensitive files such as configuration files, user data, and credentials. This can result in the exposure of confidential information, which can be used to launch further attacks or compromise the system.

Patches

Update to version 10.5.21 or apply this patch manually https://github.com/pimcore/pimcore/commit/498cadec2292f7842fb10612068ac78496e884b4.patch

Workarounds

Apply patch https://github.com/pimcore/pimcore/commit/498cadec2292f7842fb10612068ac78496e884b4.patch manually.

References

https://huntr.dev/bounties/af764624-7746-4f53-8480-85348dbb4f14/

Is GHSA-hg77-vx9v-f49x 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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.