CVE-2026-6475 json
PostgreSQL pg_basebackup and pg_rewind can overwrite unrelated files of origin superuser choice
published 2026-05-14 5 mo ago modified 2026-09-08 2 mo ago also BIT-postgresql-2026-6475 , EUVD-2026-30286 , JLSEC-2026-603
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 35%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami postgresql 14.23.0, 15.18.0, 16.14.0, 17.10.0, 18.4.0
- julia LibPQ_jll 16.14.0+0
- n/a PostgreSQL 14.23, 15.18, 16.14, 17.10, 18.4
- postgresql-15 Debian 12 15.18-0+deb12u1
- postgresql-17 Debian 13 17.10-0+deb13u1
- postgresql-18 Debian 14 18.4-1
debian advisories DEBIAN-CVE-2026-6475
- postgresql-14 Ubuntu 22.04 LTS 14.23-0ubuntu0.22.04.1
- postgresql-16 Ubuntu 24.04 LTS 16.14-0ubuntu0.24.04.1
- postgresql-17 Ubuntu 25.10 17.10-0ubuntu0.25.10.1
- postgresql-18 Ubuntu 26.04 LTS 18.4-0ubuntu0.26.04.1
ubuntu advisories UBUNTU-CVE-2026-6475
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- pgaudit RHEL 8 1.4.0-7.module+el8.10.0+22214+9beb89d6
- pg_repack RHEL 8 1.4.6-3.module+el8.9.0+19330+c97ddbdf
- postgresql RHEL 8 12.22-7.module+el8.10.0+24362+fcf88eed
- postgresql-test RHEL 8 12.22-7.module+el8.10.0+24362+fcf88eed
- postgresql-pltcl RHEL 8 12.22-7.module+el8.10.0+24362+fcf88eed
- postgresql-plperl RHEL 8 12.22-7.module+el8.10.0+24362+fcf88eed
- postgresql-server RHEL 8 12.22-7.module+el8.10.0+24362+fcf88eed
- postgresql-contrib RHEL 8 12.22-7.module+el8.10.0+24362+fcf88eed
red hat advisories RHSA-2026:44420RHSA-2026:42555RHSA-2026:35880RHSA-2026:34363RHSA-2026:34362RHSA-2026:34043
- postgresql16 SLES for SAP applications 16.0, SLES 16.0 16.14-160000.1.1
- postgresql15 SLES for SAP applications 16.0, SLES 16.0 15.18-160000.1.1
- postgresql14 SLES for SAP applications 16.0, SLES 16.0 14.23-160000.1.1
- postgresql17 SLES for SAP applications 16.0, SLES 16.0 17.10-160000.1.1
- postgresql18 SLES for SAP applications 16.0, SLES 16.0 18.4-160000.1.1
suse advisories SUSE-SU-2026:22184-1SUSE-SU-2026:22183-1SUSE-SU-2026:22177-1SUSE-SU-2026:22149-1SUSE-SU-2026:22077-1
- postgresql16 openSUSE Leap 16.0 16.14-160000.1.1
- postgresql15 openSUSE Leap 16.0 15.18-160000.1.1
- postgresql14 openSUSE Leap 16.0 14.23-160000.1.1
- postgresql17 openSUSE Leap 16.0 17.10-160000.1.1
- postgresql18 openSUSE Tumbleweed 18.4-1.1
- postgresql14 openSUSE Tumbleweed 14.23-1.1
- postgresql15 openSUSE Tumbleweed 15.18-1.1
- postgresql16 openSUSE Tumbleweed 16.14-1.1
opensuse advisories openSUSE-SU-2026:21104-1openSUSE-SU-2026:21103-1openSUSE-SU-2026:21102-1openSUSE-SU-2026:20970-1openSUSE-SU-2026:10828-1openSUSE-SU-2026:10806-1
- pgaudit AlmaLinux 8 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1
- pgaudit AlmaLinux 8 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1
- pg_repack AlmaLinux 8 1.4.6-3.module_el8.9.0+3704+f1f917ce
- postgres-decoderbufs AlmaLinux 8 0.10.0-2.module_el8.9.0+3704+f1f917ce
- pgaudit AlmaLinux 8 16.0-1.module_el8.10.0+3798+606ebb9f
- pg_repack AlmaLinux 8 1.5.1-1.module_el8.10.0+4199+bf03c564
- pg_repack AlmaLinux 8 1.5.1-1.module_el8.10.0+3930+ecf33554
- pg_repack AlmaLinux 8 1.5.1-1.module_el8.10.0+4125+ceaf7d1b
almalinux advisories ALSA-2026:28999ALSA-2026:28143ALSA-2026:28208ALSA-2026:27738ALSA-2026:27741ALSA-2026:27742
- postgresql Rocky Linux 9 13.23-3.el9_8
- postgresql18 Rocky Linux 10 18.4-1.el10_2
- postgresql16 Rocky Linux 10 16.14-1.el10_2
- libpq Rocky Linux 8 13.23-2.el8_10
- pgaudit Rocky Linux 9 1.7.0-1.module+el9.7.0+40011+28af63c9
- pg_repack Rocky Linux 9 1.4.8-2.module+el9.7.0+40011+28af63c9
- postgres-decoderbufs Rocky Linux 9 1.9.7-1.Final.module+el9.7.0+40011+28af63c9
- pgaudit Rocky Linux 9 18.0-1.module+el9.8.0+40158+490b3c67
rocky linux advisories RLSA-2026:27741RLSA-2026:27742RLSA-2026:27743RLSA-2026:27738RLSA-2026:28037RLSA-2026:26204
- postgresql15 Alpine 3.22, Alpine 3.21, Alpine 3.20 15.18-r0
- postgresql16 Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 16.14-r0
- postgresql17 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 17.10-r0
- postgresql18 Alpine 3.24, Alpine 3.23 18.4-r0
alpine advisories ALPINE-CVE-2026-6475
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-6475 updated cvss 6.7
postgresql: PostgreSQL: Operating system account hijack via symlink following in pg_basebackup and pg_rewind
-
Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 moreaffected: no fix planned “Out of support scope”
-
Red Hat Self-service automation portal 2 ansible-automation-platform/bootc-automation-portal-rhel9affected: no fix available
-
Red Hat CodeReady Linux Builder EUS (v.9.6) postgresql-test 13.23-1.el9_6.2, postgresql-test-rpm-macros 13.23-1.el9_6.2fixed: vendor fix RHSA-2026:29212
-
Red Hat Enterprise Linux AppStream (v. 8) libpq 13.23-2.el8_10, pgaudit 1.5.0-1.module+el8.9.0+20664+9c30cf7f, pgaudit 1.7.0-1.module+el8.9.0+19797+c4ce5969, pgaudit 16.0-1.module+el8.10.0+20413+d8116364, pgaudit 1.4.0-7.module+el8.10.0+22214+9beb89d6, pg_repack 1.4.6-3.module+el8.9.0+19330+c97ddbdf, +45 morefixed: vendor fix RHSA-2026:27738
-
Red Hat Enterprise Linux AppStream (v. 9) postgresql 13.23-3.el9_8, postgresql-pltcl 13.23-3.el9_8, postgresql-plperl 13.23-3.el9_8, postgresql-server 13.23-3.el9_8, postgresql-contrib 13.23-3.el9_8, postgresql-upgrade 13.23-3.el9_8, +51 morefixed: vendor fix RHSA-2026:28037
-
Red Hat Enterprise Linux AppStream (v. 10) postgresql 16.14-1.el10_2, postgresql18 18.4-1.el10_2, postgresql16 16.14-1.el10_2, postgresql-test 16.14-1.el10_2, postgresql-pltcl 16.14-1.el10_2, postgresql18-test 18.4-1.el10_2, +12 morefixed: vendor fix RHSA-2026:27743
-
Red Hat Enterprise Linux AppStream AUS (v.8.4) libpq 13.23-1.el8_4.1, pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.22-1.module+el8.4.0+24442+74e4dc28.4, postgresql 13.23-1.module+el8.4.0+24476+2b5ce087.2, postgresql-test 12.22-1.module+el8.4.0+24442+74e4dc28.4, +17 morefixed: vendor fix RHSA-2026:44420
-
Red Hat Enterprise Linux AppStream AUS (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+24433+21669af6.4, postgresql 13.23-1.module+el8.6.0+24447+7305b672.3, +18 morefixed: vendor fix RHSA-2026:29815
show 14 moreshow fewer
-
Red Hat Enterprise Linux AppStream E4S (v.8.8) libpq 13.23-1.el8_8.1, pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, +32 morefixed: vendor fix RHSA-2026:35880
-
Red Hat Enterprise Linux AppStream E4S (v.9.2) postgresql 13.23-1.el9_2.2, postgresql-pltcl 13.23-1.el9_2.2, postgresql-plperl 13.23-1.el9_2.2, postgresql-server 13.23-1.el9_2.2, postgresql-contrib 13.23-1.el9_2.2, postgresql-upgrade 13.23-1.el9_2.2, +15 morefixed: vendor fix RHSA-2026:33497
-
Red Hat Enterprise Linux AppStream E4S (v.9.4) postgresql 13.23-1.el9_4.2, postgresql-pltcl 13.23-1.el9_4.2, postgresql-plperl 13.23-1.el9_4.2, postgresql-server 13.23-1.el9_4.2, postgresql-contrib 13.23-1.el9_4.2, postgresql-upgrade 13.23-1.el9_4.2, +28 morefixed: vendor fix RHSA-2026:33441
-
Red Hat Enterprise Linux AppStream EUS (v. 10.0) postgresql 16.14-1.el10_0, postgresql16 16.14-1.el10_0, postgresql-test 16.14-1.el10_0, postgresql-pltcl 16.14-1.el10_0, postgresql-plperl 16.14-1.el10_0, postgresql-server 16.14-1.el10_0, +4 morefixed: vendor fix RHSA-2026:27718
-
Red Hat Enterprise Linux AppStream EUS (v.9.6) postgresql 13.23-1.el9_6.2, postgresql-pltcl 13.23-1.el9_6.2, postgresql-plperl 13.23-1.el9_6.2, postgresql-server 13.23-1.el9_6.2, postgresql-contrib 13.23-1.el9_6.2, postgresql-upgrade 13.23-1.el9_6.2, +29 morefixed: vendor fix RHSA-2026:32983
-
Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) libpq 13.23-1.el8_4.1, pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.22-1.module+el8.4.0+24442+74e4dc28.4, postgresql 13.23-1.module+el8.4.0+24476+2b5ce087.2, postgresql-test 12.22-1.module+el8.4.0+24442+74e4dc28.4, +17 morefixed: vendor fix RHSA-2026:44420
-
Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+24433+21669af6.4, postgresql 13.23-1.module+el8.6.0+24447+7305b672.3, +18 morefixed: vendor fix RHSA-2026:29815
-
Red Hat Enterprise Linux AppStream TUS (v.8.8) libpq 13.23-1.el8_8.1, pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, +32 morefixed: vendor fix RHSA-2026:35880
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) postgresql-test 13.23-3.el9_8, postgresql-test-rpm-macros 13.23-3.el9_8fixed: vendor fix RHSA-2026:27741
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) postgresql-test-rpm-macros 16.14-1.el10_2, postgresql18-test-rpm-macros 18.4-1.el10_2fixed: vendor fix RHSA-2026:27743
-
Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) postgresql-test-rpm-macros 16.14-1.el10_0fixed: vendor fix RHSA-2026:27718
-
Red Hat Hardened Images postgresql18 18.4-0.1.hum1, postgresql17 17.10-0.1.hum1, postgresql17-test 17.10-0.1.hum1, postgresql17-pltcl 17.10-0.1.hum1, postgresql17-plperl 17.10-0.1.hum1, postgresql17-server 17.10-0.1.hum1, +5 morefixed: vendor fix RHSA-2026:21182
-
Red Hat Update Infrastructure 5 rhui5/rhua-rhel9 1784795076, rhui5/rhua-tp-rhel9 1787241260fixed: vendor fix RHSA-2026:44481
-
Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 more Red Hat Enterprise Linux 8 pgaudit, pg_repack, postgresql, postgresql-jdbc, postgresql-test, postgresql-pltcl, +9 more Red Hat Hardened Images postgresql 18.4-0.1.hum1, postgresql-test 18.4-0.1.hum1, postgresql-plperl 18.4-0.1.hum1, postgresql-server 18.4-0.1.hum1, postgresql-contrib 18.4-0.1.hum1, postgresql-upgrade 18.4-0.1.hum1, +3 more Red Hat Update Infrastructure 5 rhui5/cds-rhel9 1784794778, rhui5/cds-tp-rhel9 1787241206, rhui5/haproxy-rhel9 1784795112, rhui5/installer-rhel9 1784794289, rhui5/installer-tp-rhel9 1787135742, rhui5/cds-kubernetes-rhel9 1784794818, +1 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 5 mo ago
Exploit prediction
0.41% chance of exploitation in the next 30 days, higher than 35% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | postgresql | <14.23.0 >=15.0.0, <15.18.0 >=16.0.0, <16.14.0 >=17.0.0, <17.10.0 >=18.0.0, <18.4.0 |
14.23.0 15.18.0 16.14.0 17.10.0 18.4.0 |
| julia | LibPQ_jll | <16.14.0+0 |
16.14.0+0 |
Affected products
- n/a PostgreSQL
Classification
- Weakness
-
- CWE-61 UNIX Symbolic Link (Symlink) Following
- Technology feeds
References
-
postgresql.org
/support/security/CVE-2026-6475/
patch, vendor-advisory, advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2026-6475
web
Sources
- CVE List CVE-2026-6475
- NVD CVE-2026-6475
- OSV BIT-postgresql-2026-6475
- OSV JLSEC-2026-603
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.