Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-47748
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:04 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-47748
Complete source record
{
"id": "8ac8fa2b79a830945684a4f6885e41737341b0b0a86c61b0080c5efc33c4d5aa",
"url": "https://osv.dev/vulnerability/CVE-2021-47748",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-47748",
"summary": "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.",
"evidence": "osv:CVE-2021-47748",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-47748",
"aliases": [
"CVE-2021-47748"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/hasura/graphql-engine",
"type": "GIT",
"events": [
{
"introduced": "8c9ffbeb6d60226970f69b6ef5b08d9551d944e2"
},
{
"last_affected": "8c9ffbeb6d60226970f69b6ef5b08d9551d944e2"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:hasura:graphql_engine:1.3.3:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.3.3"
},
{
"last_affected": "1.3.3"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"1.3.3",
"v1.3.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47748.json"
}
}
],
"modified": "2026-10-20T10:55:12.119367227Z",
"provider": "osv",
"references": [
"https://www.vulncheck.com/advisories/hasura-graphql-remote-code-execution",
"https://github.com/hasura/graphql-engine",
"https://www.exploit-db.com/exploits/49802"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-47748",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387060,
"published_at": "2026-01-21T18:16:08.91+00:00"
}