CriticalGHSA-5qxq-vgmm-q39mCVE-2022-39365
RCE vulnerability in Pimcore/Mail & Dynamic Text Layout
Published 29 Oct 2022 · Updated 8 Nov 2023
Affected package
pimcore/pimcoreComposer
- Affected
- <10.5.9
- Fixed in
- 10.5.9
Update to the fixed version for your release line, for example:
composer require pimcore/pimcore:^10.5.9Details
Impact
The user controlled twig templates rendering in Pimcore/Mail & ClassDefinition\Layout\Text is vulnerable to server-side template Injection RCE.
Patches
Update to version 10.5.9 or apply this patch manually https://github.com/pimcore/pimcore/pull/13347.patch
Workarounds
Apply https://github.com/pimcore/pimcore/pull/13347.patch manually.
References
Credits: @nth347 from Viettel Cyber Security
Is GHSA-5qxq-vgmm-q39m 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-5qxq-vgmm-q39m
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-39365
- Linkgithub.com/pimcore/pimcore/pull/13347
- Linkgithub.com/pimcore/pimcore/pull/13347.patch
- Linkgithub.com/pimcore/pimcore/commit/43aa34e018f5cd447bceb864358285ba92f68372
- Packagegithub.com/pimcore/pimcore
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.