Critical Security Flaw in PostgreSQL Packages: Important Update Required
Summary
ALSA-2026:3896: Important: postgresql:15 security update. Affects pg_repack versions < 1.4.8-2.module_el9.5.0+119+18833d03. Fixed in 1.4.8-2.module_el9.5.0+119+18833d03. 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) renowned for its robustness and extensibility. It supports a wide range of data types and offers powerful features such as transactions, subselects, and complex queries. 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 vulnerabilities in PostgreSQL stem from inadequate validation of multibyte character lengths and the type of input to the selectivity estimator, as well as a heap buffer overflow in the pgcrypto module. These flaws could be exploited by an attacker to execute arbitrary code, potentially leading to unauthorized access, data corruption, or service disruption.
How To Fix
Minimum fixed version
1.4.8-2.module_el9.5.0+119+18833d03
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
If immediate patching is not feasible, consider restricting access to the PostgreSQL server to trusted IP addresses only, and monitor logs for any suspicious activity. Additionally, ensure that all user inputs are properly validated before processing.
Conclusion
The recent vulnerabilities in PostgreSQL packages pose significant risks that can lead to severe consequences if not addressed promptly. Updating to the patched versions is crucial to maintaining the security and integrity of your database systems.
See every vulnerability recorded for pg_repack →
FAQ
The vulnerabilities involve inadequate validation of multibyte character lengths 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 real-time. Visit Vulert Scanner to check your application without needing to sign up.
Exploitation of these vulnerabilities could lead to unauthorized access, data corruption, or service disruption, significantly impacting the integrity and availability of your database.
Yes, you can restrict access to the PostgreSQL server and validate all user inputs to reduce the risk of exploitation until you can apply the updates.
It is recommended to regularly check for vulnerabilities, ideally on a weekly basis, and to stay informed about updates from the software maintainers.
Related vulnerabilities
Recent vulnerabilities recorded for pg_repack.