CVE-2025-4207PostgreSQL GB18030 encoding validation can read one byte past end of allocation for 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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | postgresql-17 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | postgresql-16 | Fixed | 16.9-0ubuntu0.24.04.1 | UBUNTU-CVE-2025-4207 |
| Ubuntu 22.04 | postgresql-14 | Fixed | 14.18-0ubuntu0.22.04.1 | UBUNTU-CVE-2025-4207 |
| Ubuntu 20.04 | postgresql-12 | Fixed | 12.22-0ubuntu0.20.04.4 | UBUNTU-CVE-2025-4207 |
| Ubuntu 18.04 | postgresql-10 | Fix pending | UBUNTU-CVE-2025-4207 | |
| Ubuntu 16.04 | postgresql-9.5 | Fix pending | UBUNTU-CVE-2025-4207 | |
| Ubuntu 14.04 | postgresql-9.3 | Fix pending | UBUNTU-CVE-2025-4207 | |
| Debian 13 | postgresql-17 | Fixed | 17.5-1 | DEBIAN-CVE-2025-4207 |
| Debian 12 | postgresql-15 | Fixed | 15.13-0+deb12u1 | DEBIAN-CVE-2025-4207 |
| Red Hat Enterprise Linux 10 | libpq | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libpq-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-contrib | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-docs | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-plperl | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-plpython3 | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-pltcl | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-private-devel | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-private-libs | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-server | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-server-devel | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-static | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-test | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-test-rpm-macros | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-upgrade | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql-upgrade-devel | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 10 | postgresql16 | Fixed | 0:16.10-1.el10_0 | RHSA-2025:14826 |
| Red Hat Enterprise Linux 9 | libpq | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libpq-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pg_repack | Fixed | 0:1.5.1-1.module+el9.6.0+22880+6b241eec | RHSA-2025:14862 |
| Red Hat Enterprise Linux 9 | pgaudit | Fixed | 0:1.7.0-1.module+el9.2.0+17405+aeb9ec60 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | pgvector | Fixed | 0:0.6.2-2.module+el9.6.0+22979+c3d78d52 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | postgres-decoderbufs | Fixed | 0:1.9.7-1.Final.module+el9.2.0+17405+aeb9ec60 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | postgresql | Fixed Fix deferred | 0:15.14-1.module+el9.6.0+23419+7863ab62 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | postgresql-contrib | Fixed Fix deferred | 0:16.10-1.module+el9.6.0+23420+848a4539 | RHSA-2025:14862 |
| Red Hat Enterprise Linux 9 | postgresql-docs | Fixed Fix deferred | 0:16.10-1.module+el9.6.0+23420+848a4539 | RHSA-2025:14862 |
| Red Hat Enterprise Linux 9 | postgresql-plperl | Fixed Fix deferred | 0:16.10-1.module+el9.6.0+23420+848a4539 | RHSA-2025:14862 |
| Red Hat Enterprise Linux 9 | postgresql-plpython3 | Fixed Fix deferred | 0:15.14-1.module+el9.6.0+23419+7863ab62 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | postgresql-pltcl | Fixed Fix deferred | 0:15.14-1.module+el9.6.0+23419+7863ab62 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | postgresql-private-devel | Fixed Fix deferred | 0:15.14-1.module+el9.6.0+23419+7863ab62 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | postgresql-private-libs | Fixed Fix deferred | 0:15.14-1.module+el9.6.0+23419+7863ab62 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | postgresql-server | Fixed Fix deferred | 0:15.14-1.module+el9.6.0+23419+7863ab62 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | postgresql-server-devel | Fixed Fix deferred | 0:16.10-1.module+el9.6.0+23420+848a4539 | RHSA-2025:14862 |
| Red Hat Enterprise Linux 9 | postgresql-static | Fixed Fix deferred | 0:15.14-1.module+el9.6.0+23419+7863ab62 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | postgresql-test | Fixed Fix deferred | 0:15.14-1.module+el9.6.0+23419+7863ab62 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | postgresql-test-rpm-macros | Fixed Fix deferred | 0:15.14-1.module+el9.6.0+23419+7863ab62 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | postgresql-upgrade | Fixed Fix deferred | 0:15.14-1.module+el9.6.0+23419+7863ab62 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 9 | postgresql-upgrade-devel | Fixed Fix deferred | 0:15.14-1.module+el9.6.0+23419+7863ab62 | RHSA-2025:14827 |
| Red Hat Enterprise Linux 8 | libpq | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libpq-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pg_repack | Fixed Fix deferred | 0:1.5.1-1.module+el8.10.0+22551+c0330dc9 | RHSA-2025:15022 |
| Red Hat Enterprise Linux 8 | pgaudit | Fixed Fix deferred | 0:1.5.0-1.module+el8.9.0+20664+9c30cf7f | RHSA-2025:15022 |
| Red Hat Enterprise Linux 8 | postgres-decoderbufs | Fixed Fix deferred | 0:0.10.0-2.module+el8.9.0+20664+9c30cf7f | RHSA-2025:15022 |
| Red Hat Enterprise Linux 8 | postgresql | Fixed Fix deferred | 0:13.22-1.module+el8.10.0+23422+b659575f | RHSA-2025:14899 |
| Red Hat Enterprise Linux 8 | postgresql-contrib | Fixed Fix deferred | 0:15.14-1.module+el8.10.0+23423+5a199198 | RHSA-2025:15021 |
| Red Hat Enterprise Linux 8 | postgresql-docs | Fixed Fix deferred | 0:16.10-1.module+el8.10.0+23424+e26efc6c | RHSA-2025:15022 |
| Red Hat Enterprise Linux 8 | postgresql-plperl | Fixed Fix deferred | 0:15.14-1.module+el8.10.0+23423+5a199198 | RHSA-2025:14899 |
| Red Hat Enterprise Linux 8 | postgresql-plpython3 | Fixed Fix deferred | 0:13.22-1.module+el8.10.0+23422+b659575f | RHSA-2025:14899 |
| Red Hat Enterprise Linux 8 | postgresql-pltcl | Fixed Fix deferred | 0:16.10-1.module+el8.10.0+23424+e26efc6c | RHSA-2025:15022 |
| Red Hat Enterprise Linux 8 | postgresql-private-devel | Fixed Fix deferred | 0:16.10-1.module+el8.10.0+23424+e26efc6c | RHSA-2025:15022 |
| Red Hat Enterprise Linux 8 | postgresql-private-libs | Fixed Fix deferred | 0:16.10-1.module+el8.10.0+23424+e26efc6c | RHSA-2025:15022 |
| Red Hat Enterprise Linux 8 | postgresql-server | Fixed Fix deferred | 0:15.14-1.module+el8.10.0+23423+5a199198 | RHSA-2025:15021 |
| Red Hat Enterprise Linux 8 | postgresql-server-devel | Fixed Fix deferred | 0:15.14-1.module+el8.10.0+23423+5a199198 | RHSA-2025:15021 |
| Red Hat Enterprise Linux 8 | postgresql-static | Fixed Fix deferred | 0:16.10-1.module+el8.10.0+23424+e26efc6c | RHSA-2025:15022 |
| Red Hat Enterprise Linux 8 | postgresql-test | Fixed Fix deferred | 0:15.14-1.module+el8.10.0+23423+5a199198 | RHSA-2025:14899 |
| Red Hat Enterprise Linux 8 | postgresql-test-rpm-macros | Fixed Fix deferred | 0:13.22-1.module+el8.10.0+23422+b659575f | RHSA-2025:15022 |
| Red Hat Enterprise Linux 8 | postgresql-upgrade | Fixed Fix deferred | 0:15.14-1.module+el8.10.0+23423+5a199198 | RHSA-2025:15021 |
| Red Hat Enterprise Linux 8 | postgresql-upgrade-devel | Fixed Fix deferred | 0:15.14-1.module+el8.10.0+23423+5a199198 | RHSA-2025:14899 |
| Red Hat Enterprise Linux 7 | postgresql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-contrib | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-plperl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-plpython | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-pltcl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-test | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | postgresql-upgrade | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | postgresql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-contrib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-docs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-plperl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-plpython | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-pltcl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-test | Will not fix Out of support scope | ||
| AlmaLinux 10 | postgresql-test-rpm-macros | Fixed | 16.10-1.el10_0 | ALSA-2025:14826 |
| AlmaLinux 9 | pg_repack | Fixed | 1.4.8-2.module_el9.5.0+119+18833d03 | ALSA-2025:14827 |
| AlmaLinux 9 | pgaudit | Fixed | 1.7.0-1.module_el9.3.0+52+21733919 | ALSA-2025:14827 |
| AlmaLinux 9 | pgvector | Fixed | 0.6.2-2.module_el9.6.0+167+4e561146 | ALSA-2025:14827 |
| AlmaLinux 9 | postgres-decoderbufs | Fixed | 2.4.0-1.Final.module_el9.4.0+66+eb9878bc | ALSA-2025:14862 |
| AlmaLinux 9 | postgresql | Fixed | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14827 |
| AlmaLinux 9 | postgresql-contrib | Fixed | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14862 |
| AlmaLinux 9 | postgresql-docs | Fixed | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14827 |
| AlmaLinux 9 | postgresql-plperl | Fixed | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14827 |
| AlmaLinux 9 | postgresql-plpython3 | Fixed | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14862 |
| AlmaLinux 9 | postgresql-pltcl | Fixed | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14827 |
| AlmaLinux 9 | postgresql-private-devel | Fixed | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14862 |
| AlmaLinux 9 | postgresql-private-libs | Fixed | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14862 |
| AlmaLinux 9 | postgresql-server | Fixed | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14862 |
| AlmaLinux 9 | postgresql-server-devel | Fixed | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14827 |
| AlmaLinux 9 | postgresql-static | Fixed | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14827 |
| AlmaLinux 9 | postgresql-test | Fixed | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14827 |
| AlmaLinux 9 | postgresql-test-rpm-macros | Fixed | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14862 |
| AlmaLinux 9 | postgresql-upgrade | Fixed | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14827 |
| AlmaLinux 9 | postgresql-upgrade-devel | Fixed | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14827 |
| AlmaLinux 8 | pg_repack | Fixed | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2025:14899 |
| AlmaLinux 8 | pgaudit | Fixed | 1.5.0-1.module_el8.6.0+3095+ee60d910 | ALSA-2025:15022 |
| AlmaLinux 8 | postgres-decoderbufs | Fixed | 2.4.0-1.Final.module_el8.10.0+3798+606ebb9f | ALSA-2025:15021 |
| AlmaLinux 8 | postgresql | Fixed | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15022 |
| AlmaLinux 8 | postgresql-contrib | Fixed | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:14899 |
| AlmaLinux 8 | postgresql-docs | Fixed | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15021 |
| AlmaLinux 8 | postgresql-plperl | Fixed | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:14899 |
| AlmaLinux 8 | postgresql-plpython3 | Fixed | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:14899 |
| AlmaLinux 8 | postgresql-pltcl | Fixed | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:15022 |
| AlmaLinux 8 | postgresql-private-devel | Fixed | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:14899 |
| AlmaLinux 8 | postgresql-private-libs | Fixed | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:14899 |
| AlmaLinux 8 | postgresql-server | Fixed | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15021 |
| AlmaLinux 8 | postgresql-server-devel | Fixed | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:15021 |
| AlmaLinux 8 | postgresql-static | Fixed | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:14899 |
| AlmaLinux 8 | postgresql-test | Fixed | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:15022 |
| AlmaLinux 8 | postgresql-test-rpm-macros | Fixed | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:14899 |
| AlmaLinux 8 | postgresql-upgrade | Fixed | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:15022 |
| AlmaLinux 8 | postgresql-upgrade-devel | Fixed | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15021 |
| Alpine Linux 3.24 | postgresql16 | Fixed | 16.9-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.24 | postgresql17 | Fixed | 17.5-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.23 | postgresql16 | Fixed | 16.9-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.23 | postgresql17 | Fixed | 17.5-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.22 | postgresql15 | Fixed | 15.13-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.22 | postgresql16 | Fixed | 16.9-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.22 | postgresql17 | Fixed | 17.5-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.21 | postgresql15 | Fixed | 15.13-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.21 | postgresql16 | Fixed | 16.9-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.21 | postgresql17 | Fixed | 17.5-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.20 | postgresql15 | Fixed | 15.13-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.20 | postgresql16 | Fixed | 16.9-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.19 | postgresql15 | Fixed | 15.13-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.19 | postgresql16 | Fixed | 16.9-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.18 | postgresql14 | Fixed | 14.18-r0 | ALPINE-CVE-2025-4207 |
| Alpine Linux 3.18 | postgresql15 | Fixed | 15.13-r0 | ALPINE-CVE-2025-4207 |
What the vendor says
As published in the CVE record by PostgreSQL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- PostgreSQL: affected: 17 to before 17.5, 16 to before 16.9, 15 to before 15.13, 14 to before 14.18, before 13.21; fixed in
17.5,16.9,15.13,14.18,13.21
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.