PostgreSQL Vulnerability in Authorization Mechanism - USN-6802-1

postgresql-14 Updated 03 Oct 2025

Summary

30/05/2024
N/A
Yes i
Unrated
Not published

USN-6802-1: postgresql-14, postgresql-15, postgresql-16 vulnerability. Affects postgresql-14 versions < 14.12-0ubuntu0.22.04.1. Fixed in 14.12-0ubuntu0.22.04.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

PostgreSQL is a powerful, open-source relational database system that uses and extends the SQL language. It is known for its robustness, extensibility, and support for advanced data types. The vulnerability identified in this report affects PostgreSQL versions 14, 15, and 16, specifically in the built-in pg_stats_ext and pg_stats_ext_exprs views, which are used to gather statistical information about database objects.

Vulnerability Detail

Lukas Fittl discovered that PostgreSQL incorrectly performed authorization in the built-in pg_stats_ext and pg_stats_ext_exprs views. This flaw allows an unprivileged database user to read most common values and other statistics from CREATE STATISTICS commands of other users. The vulnerability is classified under CVE-2024-4317 and poses a significant risk as it can lead to unauthorized access to sensitive statistical data, potentially compromising user privacy and data integrity.

How To Fix

Minimum fixed version

14.12-0ubuntu0.22.04.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade postgresql-14

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. Users are advised to apply the patch as soon as possible to mitigate the risk.

Conclusion

The PostgreSQL vulnerability identified as USN-6802-1 poses a significant risk by allowing unauthorized access to sensitive statistical data. Users are strongly encouraged to update their installations to the patched versions to secure their databases and protect user privacy.

See every vulnerability recorded for postgresql-14 →

Share this vulnerability

FAQ

The vulnerability allows unprivileged users to access statistical data from other users' CREATE STATISTICS commands due to improper authorization checks.

PostgreSQL versions 14, 15, and 16 are affected by this vulnerability.

You can use Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.

While there are no specific workarounds, it is crucial to plan for an update as soon as possible to mitigate the risk associated with this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for postgresql-14.

How To Fix

Minimum fixed version

14.12-0ubuntu0.22.04.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade postgresql-14

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback