# CVE-2025-4207: PostgreSQL GB18030 encoding validation can read one byte past end of allocation for text that fails validation

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-05-08 · Modified: 2025-05-09
- Aliases: ALPINE-CVE-2025-4207, MGASA-2025-0155, SUSE-SU-2025:01644-1, SUSE-SU-2025:01644-2, SUSE-SU-2025:01661-1, SUSE-SU-2025:01661-2, SUSE-SU-2025:01705-1, SUSE-SU-2025:01748-1, SUSE-SU-2025:01748-2, SUSE-SU-2025:01749-1, SUSE-SU-2025:01750-1, SUSE-SU-2025:01765-1, SUSE-SU-2025:01766-1, SUSE-SU-2025:01766-2, SUSE-SU-2025:01767-1, SUSE-SU-2025:01772-1, SUSE-SU-2025:01782-1, SUSE-SU-2025:01782-2, SUSE-SU-2025:01783-1, SUSE-SU-2025:01783-2, SUSE-SU-2025:01785-1, SUSE-SU-2025:01786-1, SUSE-SU-2025:01786-2, UBUNTU-CVE-2025-4207, USN-7520-1, USN-7520-2, DEBIAN-CVE-2025-4207, DLA-4159-1, CGA-4gff-pr62-jw5r, CGA-rch2-52fc-2rm5, SUSE-SU-2025:01654-1, openSUSE-SU-2025:15137-1, openSUSE-SU-2025:15138-1, openSUSE-SU-2025:15139-1, openSUSE-SU-2025:15140-1, openSUSE-SU-2025:15151-1
- Record: https://cvemate.com/vulnerability/CVE-2025-4207 · JSON: https://cvemate.com/vulnerability/CVE-2025-4207/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.786%, percentile 57.483%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 123)

- alpine postgresql14 (Alpine Linux): \< 14.18-r0
- alpine postgresql15 (Alpine Linux): \< 15.13-r0
- alpine postgresql16 (Alpine Linux): \< 16.9-r0
- alpine postgresql17 (Alpine Linux): \< 17.5-r0
- chainguard postgresql-12 (Chainguard): All versions (No fix recorded)
- wolfi postgresql-12 (Wolfi): All versions (No fix recorded)
- debian postgresql-13 (Debian): \< 13.21-0+deb11u1
- debian postgresql-15 (Debian): \< 15.13-0+deb12u1
- debian postgresql-17 (Debian): \< 17.5-1
- ubuntu postgresql-10 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-12 (Ubuntu): \< 12.22-0ubuntu0.20.04.4
- ubuntu postgresql-14 (Ubuntu): \< 14.18-0ubuntu0.22.04.1
- ubuntu postgresql-16 (Ubuntu): \< 16.9-0ubuntu0.24.04.1
- ubuntu postgresql-17 (Ubuntu): \< 17.5-0ubuntu0.25.04.1
- ubuntu postgresql-9.3 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.5 (Ubuntu): All versions (No fix recorded)
- mageia postgresql13 (Mageia): \< 13.21-1.mga9
- mageia postgresql15 (Mageia): \< 15.13-1.mga9
- opensuse postgresql13&distro=openSUSE Leap 15.6 (openSUSE): \< 13.21-150600.14.8.1
- opensuse postgresql13&distro=openSUSE Tumbleweed (openSUSE): \< 13.21-1.1

## References (first 20 of 40)

- <https://www.postgresql.org/support/security/CVE-2025-4207/>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00011.html>
- <http://www.openwall.com/lists/oss-security/2025/05/09/3>
- <https://security.alpinelinux.org/vuln/CVE-2025-4207>
- <https://advisories.mageia.org/MGASA-2025-0155.html>
- <https://bugs.mageia.org/show_bug.cgi?id=34265>
- <https://www.postgresql.org/about/news/postgresql-175-169-1513-1418-and-1321-released-3072/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202501644-1/>
- <https://bugzilla.suse.com/1242931>
- <https://www.suse.com/security/cve/CVE-2025-4207>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202501644-2/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202501661-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202501661-2/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202501705-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202501748-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202501748-2/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202501749-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202501750-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202501765-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202501766-1/>

---

Data as of 2026-12-05T03:44:18.224Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
