GitHub Advisoryadvisory · Packagist
GHSA-qjpx-5m2p-5pgh Pimcore Vulnerable to SQL Injection in getRelationFilterCondition
MEDIUM
Official page ↗
- Aliases
- CVE-2025-27617
- Ecosystem
- Packagist
- Packages
- pimcore/pimcore
- Severity
- Moderate
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
- Weaknesses
- CWE-89
- Reviewed
- 2025-03-11
Affected packages
• Packagist pimcore/pimcore: < 11.5.4 → fixed in 11.5.4
Description
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?_
Related
Alias · CVE (1)
- CVE-2025-27617 Pimcore is an open source data and experience management platform. vulnerability
Weakness · CWE (1)
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness
References
- https://github.com/pimcore/pimcore/security/advisories/GHSA-qjpx-5m2p-5pgh web
- https://nvd.nist.gov/vuln/detail/CVE-2025-27617 advisory
- https://github.com/pimcore/pimcore/commit/19a8520895484e68fd254773e32476565d91deea web
- https://github.com/pimcore/pimcore package
- https://github.com/pimcore/pimcore/blob/c721a42c23efffd4ca916511ddb969598d302396/models/DataObject/ClassDefinition/Data/Extension/RelationFilterConditionParser.php#L29-L47 web
- https://github.com/pimcore/pimcore/blob/c721a42c23efffd4ca916511ddb969598d302396/models/DataObject/ClassDefinition/Data/Multiselect.php#L332-L347 web