{"id":"CVE-2021-47748","details":"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.","modified":"2026-08-07T16:57:49.371076Z","published":"2026-01-21T18:16:08.910Z","references":[{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/hasura-graphql-remote-code-execution"},{"type":"PACKAGE","url":"https://github.com/hasura/graphql-engine"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/49802"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/hasura/graphql-engine","events":[{"introduced":"8c9ffbeb6d60226970f69b6ef5b08d9551d944e2"},{"last_affected":"8c9ffbeb6d60226970f69b6ef5b08d9551d944e2"}],"database_specific":{"cpe":"cpe:2.3:a:hasura:graphql_engine:1.3.3:*:*:*:*:*:*:*","extracted_events":[{"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"}}],"schema_version":"1.8.0","severity":[{"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"}]}