CVE-2025-27617: Pimcore Vulnerable to SQL Injection in getRelationFilterCondition
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:…
Published Mar 11, 2025
Affected packages
pimcore/pimcore
- Ecosystem
- Composer (PHP)
- Affected
- < 11.5.4
- Fixed in
- 11.5.4
- Check
composer show pimcore/pimcore
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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?_
Credited to cancan101.
References
- https://github.com/pimcore/pimcore/security/advisories/GHSA-qjpx-5m2p-5pgh
- https://nvd.nist.gov/vuln/detail/CVE-2025-27617
- https://github.com/pimcore/pimcore/commit/19a8520895484e68fd254773e32476565d91deea
- https://github.com/pimcore/pimcore/blob/c721a42c23efffd4ca916511ddb969598d302396/models/DataObject/ClassDefinition/Data/Extension/RelationFilterConditionParser.php#L29-L47
- https://github.com/pimcore/pimcore/blob/c721a42c23efffd4ca916511ddb969598d302396/models/DataObject/ClassDefinition/Data/Multiselect.php#L332-L347
- https://github.com/advisories/GHSA-qjpx-5m2p-5pgh
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-55416
Pimcore: SQL Injection in Custom Reports via Malicious Report Configuration
high8.8Sep 10, 2026CVE-2026-55220
Pimcore Hotspotimage getDataFromResource() unrestricted Serialize::unserialize over object-store column (PHP Object Injection, CWE-502)
critical9.3Aug 28, 2026CVE-2026-55634
Pimcore Vulnerable to Remote Code Execution via DataObject Class-Definition Field Name
critical9.9Aug 28, 2026CVE-2026-55072
Pimcore: ClassDefinition UID regex missing end anchor allows SQL injection via Block.php unquoted table name
high8.5Aug 13, 2026CVE-2026-11407
Pimcore CMS Twig Sandbox Bypass via SecurityPolicy checkMethodAllowed
high7.2No fixJun 17, 2026CVE-2026-5394
Pimcore Platform - SQL Injection in DataObject composite index handling during class definition import/save
high7.0May 28, 2026
