CVE-2026-6475: UNIX Symbolic Link (Symlink) Following in PostgreSQL
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.
AI Analysis
Technical Summary
This vulnerability arises from symlink following behavior in PostgreSQL's pg_basebackup (plain format) and pg_rewind tools. An origin superuser can exploit this to overwrite arbitrary local files on the database server, including critical files like .bashrc, potentially compromising the operating system account. The attack's practical effect requires that the attacker perform relevant actions between executing these commands and restarting the PostgreSQL server, as the server trusts the origin superuser implicitly after these operations. Affected versions include 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 with network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation allows an origin superuser to overwrite local files on the PostgreSQL server, such as /var/lib/postgres/.bashrc, which can lead to hijacking the operating system account. This compromises confidentiality, integrity, and availability of the system. However, the attack requires user interaction and specific timing between the backup/rewind commands and server restart, limiting its practical exploitation scenarios.
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 actions that involve moving or snapshotting files between pg_basebackup or pg_rewind execution and server restart. Monitoring PostgreSQL vendor advisories for updates and applying patches promptly when released is recommended.
CVE-2026-6475: UNIX Symbolic Link (Symlink) Following in PostgreSQL
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from symlink following behavior in PostgreSQL's pg_basebackup (plain format) and pg_rewind tools. An origin superuser can exploit this to overwrite arbitrary local files on the database server, including critical files like .bashrc, potentially compromising the operating system account. The attack's practical effect requires that the attacker perform relevant actions between executing these commands and restarting the PostgreSQL server, as the server trusts the origin superuser implicitly after these operations. Affected versions include 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 with network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation allows an origin superuser to overwrite local files on the PostgreSQL server, such as /var/lib/postgres/.bashrc, which can lead to hijacking the operating system account. This compromises confidentiality, integrity, and availability of the system. However, the attack requires user interaction and specific timing between the backup/rewind commands and server restart, limiting its practical exploitation scenarios.
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 actions that involve moving or snapshotting files between pg_basebackup or pg_rewind execution and server restart. Monitoring PostgreSQL vendor advisories for updates and applying patches promptly when 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: 5/14/2026, 1:36:40 PM
Last enriched: 5/14/2026, 1:52:15 PM
Last updated: 5/15/2026, 6:27:18 AM
Views: 15
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.