SQL Injection Affecting sylius/grid-bundle package, versions <1.10.1>=1.11-rc1, <1.11.-rc2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (58th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-SYLIUSGRIDBUNDLE-2423584
  • published16 Mar 2022
  • disclosed15 Mar 2022
  • creditUnknown

Introduced: 15 Mar 2022

CVE-2022-24752  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade sylius/grid-bundle to version 1.10.1, 1.11.-rc2 or higher.

Overview

sylius/grid-bundle is a grids with support of filters and custom fields integrated into Symfony.

Affected versions of this package are vulnerable to SQL Injection due to missing sanitization of values added at the end of query sorting, which were passed directly to the database.

Workaround

Overwrite the Sylius\Component\Grid\Sorting\Sorter.php class and register it in the container.

CVSS Scores

version 3.1