CVE-2021-47748

CRITICAL

Hasura GraphQL 1.3.3 - Remote Code Execution via SQL Query Manipulation in run_sql Endpoint

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2021-47748. PoCs published by Dolev Farhi.

AI-analyzed exploit summary This exploit leverages Hasura GraphQL's SQL injection vulnerability (CVE-2021-47748) to execute arbitrary commands on the target system by abusing the `run_sql` endpoint to create a table and use the `COPY FROM PROGRAM` PostgreSQL feature for command execution.

Description

Hasura GraphQL 1.3.3 contains a remote code execution vulnerability that allows attackers to execute arbitrary shell commands through SQL query manipulation. Attackers can inject commands into the run_sql endpoint by crafting malicious GraphQL queries that execute system commands through PostgreSQL's COPY FROM PROGRAM functionality.

Exploits (1)

exploitdb WORKING POC
by Dolev Farhi · pythonwebappsmultiple
https://www.exploit-db.com/exploits/49802

This exploit leverages Hasura GraphQL's SQL injection vulnerability (CVE-2021-47748) to execute arbitrary commands on the target system by abusing the `run_sql` endpoint to create a table and use the `COPY FROM PROGRAM` PostgreSQL feature for command execution.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Hasura GraphQL Engine 1.3.3
No auth needed
Prerequisites: Network access to the Hasura GraphQL endpoint · PostgreSQL backend with `COPY FROM PROGRAM` enabled
devstral-2 · analyzed Feb 18, 2026 Full analysis →

References (3)

Core 3

Scores

CVSS v3 9.8
EPSS 0.0102
EPSS Percentile 58.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-78
Status published
Products (1)
hasura/graphql_engine 1.3.3
Published Jan 21, 2026
Tracked Since Feb 18, 2026