Buffer Over-Read Vulnerability in PostgreSQL Packages Leading to Potential Denial of Service

postgresql14 Updated 02 Oct 2025

Summary

08/05/2025
N/A
Yes i
Unrated
Not published

CVE-2025-4207: Buffer over-read in PostgreSQL GB18030 encoding validation allows a database input provider to achieve temporary denial of service on platforms where a 1-byte over-read can elicit process termination. Affects postgresql14 versions < 14.18-r0. Fixed in 14.18-r0. 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 a powerful, open-source object-relational database system known for its reliability, feature robustness, and performance. It supports various data types and is widely used in web applications, data warehousing, and analytics. The vulnerability in question affects multiple versions of PostgreSQL, specifically in the GB18030 encoding validation, which can lead to a buffer over-read, potentially causing a denial of service.

Vulnerability Detail

The vulnerability identified as CVE-2025-4207 is a buffer over-read that occurs during the GB18030 encoding validation in PostgreSQL. This flaw allows a malicious database input provider to exploit the over-read, which may lead to the termination of the PostgreSQL process on certain platforms. The affected versions include PostgreSQL 13.21 and earlier, 14.18 and earlier, 15.13 and earlier, 16.9 and earlier, and 17.5 and earlier. The implications of this vulnerability are significant, as it can disrupt database services and affect applications relying on PostgreSQL for data management.

How To Fix

Minimum fixed version

14.18-r0

This is the first release that contains the fix.

sudo apk add --upgrade postgresql14

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider limiting access to the PostgreSQL database to trusted users only and monitor database inputs closely to prevent potential exploitation until the patch is applied.

Conclusion

The CVE-2025-4207 vulnerability poses a significant risk to PostgreSQL installations, potentially leading to denial of service. It is crucial to update to the latest patched versions to mitigate this risk. Users are encouraged to monitor their systems and apply necessary updates promptly.

See every vulnerability recorded for postgresql14 →

Share this vulnerability

FAQ

CVE-2025-4207 is a vulnerability in PostgreSQL that allows for a buffer over-read during GB18030 encoding validation, potentially leading to denial of service.

Affected versions include PostgreSQL 13.21 and earlier, 14.18 and earlier, 15.13 and earlier, 16.9 and earlier, and 17.5 and earlier.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software without needing to access the code. Visit Vulert Scanner to check your application.

Exploiting this vulnerability can lead to a denial of service, causing disruptions in database services and affecting applications that depend on PostgreSQL.

You can update PostgreSQL by running the command: sudo apt-get update && sudo apt-get install postgresql-<version>, replacing <version> with the patched version number.

Related vulnerabilities

Recent vulnerabilities recorded for postgresql14.

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

14.18-r0

This is the first release that contains the fix.

sudo apk add --upgrade postgresql14

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