---
title: "CVE-2025-4207\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2025-4207?format=md
keywords: index, follow
---

# CVE-2025-4207

Publication date 8 May 2025

Last updated 26 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**5.9 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2025-4207?format=md#impact-score)

Toggle side navigation

## Description

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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2025-4207?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| postgresql-10 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Needs evaluation |
| postgresql-12 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Fixed 12.22-0ubuntu0.20.04.4 |
| postgresql-14 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Fixed 14.18-0ubuntu0.22.04.1 |
| 20.04 LTS focal | Not in release |
| postgresql-16 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Fixed 16.9-0ubuntu0.24.10.1 |
| 24.04 LTS noble | Fixed 16.9-0ubuntu0.24.04.1 |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| postgresql-17 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not affected |
| 25.04 plucky | Fixed 17.5-0ubuntu0.25.04.1 |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| postgresql-9.3 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 14.04 LTS trusty | Vulnerable, fix deferred |
| postgresql-9.5 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 16.04 LTS xenial | Needs evaluation |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2025-4207?format=md#patch-details)

## Notes

---

### [leosilva](https://launchpad.net/~leosilva)

PostgreSQL 9.3 is end of life upstream, and no updates are
are available. Marking as deferred in -esm-main releases.

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| postgresql-12 | * Upstream:   <https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=cbadeaca9271a1bade8ef9790bae09dc92e0ed30> |
| postgresql-17 | * Upstream:   <https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=ec5f89e8a29f32c7dbc4dd8734ed8406d771de2f> |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

5.9 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | High |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | None |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 5.9 · Medium |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-4207)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-4207)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2025-4207)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2025-4207)

### Related Ubuntu Security Notices (USN)

+ [USN-7520-1](https://usn.ubuntu.com/USN-7520-1)
+ PostgreSQL vulnerability
+ 20 May 2025

+ [USN-7520-2](https://usn.ubuntu.com/USN-7520-2)
+ PostgreSQL vulnerability
+ 21 May 2025

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2025-4207>
* <https://www.postgresql.org/about/news/postgresql-175-169-1513-1418-and-1321-released-3072/>
* <https://www.postgresql.org/support/security/CVE-2025-4207/>
