{"id":"BIT-postgresql-2026-6475","summary":"PostgreSQL pg_basebackup and pg_rewind can overwrite unrelated files of origin superuser choice","details":"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.","aliases":["CVE-2026-6475"],"modified":"2026-05-18T08:02:28.674686Z","published":"2026-05-18T05:53:02.016Z","database_specific":{"severity":"High","cpes":["cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*"]},"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6475"},{"type":"WEB","url":"https://www.postgresql.org/support/security/CVE-2026-6475/"}],"affected":[{"package":{"name":"postgresql","ecosystem":"Bitnami","purl":"pkg:bitnami/postgresql"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"14.23.0"},{"introduced":"15.0.0"},{"fixed":"15.18.0"},{"introduced":"16.0.0"},{"fixed":"16.14.0"},{"introduced":"17.0.0"},{"fixed":"17.10.0"},{"introduced":"18.0.0"},{"fixed":"18.4.0"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/postgresql/BIT-postgresql-2026-6475.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}],"schema_version":"1.7.5"}