Critical Security Flaw in PostgreSQL Packages: Remote Code Execution Vulnerability
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.