Critical Security Flaw in PostgreSQL Packages: Remote Code Execution Vulnerability

pg_repack Updated 13 Mar 2026

Summary

09/03/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:4110: Important: postgresql:16 security update. Affects pg_repack versions < 1.5.1-1.module_el9.6.0+146+c54fdeca. Fixed in 1.5.1-1.module_el9.6.0+146+c54fdeca. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

PostgreSQL is an advanced object-relational database management system (DBMS) known for its robustness, extensibility, and compliance with SQL standards. It supports a wide range of data types and offers powerful features such as transactions, sub-selects, triggers, views, and stored procedures. However, recent vulnerabilities have been identified that could allow attackers to execute arbitrary code, posing significant risks to data integrity and system security.

Vulnerability Detail

The vulnerability stems from missing validation in PostgreSQL's handling of multibyte character lengths, which can lead to arbitrary code execution (CVE-2026-2006). Additionally, the intarray module lacks proper validation of input types to the selectivity estimator (CVE-2026-2004), and a heap buffer overflow in the pgcrypto module also allows for arbitrary code execution (CVE-2026-2005). These vulnerabilities can be exploited by attackers to gain unauthorized access and control over the database system.

How To Fix

Minimum fixed version

1.5.1-1.module_el9.6.0+146+c54fdeca

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 measure, users can restrict access to the PostgreSQL database to trusted IP addresses only, thereby reducing the risk of exploitation until the patches are applied.

Conclusion

The identified vulnerabilities in PostgreSQL packages pose significant risks to database security, allowing for potential arbitrary code execution. It is crucial for users to update their packages to the latest patched versions and implement temporary workarounds to safeguard their systems until updates can be applied.

See every vulnerability recorded for pg_repack →

Share this vulnerability

FAQ

The vulnerabilities involve missing validation in character length handling and input types, as well as a heap buffer overflow, which can lead to arbitrary code execution.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application using the Vulert playground without any signup.

Exploitation of these vulnerabilities can lead to unauthorized access, data breaches, and complete control over the database system.

Yes, restricting database access to trusted IP addresses can help mitigate risks until the vulnerabilities are patched.

If immediate updates are not possible, ensure that your database is not exposed to untrusted networks and monitor for any suspicious activity.

Related vulnerabilities

Recent vulnerabilities recorded for pg_repack.

How To Fix

Minimum fixed version

1.5.1-1.module_el9.6.0+146+c54fdeca

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