Horizon Alert
Summary of the vulnerability and why it matters
This advisory concerns a critical vulnerability in Dgraph, an open-source distributed GraphQL database. The issue lies in an unauthenticated administrative function that, if exploited, could allow an attacker to completely overwrite the database, access server-side files, and conduct server-side request forgery. The primary concern is confirming if Dgraph is used and if this specific function is exposed.
- Unauthenticated database overwrite and file access.
- Critical issue if Dgraph is exposed externally.
- Confirm relevance and exposure of Dgraph.
Attack Path
How an attacker could exploit the issue
An unauthenticated attacker can target the Dgraph database's restore tenant functionality to gain unauthorized access. By exploiting the missing authorization checks on the `restoreTenant` mutation, an attacker can supply malicious backup sources, leading to complete database overwrites, server-side file access, and server-side request forgery (SSRF).
- Entry condition: Network access to the Dgraph API.
- Trigger point: Unauthenticated `restoreTenant` admin mutation.
- Resulting risk: Full database overwrite, file access, SSRF.
Live Threat
Current exploitation, exposure, and threat context
A critical vulnerability in Dgraph's `restoreTenant` admin mutation allows unauthenticated attackers to completely overwrite the database, read server-side files, and perform server-side request forgery (SSRF). This occurs because the `restoreTenant` mutation is unauthenticated and accepts attacker-controlled backup source URLs, S3/MinIO credentials, encryption key file paths, and Vault credential file paths.
- Database integrity and server files.
- Unauthenticated network access to mutation.
- Complete data overwrite and unauthorized file access.
Operational Fix
Recommended remediation, mitigation, and detection steps
This critical vulnerability in Dgraph's restoreTenant mutation allows unauthenticated attackers to overwrite the database, read server-side files, and perform SSRF by exploiting missing authorization. Identifying all Dgraph instances, confirming network reachability, and assessing business criticality are the immediate first steps. Ownership likely falls to the platform or database administration team, with security validating exposure and infrastructure coordinating remediation during planned maintenance or via vendor engagement.
- Platform or database team owns issue.
- Verify network exposure and asset criticality.
- Plan remediation with vendor coordination.