Skip to main content

pghoard CVE-2026-63120

| EUVDEUVD-2026-108915 HIGH
Path Traversal (CWE-22)
2026-10-23 GitHub_M
8.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain write access to backup object storage
  2. Delivery
    Upload malicious delta backup manifest with ../ sequences
  3. Exploit
    DBA runs pghoard_restore get-basebackup
  4. Execution
    pghoard writes payload outside pgdata
  5. Impact
    Dropped 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pghoard < 2.7.2

Affected Packages

euvd pghoard fix: 2.7.2

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

Vendor (GitHub_M) PRIMARY 8.4 HIGH
AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
vuln.today AI 8.4 HIGH

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

3.1 AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Oct 23, 2026 - 13:17 EUVD
CVE Published
Oct 23, 2026 - 12:16 cve.org
HIGH 8.4

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Low
niche open-source PostgreSQL backup daemon, specialized ops tooling
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy