CVE-2025-4207 PostgreSQL GB18030 encoding validation can read one byte past end of allocation for text that fails validation
MediumCVSS 5.9
EPSS 0.77%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft cm2 postgresql 14.18-1 | < 14.18-1 | 14.18-1 |
| azure linux postgresql(Azure Linux:3.0) | < 16.9-1 | 16.9-1 |
| cbl-mariner postgresql(CBL-Mariner:2.0) | < 14.18-1 | 14.18-1 |
| azure linux rust(Azure Linux:3.0) | All versions | No fix listed |
| azure linux rust(Azure Linux:3.0) | < 1.90.0-4 | 1.90.0-4 |
| debian/postgresql-15(Debian:12) | < 15.13-0+deb12u1 | 15.13-0+deb12u1 |
| debian/postgresql-15(Debian:12) | = 15.10-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.11-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.12-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.12-0+deb12u2 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.3-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.3-1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.4-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.4-1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.4-2 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.4-3 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.5-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.6-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.7-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.8-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.9-0+deb12u1 | No fix listed |
| debian/postgresql-17(Debian:13) | < 17.5-1 | 17.5-1 |
| ubuntu/postgresql-14(Ubuntu:22.04) | < 14.18-0ubuntu0.22.04.1 | 14.18-0ubuntu0.22.04.1 |
| alpine/postgresql14(Alpine:v3.18) | < 14.18-r0 | 14.18-r0 |
| alpine/postgresql15(Alpine:v3.18) | < 15.13-r0 | 15.13-r0 |
Show 15 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/postgresql15(Alpine:v3.19) | < 15.13-r0 | 15.13-r0 |
| alpine/postgresql15(Alpine:v3.20) | < 15.13-r0 | 15.13-r0 |
| alpine/postgresql15(Alpine:v3.21) | < 15.13-r0 | 15.13-r0 |
| alpine/postgresql15(Alpine:v3.22) | < 15.13-r0 | 15.13-r0 |
| alpine/postgresql16(Alpine:v3.19) | < 16.9-r0 | 16.9-r0 |
| alpine/postgresql16(Alpine:v3.20) | < 16.9-r0 | 16.9-r0 |
| alpine/postgresql16(Alpine:v3.21) | < 16.9-r0 | 16.9-r0 |
| alpine/postgresql16(Alpine:v3.22) | < 16.9-r0 | 16.9-r0 |
| alpine/postgresql16(Alpine:v3.23) | < 16.9-r0 | 16.9-r0 |
| alpine/postgresql16(Alpine:v3.24) | < 16.9-r0 | 16.9-r0 |
| alpine/postgresql17(Alpine:v3.21) | < 17.5-r0 | 17.5-r0 |
| alpine/postgresql17(Alpine:v3.22) | < 17.5-r0 | 17.5-r0 |
| alpine/postgresql17(Alpine:v3.23) | < 17.5-r0 | 17.5-r0 |
| alpine/postgresql17(Alpine:v3.24) | < 17.5-r0 | 17.5-r0 |
| ubuntu/postgresql-16(Ubuntu:24.04) | < 16.9-0ubuntu0.24.04.1 | 16.9-0ubuntu0.24.04.1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-4207 vendor-advisory
- www.postgresql.org
- lists.debian.org
- www.openwall.com
- Ubuntu CVE tracker vendor-advisory
- USN-7520-1 vendor-advisory
- USN-7520-2 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory