CVE-2023-24775: SQL Injection in Funadmin
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.98067%
CWE
Published
3/7/2023
Updated
3/5/2025
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 |
---|---|---|---|
funadmin/funadmin | composer | <= 3.2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability arises because the application's selectList
method (Curd.php
) accepts the 'selectFields' parameter from the user and passes it to the ORM's field()
method (BaseQuery.php
). The field()
method directly incorporates this input into SQL queries without sanitization. The GitHub issue explicitly traces this flow, demonstrating that unsanitized input reaches the SQL construction phase. While the ORM's field()
method is designed to handle trusted input, the application's failure to validate()
or escape the user-controlled 'selectFields' parameter before passing it to this method makes both the application-layer method (selectList
) and the ORM method (field
) part of the vulnerable code path.