Advisory

UBUNTU-CVE-2026-6475

Also known as: CVE-2026-6475

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-05-14 14:16 UTC
Modified
2026-05-21 23:15 UTC

Affected packages and fixes

postgresql-12

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

postgresql-14

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 14.23-0ubuntu0.22.04.1 (ecosystem)

Fixed versions

14.23-0ubuntu0.22.04.1

Fix

  • Fixed version 14.23-0ubuntu0.22.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

postgresql-16

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 16.14-0ubuntu0.24.04.1 (ecosystem)

Fixed versions

16.14-0ubuntu0.24.04.1

Fix

  • Fixed version 16.14-0ubuntu0.24.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

postgresql-17

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0, fixed 17.10-0ubuntu0.25.10.1 (ecosystem)

Fixed versions

17.10-0ubuntu0.25.10.1

Fix

  • Fixed version 17.10-0ubuntu0.25.10.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

postgresql-18

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 18.4-0ubuntu0.26.04.1 (ecosystem)

Fixed versions

18.4-0ubuntu0.26.04.1

Fix

  • Fixed version 18.4-0ubuntu0.26.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences