Security Update for PostgreSQL: Addressing CREATE STATISTICS Privilege and Memory Allocation Issues

pg_repack Updated 20 Jan 2026

Summary

13/01/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:0519: Moderate: postgresql:16 security update. Affects pg_repack versions < 1.5.1-1.module_el8.10.0+3930+ecf33554. Fixed in 1.5.1-1.module_el8.10.0+3930+ecf33554. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

PostgreSQL is a powerful, open-source object-relational database management system (DBMS) known for its robustness, scalability, and support for advanced data types. It is widely used in various applications for managing large datasets and complex queries. However, recent vulnerabilities have been identified that could compromise its security, specifically related to the CREATE STATISTICS privilege and memory allocation in the libpq library.

Vulnerability Detail

The vulnerabilities stem from two main issues: first, the CREATE STATISTICS command does not adequately check for the necessary schema CREATE privileges, potentially allowing unauthorized users to create statistics on tables they should not have access to (CVE-2025-12817). Second, the libpq library has an integer wraparound issue that leads to undersized memory allocations, which could be exploited to cause application crashes or arbitrary code execution (CVE-2025-12818). These vulnerabilities could have serious implications for data integrity and application stability.

How To Fix

Minimum fixed version

1.5.1-1.module_el8.10.0+3930+ecf33554

This is the first release that contains the fix.

sudo dnf update pg_repack

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

Workaround

As a temporary workaround, users can restrict access to the CREATE STATISTICS command by managing user privileges more strictly until the packages are updated. This can be done by reviewing and modifying the roles and permissions assigned to users in the database.

Conclusion

In summary, the identified vulnerabilities in PostgreSQL related to the CREATE STATISTICS command and memory allocation issues pose significant risks to database security and application stability. It is crucial for users to update their packages promptly and manage user privileges effectively to mitigate these risks.

See every vulnerability recorded for pg_repack →

Share this vulnerability

FAQ

The CREATE STATISTICS vulnerability allows unauthorized users to create statistics on tables, which could lead to data exposure and unauthorized data manipulation.

You can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. Visit the Vulert playground at Vulert Scanner to check for vulnerabilities without needing to sign up.

If immediate updates are not possible, ensure that user privileges are tightly controlled to mitigate the risk of unauthorized access.

While specific exploits may not be publicly available, the nature of the vulnerabilities suggests that they could be exploited to compromise database security and application stability.

It is recommended to regularly check for updates, ideally on a weekly basis, to ensure that you are protected against known vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for pg_repack.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

1.5.1-1.module_el8.10.0+3930+ecf33554

This is the first release that contains the fix.

sudo dnf update pg_repack

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