CVE-2025-4207 Affecting postgresql-12 package, versions <12.22-0ubuntu0.20.04.4


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.08% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-POSTGRESQL12-10109742
  • published1 Jun 2025
  • disclosed8 May 2025

Introduced: 8 May 2025

CVE-2025-4207  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 postgresql-12 to version 12.22-0ubuntu0.20.04.4 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream postgresql-12 package and not the postgresql-12 package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

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. This affects the database server and also libpq. Versions before PostgreSQL 17.5, 16.9, 15.13, 14.18, and 13.21 are affected.

CVSS Base Scores

version 3.1