CVE-2021-47748 Hasura GraphQL 1.3.3 - Remote Code Execution

Critical 9.3 Published Updated

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.

Sources

Also known as GHSA-4v6h-qhxp-2wqw.

Is CVE-2021-47748 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free