Medium
Security advisory
Hasura GraphQL 1.3.3 contains a local file read vulnerability that allows attackers to access system files through SQL injection in the query endpoint. Attackers can exploit the pg_read_file() PostgreSQL function by crafting malicious SQL queries to read arbitrary files on the server.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-47714
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:03 UTC · Revision 1
Source evidence
Hasura GraphQL 1.3.3 contains a local file read vulnerability that allows attackers to access system files through SQL injection in the query endpoint. Attackers can exploit the pg_read_file() PostgreSQL function by crafting malicious SQL queries to read arbitrary files on the server.
osv:CVE-2021-47714
Complete source record
{
"id": "67308d9993aa3369d4f3d2ba97769d40da55f1ea6fe6f6033e08ca685d21536b",
"url": "https://osv.dev/vulnerability/CVE-2021-47714",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-47714",
"summary": "Hasura GraphQL 1.3.3 contains a local file read vulnerability that allows attackers to access system files through SQL injection in the query endpoint. Attackers can exploit the pg_read_file() PostgreSQL function by crafting malicious SQL queries to read arbitrary files on the server.",
"evidence": "osv:CVE-2021-47714",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-47714",
"aliases": [
"CVE-2021-47714"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"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-47714.json"
}
}
],
"modified": "2026-10-20T10:55:10.779188030Z",
"provider": "osv",
"references": [
"https://github.com/hasura/graphql-engine",
"https://www.exploit-db.com/exploits/49790",
"https://www.vulncheck.com/advisories/hasura-graphql-local-file-read-via-sql-injection"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-47714",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387026,
"published_at": "2025-12-22T22:15:58.933+00:00"
}