CVE-2022-38148:
Blind SQL Injection via GridFieldSortableHeader
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.39586%
CWE
Published
11/22/2022
Updated
1/24/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
silverstripe/framework | composer | >= 4.0.0, < 4.10.11 | 4.10.11 |
silverstripe/framework | composer | >= 4.11.0, < 4.11.14 | 4.11.14 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability centers around improper handling of GridField
state parameters in sorting operations. GridFieldSortableHeader
processes user-controlled sort parameters that flow into SQL ORDER BY
clauses. DataList::sort()
is a core ORM method that would execute these parameters. Without proper whitelisting/escaping of column names and directions (handled via state parameters), attackers can inject SQL through crafted sort values. The high confidence comes from: 1) Advisory explicitly naming GridFieldSortableHeader
2) SQL injection pattern matching ORM sort()
method behavior 3) GridField
state being the documented attack vector.