{
  "id": "CVE-2026-6475",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-6475",
  "published_at": "2026-05-14T13:00:11.039Z",
  "title": "PostgreSQL pg_basebackup and pg_rewind can overwrite unrelated files of origin superuser choice",
  "product": "PostgreSQL",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-10-12T02:55:19Z",
    "first_seen_at": "2026-11-14T14:50:35.824Z",
    "days_after_publication": 150.6,
    "repo": "abraxas/postgres-basebackup-symlink",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Symlink following in PostgreSQL pg_basebackup plain format and in pg_rewind allows an origin superuser to overwrite local files, e.g. /var/lib/postgres/.bashrc, that hijack the operating system account.  It will remain the case that starting the server after these commands implicitly trusts the origin superuser, due to features like shared_preload_libraries.  Hence, the attack has practical implications only if one takes relevant action between these commands and server start, like moving the files to a different VM or snapshotting the VM.  Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.",
  "cwe": "CWE-61",
  "cpes": [
    "cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [
    {
      "repo": "abraxas/postgres-basebackup-symlink",
      "url": "https://github.com/abraxas/postgres-basebackup-symlink",
      "created_at": "2026-10-12T02:55:19Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-07-04T21:33:07Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "n/a",
        "product": "PostgreSQL",
        "ranges": [
          "\u003e= 18, \u003c 18.4",
          "\u003e= 17, \u003c 17.10",
          "\u003e= 16, \u003c 16.14",
          "\u003e= 15, \u003c 15.18",
          "\u003c 14.23"
        ],
        "fixed_in": [
          "18.4",
          "17.10",
          "16.14",
          "15.18",
          "14.23"
        ]
      }
    ],
    "upgrade": [
      "Upgrade PostgreSQL to 18.4 or 17.10 or 16.14 or 15.18 or 14.23 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
