{"id":"JLSEC-2026-603","aliases":["JLSEC-2026-603"],"related":["CVE-2026-6475"],"kind":"vulnerability","state":"published","title":"Symlink following in PostgreSQL pgbasebackup plain format and in pgrewind allows an origin superuser to overwrite local files, e.g.","summary":"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.","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","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.","format":"markdown","source":"jlsec"}],"published":"2026-06-08T13:54:13.679Z","modified":"2026-07-25T18:24:40.930Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"16.14.0+0"}],"ecosystem":"Julia","package":"LibPQ_jll","purl":"pkg:julia/LibPQ_jll?uuid=08be9ffa-1c94-5ee5-a977-46a84ec9b350","source":"jlsec"}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-6475/","tags":["web"],"sources":["jlsec"]}],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-603","url":"https://osv.dev/vulnerability/JLSEC-2026-603","licence":"CC-BY-4.0","modified":"2026-07-25T18:24:40.930Z"}],"updatedAt":"2026-11-25T22:56:26.173Z"}