CVE-2021-47748 Hasura GraphQL 1.3.3 - Remote Code Execution
Attackers can execute arbitrary shell commands via SQL injection in Hasura GraphQL, leading to remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-47748?
CVE-2021-47748 is a critical command injection vulnerability in Hasura GraphQL, published on 21 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-78
Which versions are affected by CVE-2021-47748?
It affects 1 product.
Products include Hasura Graphql Engine.
How do I fix CVE-2021-47748?
No fix has been published for CVE-2021-47748 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2021-47748 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-47748 exists.
Other vulnerabilities in Hasura GraphQL
- CVE-2022-46792 Missing authorization in n/a
- CVE-2021-47713 Hasura GraphQL 1.3.3 Denial of Service via Malicious GraphQL Query
- CVE-2023-27588 Unauthenticated path traversal vulnerability in Hasura GraphQL Engine
- CVE-2019-1020015 Auth bypass in graphql-engine
- CVE-2021-47714 Hasura GraphQL 1.3.3 Local File Read via SQL Injection
Sources
Also known as GHSA-4v6h-qhxp-2wqw.