CVE-2026-6475: UNIX Symbolic Link (Symlink) Following in PostgreSQL
CVE-2026-6475 is a high-severity vulnerability in PostgreSQL affecting versions prior to 18.4, 17.10, 16.14, 15.18, and 14.23. It involves symbolic link (symlink) following in the pg_basebackup plain format and pg_rewind utilities, allowing an origin superuser to overwrite local files such as /var/lib/postgres/. bashrc. This can lead to hijacking the operating system account if relevant actions are taken between these commands and server restart. The vulnerability relies on the implicit trust of the origin superuser when starting the server, especially with features like shared_preload_libraries.
AI Analysis
Technical Summary
This vulnerability in PostgreSQL concerns symlink following behavior in pg_basebackup (plain format) and pg_rewind. An origin superuser can exploit this to overwrite arbitrary local files on the server, potentially hijacking the OS account associated with PostgreSQL. The attack's practical impact depends on actions taken between executing these commands and restarting the PostgreSQL server, as the server implicitly trusts the origin superuser during startup due to features like shared_preload_libraries. Affected versions include all PostgreSQL releases before 18.4, 17.10, 16.14, 15.18, and 14.23. The CVSS v3.1 score is 8.8, indicating high severity. No vendor advisory or patch links are provided, and the remediation level is not specified.
Potential Impact
Successful exploitation allows an origin superuser to overwrite local files on the PostgreSQL server host, such as the .bashrc file, which can lead to hijacking the operating system account. This can compromise system integrity and potentially allow privilege escalation or persistent access. The vulnerability's impact is contingent on the timing of server restart and any administrative actions taken between backup/rewind commands and server startup.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, administrators should avoid taking actions that involve moving files or snapshots between pg_basebackup/pg_rewind operations and server restarts. Monitoring PostgreSQL vendor communications for updates and applying patches promptly once released is recommended.
CVE-2026-6475: UNIX Symbolic Link (Symlink) Following in PostgreSQL
Description
CVE-2026-6475 is a high-severity vulnerability in PostgreSQL affecting versions prior to 18.4, 17.10, 16.14, 15.18, and 14.23. It involves symbolic link (symlink) following in the pg_basebackup plain format and pg_rewind utilities, allowing an origin superuser to overwrite local files such as /var/lib/postgres/. bashrc. This can lead to hijacking the operating system account if relevant actions are taken between these commands and server restart. The vulnerability relies on the implicit trust of the origin superuser when starting the server, especially with features like shared_preload_libraries.
CVSS v3.1
Score 8.8high
Affected software
pkg:deb/postgresql/postgresqlRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in PostgreSQL concerns symlink following behavior in pg_basebackup (plain format) and pg_rewind. An origin superuser can exploit this to overwrite arbitrary local files on the server, potentially hijacking the OS account associated with PostgreSQL. The attack's practical impact depends on actions taken between executing these commands and restarting the PostgreSQL server, as the server implicitly trusts the origin superuser during startup due to features like shared_preload_libraries. Affected versions include all PostgreSQL releases before 18.4, 17.10, 16.14, 15.18, and 14.23. The CVSS v3.1 score is 8.8, indicating high severity. No vendor advisory or patch links are provided, and the remediation level is not specified.
Potential Impact
Successful exploitation allows an origin superuser to overwrite local files on the PostgreSQL server host, such as the .bashrc file, which can lead to hijacking the operating system account. This can compromise system integrity and potentially allow privilege escalation or persistent access. The vulnerability's impact is contingent on the timing of server restart and any administrative actions taken between backup/rewind commands and server startup.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, administrators should avoid taking actions that involve moving files or snapshots between pg_basebackup/pg_rewind operations and server restarts. Monitoring PostgreSQL vendor communications for updates and applying patches promptly once released is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PostgreSQL
- Date Reserved
- 2026-04-17T00:43:21.782Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a05cfe8ec166c07b0e13941
Added to database: 05/14/2026, 13:36:40 UTC
Last enriched: 05/21/2026, 15:38:43 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 133
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.