Description
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.
Published: 2026-10-23
Score: 8.4 High
EPSS: n/a
KEV: No
Impact: Arbitrary File Write (potential remote code execution)
Action: Apply Patch
AI Analysis

Impact

pghoard, a PostgreSQL backup and restore daemon, contained an incomplete path traversal fix that allowed a write‑able user to craft a delta backup manifest containing traversal sequences (e.g., ../../../../etc/cron.d/backdoor). Executing a restore with such a manifest would create or overwrite files outside the designated PostgreSQL data directory, providing an attacker the ability to place arbitrary payloads on the host. This vulnerability is a classic example of CWE‑22, where an attacker can influence file paths to target unintended locations. The impact is the potential for arbitrary file writes on the system hosting pghoard, which can lead to privilege escalation or full system compromise if the attacker can place executable payloads or modify critical configuration files.

Affected Systems

The flaw affects Aiven Open’s pghoard implementations built prior to version 2.7.2. Any deployment that uses an earlier version and allows an attacker to write to the cloud object store (S3, GCS, Azure, or similar) is vulnerable. The patch was released in v2.7.2, fixing the path traversal handling in restore.py.

Risk and Exploitability

The CVSS score of 8.4 classifies the vulnerability as high severity, and the EPSS score is currently unavailable, so the estimated exploitation probability cannot be quantified. The issue is not listed in the CISA KEV catalog. Based on the description it is inferred that the attack vector requires an attacker to have write access to the backup object store used by the affected pghoard instance. With that access, they can craft a malicious manifest and trigger an arbitrary file write during a restore operation.

Generated by OpenCVE AI on October 23, 2026 at 13:36 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pghoard to version 2.7.2 or later to apply the path traversal patch
  • Restrict write permissions on the cloud object store so only trusted internal services can write backup manifests
  • Configure the restore process to validate manifest paths or disable automatic restoration from untrusted sources

Generated by OpenCVE AI on October 23, 2026 at 13:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 23 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
First Time appeared Aiven-open
Aiven-open pghoard
Vendors & Products Aiven-open
Aiven-open pghoard

Fri, 23 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
Description 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.
Title PGHoard: Incomplete Path Traversal fix in restore.py allows Arbitrary File Write
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H'}


Subscriptions

Aiven-open Pghoard
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-23T14:59:26.366Z

Reserved: 2026-07-15T16:54:55.816Z

Link: CVE-2026-63120

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-23T13:17:12.010

Modified: 2026-10-23T15:17:34.400

Link: CVE-2026-63120

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T14:39:32Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')