CVE-2021-47748CWE-78

Hasura GraphQL 1.3.3 - Remote Code Execution

Critical · published January 21, 2026

CVSS v4.0
9.3
EPSS
1%
Percentile
66.2
In the wild
Unconfirmed
What it is

🚨 A crafty SQL query can open the floodgates! The Hasura GraphQL 1.3.3 vulnerability lets an attacker execute remote shell commands like a magician pulling bunnies out of a hat. 🔥 Think of it like a restaurant where the waiter takes your order but also has the ability to sneak in their own special requests to the chef. A single malicious GraphQL query can slip past defenses and order up anything from the system, thanks to PostgreSQL's COPY FROM PROGRAM functionality. This remote code execution vulnerability is absolutely devastating. An attacker could gain complete control of the server, running arbitrary commands, reading sensitive files, or even wiping data clean. The potential for chaos is huge, making it critical to address this hole immediately!

Put simply

Think of it like a restaurant where the waiter takes your order but also has the ability to sneak in their own special requests to the chef. A single malicious GraphQL query can slip past defenses and order up anything from the system, thanks to PostgreSQL's COPY FROM PROGRAM functionality. CVE-2021-47748 allows attackers to manipulate SQL queries sent to the run_sql endpoint of Hasura GraphQL, leveraging PostgreSQL’s ability to execute system commands through the COPY command. This oversight means attackers can inject arbitrary shell commands, compromising the entire system.

What to do

This remote code execution vulnerability is absolutely devastating. An attacker could gain complete control of the server, running arbitrary commands, reading sensitive files, or even wiping data clean. The potential for chaos is huge, making it critical to address this hole immediately! To secure your system, patch to Hasura GraphQL version 2.0.0 or later immediately. Review your API access controls and consider implementing strict input validation for GraphQL queries. Regularly audit your database interactions to catch any unusual behavior early! You've got this! With a few quick fixes, you'll lock down your systems tighter than a drum! 🛡️

The record
Technical detail
CVSS v4.0
9.3 · CRITICAL
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.01131 · 66.2th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2026-01-21T17:27Z
EPSS history
Timeline
  • 21 JAN 17:27Z
    Hasura GraphQL 1.3.3 - Remote Code Execution
    cvelistv5