---
id: CVE-2021-47811
title: Grocery crud 1.6.4 - 'order_by' SQL Injection
summary: >-
  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…
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'
cvssSource: cna
cwe:
  - CWE-89
vendor: Grocerycrud
product: Grocery crud
affected:
  - grocery_crud < v2.0.1
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-01-16T15:50:18.775222Z'
exploitAvailable: true
published: '2026-01-15'
updated: '2026-11-07'
sourceUpdated: '2026-11-07T17:23:14.407Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2021-47811'
references:
  - url: 'https://www.exploit-db.com/exploits/49985'
    label: ExploitDB-49985
  - url: 'https://www.grocerycrud.com/'
    label: Vendor Homepage
  - url: 'https://www.grocerycrud.com/downloads'
    label: Software Download Page
  - url: 'https://www.vulncheck.com/advisories/grocery-crud-orderby-sql-injection'
    label: 'VulnCheck Advisory: Grocery crud 1.6.4 - ''order_by'' SQL Injection'
tags:
  - cve.org
  - exploit-available
epss: 0.00577
epssPercentile: 0.47794
ingestedAt: '2026-11-07T18:36:10.443Z'
---

## Overview

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.

## Affected

- `grocery_crud < v2.0.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
