Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-6475: UNIX Symbolic Link (Symlink) Following in PostgreSQL

0
High
VulnerabilityCVE-2026-6475cvecve-2026-6475
Published: Thu May 14 2026 (05/14/2026, 13:00:11 UTC)
Source: CVE Database V5
Product: 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

AILast updated: 05/14/2026, 13:52:15 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses