CVE-2025-4207 json
PostgreSQL GB18030 encoding validation can read one byte past end of allocation for text that fails validation
published 2025-05-08 18 mo ago modified 2026-06-17 4 mo ago also BIT-postgresql-2025-4207 , EUVD-2025-14007
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 55%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami postgresql 13.21.0, 14.18.0, 15.13.0, 16.9.0, 17.5.0
- n/a PostgreSQL 13.21, 14.18, 15.13, 16.9, 17.5
- postgresql-15 Debian 12 15.13-0+deb12u1
- postgresql-17 Debian 13 17.5-1
debian advisories DEBIAN-CVE-2025-4207
- postgresql-12 Ubuntu 20.04 LTS 12.22-0ubuntu0.20.04.4
- postgresql-14 Ubuntu 22.04 LTS 14.18-0ubuntu0.22.04.1
- postgresql-16 Ubuntu 24.04 LTS 16.9-0ubuntu0.24.04.1
ubuntu advisories UBUNTU-CVE-2025-4207
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- pgaudit RHEL 8 1.7.0-1.module+el8.9.0+19797+c4ce5969
- pg_repack RHEL 8 1.4.8-1.module+el8.9.0+19797+c4ce5969
- postgresql RHEL 8 15.14-1.module+el8.10.0+23423+5a199198
- postgresql-test RHEL 8 15.14-1.module+el8.10.0+23423+5a199198
- postgresql-pltcl RHEL 8 15.14-1.module+el8.10.0+23423+5a199198
- postgresql-plperl RHEL 8 15.14-1.module+el8.10.0+23423+5a199198
- postgresql-server RHEL 8 15.14-1.module+el8.10.0+23423+5a199198
- postgresql-contrib RHEL 8 15.14-1.module+el8.10.0+23423+5a199198
red hat advisories RHSA-2025:15022RHSA-2025:15021RHSA-2025:14899RHSA-2025:14862RHSA-2025:14826RHSA-2025:14827
- postgresql14 SLE Module for Package Hub 15 SP5, SLE Module for Package Hub 15 SP4, SLE Module for Package Hub 15 SP3 +12 more 14.18-150200.5.58.1
- postgresql16 SLE Module for Package Hub 15 SP5, SLE Module for Package Hub 15 SP4, SLE High Performance Computing 15 SP5-ESPOS +13 more 16.9-150200.5.29.1
- postgresql17 SLE Module for Package Hub 15 SP5, SLE High Performance Computing 15 SP5-ESPOS, SLE High Performance Computing 15 SP4-ESPOS +12 more 17.5-150200.5.13.1
- postgresql15 SLE Module for Legacy 15 SP7, SLE Module for Legacy 15 SP6, openSUSE Leap 15.6 15.13-150600.16.17.1
- postgresql16 SLE Module for Server Applications 15 SP7, SLE Module for Server Applications 15 SP6, SLE Module for Package Hub 15 SP7 +4 more 16.9-150600.16.18.1
- postgresql15 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +11 more 15.13-150200.5.41.1
- postgresql17 SLE Module for Server Applications 15 SP7, SLE Module for Server Applications 15 SP6, SLE Module for Package Hub 15 SP7 +4 more 17.5-150600.13.13.1
- postgresql13 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +5 more 13.21-150200.5.72.1
suse advisories SUSE-SU-2025:01786-2SUSE-SU-2025:01782-2SUSE-SU-2025:01783-2SUSE-SU-2025:01748-2SUSE-SU-2025:01766-2SUSE-SU-2025:01786-1
- postgresql17 openSUSE Tumbleweed 17.5-1.1
- postgresql13 openSUSE Tumbleweed 13.21-1.1
- postgresql14 openSUSE Tumbleweed 14.18-1.1
- postgresql15 openSUSE Tumbleweed 15.13-1.1
- postgresql16 openSUSE Tumbleweed 16.9-1.1
opensuse advisories openSUSE-SU-2025:15151-1openSUSE-SU-2025:15137-1openSUSE-SU-2025:15138-1openSUSE-SU-2025:15139-1openSUSE-SU-2025:15140-1
- pgaudit AlmaLinux 8 1.5.0-1.module_el8.6.0+2760+1746ec94
- pgaudit AlmaLinux 8 1.5.0-1.module_el8.6.0+3095+ee60d910
- pg_repack AlmaLinux 8 1.4.6-3.module_el8.6.0+2760+1746ec94
- pg_repack AlmaLinux 8 1.4.6-3.module_el8.6.0+3095+ee60d910
- postgresql AlmaLinux 8 13.22-1.module_el8.10.0+4042+cb252986
- postgresql-test AlmaLinux 8 13.22-1.module_el8.10.0+4042+cb252986
- postgresql-pltcl AlmaLinux 8 13.22-1.module_el8.10.0+4042+cb252986
- postgresql-plperl AlmaLinux 8 13.22-1.module_el8.10.0+4042+cb252986
almalinux advisories ALSA-2025:15021ALSA-2025:15022ALSA-2025:14826ALSA-2025:14827ALSA-2025:14862ALSA-2025:14899
- postgresql14 Alpine 3.18 14.18-r0
- postgresql15 Alpine 3.22, Alpine 3.21, Alpine 3.20 +2 more 15.13-r0
- postgresql16 Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 16.9-r0
- postgresql17 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 17.5-r0
alpine advisories ALPINE-CVE-2025-4207
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- postgresql Azure Linux 3.0 16.9-1
- postgresql CBL-Mariner 2.0 14.18-1
- rust Azure Linux 3.0 1.90.0-4
azure linux advisories AZL-61736AZL-61739AZL-74894
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-4207 updated cvss 5.9
postgresql: PostgreSQL GB18030 encoding validation can read one byte past end of allocation for text that fails validation
-
Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 more Red Hat Enterprise Linux 8 libpq, pgaudit, pg_repack, postgresql, postgresql-test, postgresql-pltcl, +8 more Red Hat Enterprise Linux 9 libpq, postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +5 more Red Hat Enterprise Linux 10 libpqaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux AppStream (v. 8) pgaudit 1.5.0-1.module+el8.9.0+20664+9c30cf7f, pgaudit 1.7.0-1.module+el8.9.0+19797+c4ce5969, pgaudit 16.0-1.module+el8.10.0+20413+d8116364, pg_repack 1.4.6-3.module+el8.9.0+20664+9c30cf7f, pg_repack 1.4.8-1.module+el8.9.0+19797+c4ce5969, pg_repack 1.5.1-1.module+el8.10.0+22551+c0330dc9, +32 morefixed: vendor fix RHSA-2025:15021
-
Red Hat Enterprise Linux AppStream (v. 9) pgaudit 16.0-1.module+el9.4.0+20427+07482b8c, pgaudit 1.7.0-1.module+el9.2.0+17405+aeb9ec60, pgvector 0.6.2-2.module+el9.6.0+22979+c3d78d52, pg_repack 1.4.8-2.module+el9.5.0+22224+f5585c78, pg_repack 1.5.1-1.module+el9.6.0+22880+6b241eec, postgresql 15.14-1.module+el9.6.0+23419+7863ab62, +21 morefixed: vendor fix RHSA-2025:14862
-
Red Hat Enterprise Linux AppStream (v. 10) postgresql 16.10-1.el10_0, postgresql-server 16.10-1.el10_0fixed: vendor fix RHSA-2025:14826
-
Red Hat Enterprise Linux AppStream (v. 10) postgresql16 16.10-1.el10_0, postgresql-test 16.10-1.el10_0, postgresql-pltcl 16.10-1.el10_0, postgresql-plperl 16.10-1.el10_0, postgresql-contrib 16.10-1.el10_0, postgresql-upgrade 16.10-1.el10_0, +2 more Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) postgresql-test-rpm-macros 16.10-1.el10_0not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.77% chance of exploitation in the next 30 days, higher than 55% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | postgresql | <13.21.0 >=14.0.0, <14.18.0 >=15.0.0, <15.13.0 >=16.0.0, <16.9.0 >=17.0.0, <17.5.0 |
13.21.0 14.18.0 15.13.0 16.9.0 17.5.0 |
Affected products
- n/a PostgreSQL
Classification
- Weakness
-
- CWE-126 Buffer Over-read
- Technology feeds
References
Sources
- CVE List CVE-2025-4207
- NVD CVE-2025-4207
- OSV BIT-postgresql-2025-4207
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.