Skip to content
Heist/ feed
Back to feed
Medium

Path Traversal in pghoard

Type: advisorySources: OSV

pghoard is a PostgreSQL backup daemon and restore tooling that stores backup data in cloud object stores. A vulnerability has been discovered that could allow an attacker to acquire disk access with privileges equivalent to those of pghoard, allowing for unintended path traversal. Depending on the permissions/privileges assigned to pghoard, this could allow disclosure of sensitive information. This issue has been addressed in releases after 2.2.2a. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-56142
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 01:18 UTC · Revision 1

Source evidence

Path Traversal in pghoard

core-osv · Original source

Published 17 Dec 2024, 21:41 UTC

pghoard is a PostgreSQL backup daemon and restore tooling that stores backup data in cloud object stores. A vulnerability has been discovered that could allow an attacker to acquire disk access with privileges equivalent to those of pghoard, allowing for unintended path traversal. Depending on the permissions/privileges assigned to pghoard, this could allow disclosure of sensitive information. This issue has been addressed in releases after 2.2.2a. Users are advised to upgrade. There are no known workarounds for this vulnerability.

osv:CVE-2024-56142
Complete source record
{
  "id": "155848559998e9280ec85c5c7724bca35816d765df0f203b32d978ab47eff078",
  "url": "https://osv.dev/vulnerability/CVE-2024-56142",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Path Traversal in pghoard",
    "summary": "pghoard is a PostgreSQL backup daemon and restore tooling that stores backup data in cloud object stores. A vulnerability has been discovered that could allow an attacker to acquire disk access with privileges equivalent to those of pghoard, allowing for unintended path traversal. Depending on the permissions/privileges assigned to pghoard, this could allow disclosure of sensitive information. This issue has been addressed in releases after 2.2.2a. Users are advised to upgrade. There are no known workarounds for this vulnerability.",
    "evidence": "osv:CVE-2024-56142",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-56142",
      "aliases": [
        "CVE-2024-56142",
        "GHSA-m9hc-vxjj-4x6q",
        "PYSEC-2026-1778"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/aiven-open/pghoard",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "78ce24f2ac690c4087dc1e2afed7114110a90a6e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.2.2a"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.2.2a",
            "2.2.2",
            "2.2.1",
            "2.2.0",
            "2.1.1",
            "2.1.0",
            "2.0.0",
            "1.7.0",
            "1.6.0",
            "1.5.0",
            "1.4.0",
            "1.3.0",
            "1.2.0",
            "1.1.0",
            "1.0.0",
            "0.9.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56142.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.581223900Z",
      "provider": "osv",
      "references": [
        "https://github.com/Aiven-Open/pghoard/security/advisories/GHSA-m9hc-vxjj-4x6q",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56142.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-56142"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56142.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-56142",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 508973,
  "published_at": "2024-12-17T21:41:13.309+00:00"
}