CVE-2026-63120: PGHoard: Incomplete Path Traversal fix in restore.py allows Arbitrary File Write

Published Oct 23, 2026
·
Updated

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 pghoardrestore 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.

Affected Software

1 affected component
aiven pghoard<2.7.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pghoard to a version that resolves this vulnerability.

    Fixed in 2.7.2

Event History

Oct 23, 2026
CVE Published
via MITRE·12:16 PM
Data Sourced
via MITRE·12:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to exploitation?

Deployments running pghoard before version 2.7.2 are exposed when an administrator performs a get-basebackup restore using backup object storage that an attacker can write to. The attacker must be able to place a crafted delta backup manifest in the configured S3, GCS, or Azure backup storage.

2

Does exploitation require access to the pghoard host or PostgreSQL instance?

No direct host or database access is described as necessary. Exploitation relies on write access to the backup object storage and requires a database administrator to run pghoard_restore get-basebackup on the malicious backup data.

3

What is the impact of a successful exploit?

A crafted manifest can cause arbitrary file writes and directory creation outside the designated PostgreSQL data directory. The example path targets /etc/cron.d/backdoor, indicating that writes can target host-system locations when permitted by the restore process.

4

What version fixes the issue?

The issue is patched in pghoard version 2.7.2. Upgrade affected installations before restoring backups from storage that could contain attacker-controlled objects.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203