Advisory

GHSA-qjpx-5m2p-5pgh

Also known as: CVE-2025-27617

Summary

Pimcore Vulnerable to SQL Injection in getRelationFilterCondition

Details

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?_

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-03-11 21:33 UTC
Modified
2025-03-11 21:57 UTC

Affected packages and fixes

pimcore/pimcore

Packagist · All systems

Affected

  • introduced 0, fixed 11.5.4 (ecosystem)

Fixed versions

11.5.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences