{"id":"CVE-2026-6475","published":"2026-05-14T13:00:11Z","modified":"2026-05-15T03:56:16Z","title":"PostgreSQL pg_basebackup and pg_rewind can overwrite unrelated files of origin superuser choice","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0041,"percentile":0.36127,"provenance":"source"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-6475/","tags":[]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":7.23},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-10-12","earliestUrl":"https://github.com/abraxas/postgres-basebackup-symlink","repos":[{"name":"abraxas/postgres-basebackup-symlink","url":"https://github.com/abraxas/postgres-basebackup-symlink","stars":0,"created":"2026-10-12"}]},"first":{"date":"2026-10-12","source":"PoC-in-GitHub","url":"https://github.com/abraxas/postgres-basebackup-symlink"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"PostgreSQL","versions":[">= 18, < 18.4",">= 17, < 17.10",">= 16, < 16.14",">= 15, < 15.18","< 14.23"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-14T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-30286","exploited":false,"provenance":"source"}}