Moderate Security Vulnerability in PostgreSQL Packages: CVE-2025-12818

postgresql Updated 20 Jan 2026

Summary

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

ALSA-2026:0525: Moderate: postgresql16 security update. Affects postgresql versions < 16.11-1.el10_1. Fixed in 16.11-1.el10_1. 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 an advanced Object-Relational Database Management System (DBMS) known for its robustness, extensibility, and compliance with SQL standards. It provides a wide range of functionalities, including support for complex queries, transactions, and concurrency. The affected packages include postgresql, postgresql-contrib, postgresql-docs, and others, which are essential for accessing and managing PostgreSQL databases. The vulnerability identified as CVE-2025-12818 arises from an issue in the libpq library, which is responsible for client-server communication.

Vulnerability Detail

The vulnerability in PostgreSQL, identified as CVE-2025-12818, is caused by undersized allocations in the libpq library, leading to potential integer wraparound. This flaw can be exploited by an attacker to cause unexpected behavior in the database management system, potentially leading to data corruption or unauthorized access. The severity of this vulnerability is classified as moderate, indicating that while it may not lead to immediate catastrophic failures, it poses a significant risk if left unaddressed.

How To Fix

Minimum fixed version

16.11-1.el10_1

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 workaround, users can limit access to the PostgreSQL server and ensure that only trusted clients can connect. This can be achieved by configuring the pg_hba.conf file to restrict connections based on IP addresses or using firewall rules to block unauthorized access.

Conclusion

The PostgreSQL vulnerability CVE-2025-12818 poses a moderate risk due to undersized allocations in the libpq library. It is crucial for users to update their PostgreSQL packages to the patched version 16.11-1.el10_1 to mitigate potential risks. Additionally, implementing access restrictions can serve as a temporary workaround until the update is applied.

See every vulnerability recorded for postgresql →

Share this vulnerability

FAQ

CVE-2025-12818 is a security vulnerability in PostgreSQL that arises from undersized allocations in the libpq library, potentially leading to integer wraparound.

You can check if your PostgreSQL installation is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring installation.

The risks include potential data corruption, unauthorized access, and unexpected behavior in the database management system.

You can update your PostgreSQL packages by running the command 'sudo dnf update postgresql postgresql-contrib postgresql-docs ...' in your terminal.

Yes, you can limit access to the PostgreSQL server by configuring the pg_hba.conf file and using firewall rules to restrict connections.

Related vulnerabilities

Recent vulnerabilities recorded for postgresql.

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

Minimum fixed version

16.11-1.el10_1

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