Symlink Following Vulnerability in PostgreSQL by PostgreSQL Inc.
CVE-2026-6475
What is CVE-2026-6475?
A symlink following vulnerability exists in PostgreSQL's pg_basebackup and pg_rewind functionalities. This flaw permits an originating superuser to overwrite critical local files, such as /var/lib/postgres/.bashrc, jeopardizing operating system security. The vulnerability can lead to unauthorized access and system manipulation when the affected configurations are not properly managed. If a superuser executes specific commands before the PostgreSQL server starts, it creates a trust relationship that may be exploited. Mitigating this risk requires awareness of the configurations and careful management of server startup procedures. Versions of PostgreSQL prior to 18.4, 17.10, 16.14, 15.18, and 14.23 are susceptible to this issue.
Affected Version(s)
PostgreSQL 18 < 18.4
PostgreSQL 17 < 17.10
PostgreSQL 16 < 16.14
References
CVSS V3.1
Timeline
Vulnerability published
Vulnerability Reserved
