Pimcore Vulnerable to SQL Injection in getRelationFilterCondition
Published 11 Mar 2025 · Updated 11 Mar 2025
Affected package
- Affected
- <11.5.4
- Fixed in
- 11.5.4
composer require pimcore/pimcore:^11.5.4Details
Summary
Authenticated users can craft a filter string used to cause a SQL injection.
Details
_Give all details on the vulnerability. Pointing to the incriminated source code is very helpful for the maintainer._ This code does not look to sanitize inputs: https://github.com/pimcore/pimcore/blob/c721a42c23efffd4ca916511ddb969598d302396/models/DataObject/ClassDefinition/Data/Extension/RelationFilterConditionParser.php#L29-L47
c.f. with https://github.com/pimcore/pimcore/blob/c721a42c23efffd4ca916511ddb969598d302396/models/DataObject/ClassDefinition/Data/Multiselect.php#L332-L347
PoC
_Complete instructions, including specific configuration details, to reproduce the vulnerability._
Impact
_What kind of vulnerability is it? Who is impacted?_
Is GHSA-qjpx-5m2p-5pgh 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-qjpx-5m2p-5pgh
- Advisorynvd.nist.gov/vuln/detail/CVE-2025-27617
- Linkgithub.com/pimcore/pimcore/commit/19a8520895484e68fd254773e32476565d91deea
- Packagegithub.com/pimcore/pimcore
- Linkgithub.com/pimcore/pimcore/blob/c721a42c23efffd4ca916511ddb969598d302396/models/DataObject/ClassDefinition/Data/Extension/RelationFilterConditionParser.php#L29-L47
- Linkgithub.com/pimcore/pimcore/blob/c721a42c23efffd4ca916511ddb969598d302396/models/DataObject/ClassDefinition/Data/Multiselect.php#L332-L347
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.