CVE-2021-47748
CRITICALHasura GraphQL 1.3.3 - Remote Code Execution via SQL Query Manipulation in run_sql Endpoint
Title source: llmExploitation 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)
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.
References (3)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H