CVE-2022-24752CWE-89

SQL Injection through sorting parameters in SyliusGridBundle

Critical · published March 15, 2022

CVSS v3.1
9.8
EPSS
1%
Percentile
72.1
In the wild
Unconfirmed
What it is

🔥 A sneaky oversight in SyliusGridBundle could leave your database vulnerable to SQL injection if not addressed! Think of it like a restaurant where orders are placed without verifying the menu — some ingredients could be harmful if added without checks. When query sorting passes values directly to the database, it’s like someone swapping in unverified items without the chef's approval! If an attacker exploits this vulnerability, they could potentially run malicious SQL commands directly against your database. This means reading or altering sensitive data, which could lead to catastrophic data breaches or system disruptions!

Put simply

Think of it like a restaurant where orders are placed without verifying the menu — some ingredients could be harmful if added without checks. When query sorting passes values directly to the database, it’s like someone swapping in unverified items without the chef's approval! This vulnerability allows unsanitized values added to query sorting in the SyliusGridBundle to reach the database, potentially leading to SQL injection attacks if not properly managed.

What to do

If an attacker exploits this vulnerability, they could potentially run malicious SQL commands directly against your database. This means reading or altering sensitive data, which could lead to catastrophic data breaches or system disruptions! Upgrade to versions 1.10.1 or 1.11-rc2 immediately to patch the vulnerability. If an immediate update isn't possible, apply the recommended workaround by overwriting the `Sorter.php` class and registering it in your container as detailed in the GitHub Security Advisory. You’ve got this! By taking swift action, you’ll fortify your defenses and keep your data safe. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01392 · 72.1th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2022-03-15T14:40Z
EPSS history
Timeline
  • 15 MAR 14:40Z
    SQL Injection through sorting parameters in SyliusGridBundle
    cvelistv5