CVE-2021-4262: laravel-jqgrid vulnerable to SQL Injection
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.13316%
CWE
Published
12/19/2022
Updated
1/30/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| mgallegos/laravel-jqgrid | composer | <= 1.3.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the pre-patch implementation that used orderByRaw($orderByRaw) with raw user input. The $orderByRaw parameter was constructed from request parameters (sidx/sord) without proper validation. The patch replaced orderByRaw with parameterized orderBy() calls after splitting and validating components, confirming the original raw SQL usage was the injection vector. The function's direct handling of user input in SQL construction makes it clearly vulnerable.