Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain write access to backup object storage
-
DeliveryUpload malicious delta backup manifest with ../ sequences
-
ExploitDBA runs pghoard_restore get-basebackup
-
Executionpghoard writes payload outside pgdata
-
ImpactDropped cron job executes as host user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to already have write access to the backup object storage bucket (S3, GCS, or Azure) used by pghoard, and a database administrator must execute a restore via pghoard_restore get-basebackup using a delta backup manifest that the attacker has poisoned with path-traversal sequences (e.g., ../../../../etc/cron.d/backdoor). Limiting factors: the PR:H storage-write prerequisite and the UI:R requirement that a legitimate restore be triggered mean this is not remotely self-exploitable; only pghoard versions <= 2.7.1 are affected, and the vendor states there are no workarounds - upgrading to 2.7.2 is the only fix. |
| Impact | This is a genuinely high-severity flaw (CVSS 8.4) but with meaningful preconditions that temper real-world urgency. The CVSS vector (AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H) encodes the key limiters: PR:H means the attacker must already hold write access to the backup object storage (S3/GCS/Azure), and UI:R means a database administrator must actively run a restore. The scope change (S:C) and triple-high impact are justified because a successful attack escapes the pgdata directory to write arbitrary files anywhere on the host (e.g., /etc/cron.d), yielding host code execution. No EPSS score, KEV listing, or SSVC automatable/technical-impact data was supplied, so exploitation probability cannot be quantified from the input. No public exploit was identified at time of analysis - the two references are the vendor GHSA advisory and the 2.7.2 release notes, not working exploit code. The vendor-ecosystem priority label is 'this_week', not act_now/emergency, consistent with a serious post-compromise or insider privilege-escalation primitive rather than a mass-exploitable internet-facing bug. Net: real priority for anyone running pghoard <= 2.7.1 who restores from shared/multi-tenant backup storage, but the PR:H storage-write precondition makes widespread opportunistic exploitation unlikely. |
| Exploit ScenarioDerived | An attacker who has gained write access to the backup object storage (via leaked cloud credentials, a misconfigured bucket, or insider access) plants a delta backup manifest containing path-traversal sequences such as ../../../../etc/cron.d/backdoor. When a DBA later runs pghoard_restore get-basebackup, pghoard writes the attacker-controlled payload outside pgdata onto the host, achieving code execution via the dropped cron job. No public exploit code was identified, though the GHSA advisory describes the technique in detail. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 23, 2026
Arbitrary file write through path traversal in pghoard 2.7.1 and earlier allows an authenticated attacker with write access to the backup object store to place files outside the PostgreSQL data directory when a database administrator runs a restore. The attacker poisons a delta backup manifest with traversal sequences, and pghoard_restore get-basebackup then writes the payload to attacker-chosen host paths, which can lead to code execution or system compromise under the restore account. The issue is rated CVSS 8.4 and requires both the storage-write prerequisite and a legitimate restore action; only versions up to 2.7.1 are affected, 2.7.2 contains the fix, and no public exploit was identified at time of analysis.
RemediationAI
Upgrade to pghoard 2.7.2, the vendor-released patch that fixes CVE-2026-63120. The vendor states there are no known workarounds, so applying the 2.7.2 upgrade is the only complete remediation. Refer to the GitHub security advisory at https://github.com/Aiven-Open/pghoard/security/advisories/GHSA-rh99-q79h-vvx3 and the 2.7.2 release at https://github.com/Aiven-Open/pghoard/releases/tag/2.7.2 for the fixed package details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pghoard is a PostgreSQL backup daemon and restore tool that stores backup data in cloud object stores such as S3, GCS, and Azure. The flaw is CWE-22 path traversal in the restore path: a delta backup manifest containing traversal sequences such as ../../../../etc/cron.d/backdoor is not sufficiently constrained, so pghoard_restore get-basebackup can create directories and write files outside the designated pgdata directory. The GitHub advisory describes this as an incomplete path traversal fix in restore.py, meaning prior validation did not fully prevent manifest-controlled paths from escaping the intended restore root. The affected package is the pip-installed pghoard project, captured by CPE cpe:2.3:a:aiven-open:pghoard:*:*:*:*:*:*:*:*, with versions through 2.7.1 vulnerable and 2.7.2 fixed. The CVSS vector reflects network attack delivery through the backup storage path, high privileges required for the storage-write prerequisite (PR:H), user interaction because a restore must be triggered (UI:R), and scope change because writes escape pgdata to affect the host filesystem. The trigger depends on a malicious delta backup manifest being consumed during restore; arbitrary file write is the confirmed impact described by the vendor.
Know when Pghoard gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Attacker needs write access to network-reachable backup storage (PR:H), a DBA must trigger restore (UI:R), and the write escapes pgdata to the host (S:C) enabling code execution (C/I/A:H).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
pghoard is a PostgreSQL backup daemon and restore tooling that stores backup data in cloud object stores. Prior to version 2.7.2, an incomplete path traversal fix in pghoard allows an attacker with write access to the backup object storage (such as S3, GCS, or Azure) to execute arbitrary file writes and directory creation outside the designated PostgreSQL data directory (pgdata). When a database administrator executes a restore operation (via pghoard_restore get-basebackup), a maliciously crafted delta backup manifest with path traversal sequences (e.g., ../../../../etc/cron.d/backdoor) will write arbitrary payloads to the host system. This issue has been patched in version 2.7.2.
Technical POC Analysis
CWE-22, Improper Limitation of a Pathname to a Restricted Directory ("Path Traversal"), in pghoard's restore.py.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity vulnerability in pghoard (versions up to 2.7.1) enables an authenticated attacker with write access to the backup object store to poison a delta backup manifest, causing files to be written outside the PostgreSQL data directory during a restore. This can lead to code execution or system compromise under the restore account. Organizations using pghoard for PostgreSQL backups are at risk, particularly if backup storage permissions are not tightly controlled, as a compromised storage credential could escalate to full database host compromise.
No vendor-released patch identified at time of analysis; interim mitigations include restricting write access to backup object stores to trusted accounts, monitoring restore operations for anomalous file writes, and implementing strict access controls and logging for backup storage.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-108915
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB