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:0523: Moderate: postgresql:13 security update. Affects pg_repack across 2 version ranges.

< 1.4.6-3.module_el8.6.0+2760+1746ec94 < 1.4.6-3.module_el8.6.0+3095+ee60d910

Fixed in 1.4.6-3.module_el8.6.0+2760+1746ec94 or 1.4.6-3.module_el8.6.0+3095+ee60d910, depending on the release line you run. 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, extensibility, and standards compliance. It supports a wide range of data types and offers advanced features such as transactions, subselects, triggers, views, and stored procedures. However, vulnerabilities can arise in any software, including PostgreSQL, which can potentially compromise database security and integrity.

Vulnerability Detail

The vulnerability stems from two main issues: first, the CREATE STATISTICS command does not adequately check for the necessary schema CREATE privileges, allowing unauthorized users to create statistics in schemas where they lack permissions (CVE-2025-12817). Second, the libpq library has an integer wraparound issue that can lead to undersized memory allocations, potentially causing application crashes or memory corruption (CVE-2025-12818). These vulnerabilities can be exploited to gain unauthorized access or disrupt database operations.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

sudo dnf update pg_repack
  • < 1.4.6-3.module_el8.6.0+2760+1746ec94 1.4.6-3.module_el8.6.0+2760+1746ec94
  • < 1.4.6-3.module_el8.6.0+3095+ee60d910 1.4.6-3.module_el8.6.0+3095+ee60d910

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, ensure that only authorized users have access to the CREATE STATISTICS command and monitor memory usage closely to prevent potential crashes. Additionally, consider implementing stricter access controls on schemas to mitigate unauthorized access until the packages are updated.

Conclusion

The vulnerabilities in PostgreSQL related to CREATE STATISTICS privileges and libpq memory allocation issues pose significant risks to database security and stability. It is crucial to update the affected packages to their patched versions to mitigate these risks. Users should also consider implementing temporary workarounds and monitoring their systems closely until updates are applied.

See every vulnerability recorded for pg_repack →

Share this vulnerability

FAQ

It allows unauthorized users to create statistics in schemas where they lack permissions, potentially leading to data exposure.

The integer wraparound can cause undersized memory allocations, leading to application crashes or memory corruption.

Versions prior to the patched releases, specifically those before 13.23, are affected.

You can use Vulert's playground at Vulert Scanner to check for vulnerabilities in your application without needing to sign up.

Implement stricter access controls and monitor your database closely until you can apply the necessary updates.

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

Fixed versions by release line

The minimum fixed version depends on the release line you run.

sudo dnf update pg_repack
  • < 1.4.6-3.module_el8.6.0+2760+1746ec94 1.4.6-3.module_el8.6.0+2760+1746ec94
  • < 1.4.6-3.module_el8.6.0+3095+ee60d910 1.4.6-3.module_el8.6.0+3095+ee60d910

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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