Patchfirst
CVE-2021-47748 Public exploit Critical · 9.8 EPSS 1.1%

Hasura GraphQL 1.3.3 - Remote Code Execution

No fixed version listed yet.Check the vendor advisory. References ↓

Hasura · GraphQL

Summary

Hasura GraphQL 1.3.3 contains an OS command injection flaw in its run_sql endpoint, which passes attacker-supplied SQL through to PostgreSQL's COPY FROM PROGRAM functionality. An unauthenticated remote attacker with network access can craft a malicious GraphQL query to execute arbitrary shell commands on the host, with no user interaction or special configuration required.

Official description · CVE.org

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.

Breakdown
70.3 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 10 months after disclosure. Public exploit code (Exploit-DB) was available 5 years before disclosure.

  1. Public exploit codeExploit-DB5 yrs before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+10 mo

Affected versions and fixes

as published in the CVE record

Hasura GraphQL

Affected: 1.3.3

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close