Grocery Crud
CVE-2021-47811
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach ajax_list endpoint over network
-
DeliveryCraft POST with malicious order_by[] value
-
ExploitInject SQL into ORDER BY clause
-
ExecutionDatabase executes attacker SQL
-
ImpactExtract or modify database data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target application is built on Grocery Crud 1.6.4 and exposes the framework's ajax_list endpoint, and that the attacker can submit the order_by[] parameter in a POST request - the specific injectable feature named in the description. Per the CVSS vector (PR:N/UI:N), no authentication or user interaction is required and default behavior of the vulnerable ajax_list sorting is sufficient. The principal limiting factor is product scope: only deployments using the vulnerable Grocery Crud version with that endpoint reachable are affected, which is a narrow, developer-library footprint rather than a ubiquitous platform. |
| Impact | Signals are consistent and point to a genuine but non-urgent issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a remotely reachable, low-complexity, unauthenticated vulnerability with high confidentiality impact (VC:H) and limited integrity impact (VI:L), which aligns with the SQL injection (CWE-89) described in the order_by parameter. However, exploitation-likelihood signals are low: EPSS is only 0.02% (5th percentile), the CVE is NOT on CISA KEV (no confirmed active exploitation), and the public exploit is a reference (Exploit-DB 49985) that the input explicitly flags as not verified as working exploit code. The vuln.today priority is 'this_week' rather than act_now/emergency. The tension here is between an inherently serious flaw class (unauthenticated SQLi) and the low real-world exploitation probability plus the obscurity of the affected product - Grocery Crud is a niche PHP/CodeIgniter developer library, not a widely deployed enterprise target, which is the most likely reason EPSS and priority are modest. No conflicting data in the CVSS metrics themselves; the main gap is the absence of a confirmed fixed version in the supplied evidence. |
| Exploit ScenarioDerived | A remote attacker sends a crafted POST request to the ajax_list endpoint of an application built on Grocery Crud 1.6.4, injecting malicious SQL through the order_by[] parameter to read or alter backend database contents. Because the CVSS vector is AV:N/AC:L/PR:N/UI:N, no authentication or user interaction is required and the request can be automated. A public PoC reference exists (Exploit-DB 49985); it is not verified as working exploit code in the supplied data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Nov 07, 2026
SQL injection in Grocery Crud 1.6.4 allows remote, unauthenticated attackers to manipulate database queries by supplying crafted values through the order_by[] parameter in POST requests to the framework's ajax_list endpoint, with the potential to extract or modify stored data. The vulnerable component is a developer-facing CRUD library rather than a widely deployed platform, so exposure is limited to applications built on this release that expose ajax_list. Exploitation has not been confirmed in the wild (no CISA KEV listing), EPSS is low at 0.02% (5th percentile), and a public PoC reference exists but is not verified as working exploit code.
Earlier versions of this analysis (1)
SQL injection in Grocery Crud's order_by parameter enables full database compromise.
RemediationAI
No vendor-released patch version is identified in the available data, so the fixed release, if any, should be confirmed against the vendor site and downloads page (https://www.grocerycrud.com/ and https://www.grocerycrud.com/downloads) and checked against the VulnCheck advisory (https://www.vulncheck.com/advisories/grocery-crud-orderby-sql-injection) before upgrading; absence of a listed fix version here is not proof that none exists. Because exploitation depends on the application exposing the framework's ajax_list endpoint and accepting the order_by[] parameter (per the assessed CVSS:3.1/AV:N/AC:L/PR:N/UI:N vector, no authentication or user interaction is needed), the practical compensating control is to restrict reachability of that endpoint - require authentication, place it behind network or WAF rules, or disable server-side sorting on grids served to untrusted users - with the trade-off that grid sorting and list rendering for legitimate users will break or degrade, and that such filtering is bypassable unless the parameter is validated against an allow-list of sortable columns. Applications able to modify the library should constrain order_by[] to a fixed set of known column names rather than passing it into the query builder. EPSS is 0.02% and there is no KEV entry, so this is a this_week priority item rather than an emergency, but a public PoC reference exists (not verified as working exploit code).
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Grocery Crud is an open-source PHP/CodeIgniter-oriented CRUD generator that builds data-grid interfaces on top of an application's database tables; its ajax_list endpoint serves the server-side list/sort requests generated by those grids. The flaw is classified as CWE-89 (Improper Neutralization of Special Elements used in an SQL Command). The order_by[] array parameter, which controls grid sorting, is incorporated into the generated SQL without adequate neutralization, so attacker-supplied content reaches the database query layer rather than being constrained to a fixed set of column identifiers. Because ORDER BY clauses cannot normally be parameterized as ordinary values, this is a classic case of a sort-control input needing strict allow-listing. The CPE cpe:2.3:a:grocerycrud:grocery_crud:*:*:*:*:*:*:*:* uses a wildcard version, so the CPE record itself does not bound the affected range; the advisory and description name 1.6.4 specifically. The trigger conditions described above come from the vulnerability description and the independent assessment; further implementation detail on how the parameter is assembled into the query is not described in the available sources.
Know when Grocery Crud gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Remote unauthenticated SQLi with no user interaction (AV:N/AC:L/PR:N/UI:N); data extraction gives C:H, described modification is limited (I:L), no availability impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
5DescriptionCVE.org
Grocery Crud 1.6.4 contains a SQL injection vulnerability in the order_by parameter that allows remote attackers to manipulate database queries. Attackers can inject malicious SQL code through the order_by[] parameter in POST requests to the ajax_list endpoint to potentially extract or modify database information.
Executive ViewAI
Grocery CRUD 1.6.4, a developer library used to build administrative interfaces, contains a SQL injection flaw that could let an unauthenticated attacker tamper with or extract data from applications built on this release. Because the library is not widely deployed and exploitation has not been observed, the immediate enterprise-wide risk is low, but any line-of-business or internal tool relying on this version could expose sensitive records. Leadership should care if such applications exist in production, as a successful attack could undermine data integrity and trust in internal systems.
No vendor-released patch identified at time of analysis; interim mitigations include restricting network access to the ajax_list endpoint, enforcing strict input validation on the order_by[] parameter, and deploying a web application firewall rule to block SQL injection attempts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
NVD
CVE.org
EPSS
Exploit-DB
VulDB
GitHub PoC