PostgreSQL Security Update: Vulnerabilities in PostgreSQL Packages

postgresql Updated 20 Jan 2026

Summary

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

ALSA-2026:0491: Moderate: postgresql security update. Affects postgresql versions < 13.23-1.el9_7. Fixed in 13.23-1.el9_7. 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 SQL compliance. 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 potentially compromise the security of PostgreSQL installations, particularly in version 13.23 and earlier.

Vulnerability Detail

The vulnerabilities stem from two main issues: first, the CREATE STATISTICS command does not adequately check for the necessary schema CREATE privilege, which could allow unauthorized users to create statistics in schemas they do not own (CVE-2025-12817). Second, the libpq library has an integer wraparound issue that leads to undersized allocations, potentially causing memory corruption or denial of service (CVE-2025-12818). These vulnerabilities could be exploited by attackers to gain unauthorized access or disrupt database operations.

How To Fix

Minimum fixed version

13.23-1.el9_7

This is the first release that contains the fix.

sudo dnf update postgresql

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 CREATE STATISTICS command by adjusting user privileges and ensuring that only authorized users have the necessary permissions to execute this command. Additionally, monitoring and logging database activities can help detect any unauthorized attempts to exploit these vulnerabilities.

Conclusion

The identified vulnerabilities in PostgreSQL highlight the importance of maintaining up-to-date software to protect against potential security threats. By applying the recommended updates and implementing best practices for database security, users can significantly reduce their risk of exploitation.

See every vulnerability recorded for postgresql →

Share this vulnerability

FAQ

The main vulnerabilities include inadequate privilege checks for the CREATE STATISTICS command and an integer wraparound issue in the libpq library.

You can check your PostgreSQL version and compare it with the patched version 13.23-1.el9_7. Additionally, using tools like Vulert can help monitor for vulnerabilities in your software.

Update to the latest patched version of PostgreSQL and review user privileges to ensure that only authorized users can execute sensitive commands.

Yes, Vulert offers a service that monitors and alerts for open-source vulnerabilities in your software using just a manifest file like package-lock.json.

If immediate updates are not possible, consider implementing stricter access controls and monitoring database activities to mitigate potential risks.

Related vulnerabilities

Recent vulnerabilities recorded for postgresql.

How To Fix

Minimum fixed version

13.23-1.el9_7

This is the first release that contains the fix.

sudo dnf update postgresql

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