# CVE-2026-6475: PostgreSQL pg_basebackup and pg_rewind can overwrite unrelated files of origin superuser choice

- Severity: High 8.8 (CVSS:3.1, scored by PostgreSQL) `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
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-05-14T13:00:11.039Z
- Modified: 2026-11-11T20:10:00.273Z
- Also known as: BIT-POSTGRESQL-2026-6475
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- PostgreSQL: from 18 before 18.4; from 17 before 17.10; from 16 before 16.14; from 15 before 15.18; before 14.23
- postgresql postgresql: before 14.23; from 15.0 before 15.18; from 16.0 before 16.14; from 17.0 before 17.10; from 18.0 before 18.4
- postgresql (Bitnami): before 14.23.0; from 15.0.0 before 15.18.0; from 16.0.0 before 16.14.0; from 17.0.0 before 17.10.0; from 18.0.0 before 18.4.0

## Every score

- PostgreSQL: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.postgresql.org/support/security/CVE-2026-6475/> (advisory, patch, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6475> (web)

## Sources

- CVE List: [CVE-2026-6475](https://www.cve.org/CVERecord?id=CVE-2026-6475), CVE Terms of Use, modified 2026-05-15
- NVD: [CVE-2026-6475](https://nvd.nist.gov/vuln/detail/CVE-2026-6475), Public domain, modified 2026-11-11
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2026-6475](https://osv.dev/vulnerability/BIT-POSTGRESQL-2026-6475), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-6475 · Whole record: https://cve.day/CVE-2026-6475.json · Rebuilt by cve.day 2026-11-25T22:59:21.702Z
