---
id: CVE-2026-63120
title: >-
  PGHoard: Incomplete Path Traversal fix in restore.py allows Arbitrary File
  Write
summary: >-
  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 stora…
severity: high
cvss: 8.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-22
vendor: Aiven-Open
product: pghoard
affected:
  - pghoard < 2.7.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-23T14:54:24.831865Z'
published: '2026-10-23'
updated: '2026-10-23'
sourceUpdated: '2026-10-23T14:59:26.366Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-63120'
references:
  - url: >-
      https://github.com/Aiven-Open/pghoard/security/advisories/GHSA-rh99-q79h-vvx3
    label: >-
      https://github.com/Aiven-Open/pghoard/security/advisories/GHSA-rh99-q79h-vvx3
  - url: 'https://github.com/Aiven-Open/pghoard/releases/tag/2.7.2'
    label: 'https://github.com/Aiven-Open/pghoard/releases/tag/2.7.2'
tags:
  - cve.org
ingestedAt: '2026-10-23T13:24:55.560Z'
---

## Overview

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.

## Affected

- `pghoard < 2.7.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
