# JLSEC-2026-603: Symlink following in PostgreSQL pgbasebackup plain format and in pgrewind allows an origin superuser to overwrite local files, e.g.

- Severity: High 8.8 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-06-08T13:54:13.679Z
- Modified: 2026-07-25T18:24:40.930Z
- Related: CVE-2026-6475

## 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.

(As written by Julia Security Advisories.)

## Affected

- LibPQ_jll (Julia): before 16.14.0+0

## References

- <https://www.postgresql.org/support/security/CVE-2026-6475/> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-603](https://osv.dev/vulnerability/JLSEC-2026-603), CC-BY-4.0, modified 2026-07-25

---

Page: https://cve.day/JLSEC-2026-603 · Whole record: https://cve.day/JLSEC-2026-603.json · Rebuilt by cve.day 2026-11-25T22:56:26.173Z
