Advisory

USN-6802-1

Also known as: CVE-2024-4317

Summary

postgresql-14, postgresql-15, postgresql-16 vulnerability

Details

Lukas Fittl discovered that PostgreSQL incorrectly performed authorization
in the built-in pg_stats_ext and pg_stats_ext_exprs views. An unprivileged
database user can use this issue to read most common values and other
statistics from CREATE STATISTICS commands of other users.

NOTE: This update will only fix fresh PostgreSQL installations. Current
PostgreSQL installations will remain vulnerable to this issue until manual
steps are performed. Please see the instructions in the changelog located
at /usr/share/doc/postgresql-*/changelog.Debian.gz after the updated
packages have been installed, or in the PostgreSQL release notes located
here:

https://www.postgresql.org/docs/16/release-16-3.html
https://www.postgresql.org/docs/15/release-15-7.html
https://www.postgresql.org/docs/14/release-14-12.html

Severity

Not rated by the source.

Dates

Published
2024-05-30 11:59 UTC
Modified
2026-04-22 10:47 UTC

Affected packages and fixes

postgresql-14

Debian packages (deb) · Ubuntu 22.04

Affected

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

Fixed versions

14.12-0ubuntu0.22.04.1

Fix

  • Fixed version 14.12-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.3-0ubuntu0.24.04.1 (ecosystem)

Fixed versions

16.3-0ubuntu0.24.04.1

Fix

  • Fixed version 16.3-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.

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