Sylius has a DQL Injection via API Order Filters
Sylius
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| sylius/sylius Packagist |
|
Sylius
| Product | Affected | Fixed in |
|---|---|---|
| sylius/sylius Packagist |
|
≥ 2.2.0 · < 2.2.3
|
Sylius is an Open Source eCommerce Framework on Symfony. Sylius API filters ProductPriceOrderFilter and TranslationOrderNameAndLocaleFilter pass user-supplied order direction values directly to Doctrine's orderBy() without validation. An attacker can inject arbitrary DQL. The issue is fixed in versions: 1.9.12, 1.10.16, 1.11.17, 1.12.23, 1.13.15, 1.14.18, 2.0.16, 2.1.12, 2.2.3 and above.
From the CVE record · GitHub_M
Sylius API filters ProductPriceOrderFilter and TranslationOrderNameAndLocaleFilter pass user-supplied order directions to Doctrine’s orderBy() without validation. An attacker who can supply those values through the API can inject arbitrary DQL. The input does not specify whether authentication or user interaction is required.
Teams running Packagist package sylius/sylius should check versions below 1.9.12 or within the affected 1.10 through 2.2 release ranges.