Critical Denial of Service Vulnerability in PostgreSQL 17

postgresql-17 Updated 03 Oct 2025

Summary

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

USN-7520-2: postgresql-17 vulnerability. Affects postgresql-17 versions < 17.5-0ubuntu0.25.04.1. Fixed in 17.5-0ubuntu0.25.04.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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

PostgreSQL is a powerful, open-source relational database management system known for its robustness, scalability, and support for advanced data types and performance optimization. The package version 17.5-0ubuntu0.25.04.1 has been identified to have a vulnerability that affects its ability to handle specific character encodings, notably GB18030. This vulnerability can lead to service interruptions, impacting applications relying on PostgreSQL for data management.

Vulnerability Detail

The vulnerability, identified as CVE-2025-4207, arises from PostgreSQL's improper handling of the GB18030 encoding. This flaw can be exploited by an attacker to cause the PostgreSQL server to crash, resulting in a denial of service. The issue was first reported in the context of USN-7520-1, which addressed the vulnerability in earlier versions of PostgreSQL. The potential ramifications include service downtime and loss of availability for applications dependent on the database.

How To Fix

Minimum fixed version

17.5-0ubuntu0.25.04.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade postgresql-17

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

Workaround

As a temporary measure, users may consider disabling the GB18030 encoding if it is not essential for their applications. However, this is not a long-term solution and updating to the patched version is strongly recommended.

Conclusion

In summary, the PostgreSQL 17 package has a critical vulnerability that can lead to denial of service due to improper handling of GB18030 encoding. It is crucial to update to the patched version to ensure the security and availability of your database services. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the integrity of your software.

See every vulnerability recorded for postgresql-17 →

Share this vulnerability

FAQ

The vulnerability is a denial of service issue caused by improper handling of the GB18030 encoding in PostgreSQL.

You can verify if your installation is affected by using the Vulert playground at Vulert Scanner, which allows you to check for vulnerabilities without requiring any signup.

Failure to address this vulnerability may lead to service disruptions, crashes, and potential data unavailability for applications relying on PostgreSQL.

Yes, Vulert provides a service that monitors open-source vulnerabilities in your software using a manifest file like package-lock.json.

If immediate updates are not possible, consider disabling the GB18030 encoding as a temporary workaround until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for postgresql-17.

How To Fix

Minimum fixed version

17.5-0ubuntu0.25.04.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade postgresql-17

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