CVE-2025-4207
MEDIUM5.9EPSS 0.33%PostgreSQL GB18030 encoding validation can read one byte past end of allocation for text that fails validation
Published: 5/8/2025Modified: 4/28/2026
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 packages (9)
- Alpine/postgresql14from 0, < 14.18-r0
- Alpine/postgresql15from 0, < 15.13-r0
- Alpine/postgresql16from 0, < 16.9-r0
- Alpine/postgresql17from 0, < 17.5-r0
- Bitnami/postgresqlfrom 0, < 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
- Debian/postgresql-13from 0, < 13.21-0+deb11u1
- Debian/postgresql-13from 0, < 13.21-0+deb11u1
- Debian/postgresql-15from 0, < 15.13-0+deb12u1
- Debian/postgresql-17from 0, < 17.5-1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (6)
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2025-4207
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-4207
- WEBhttps://lists.debian.org/debian-lts-announce/2025/05/msg00011.html
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2025-4207
- WEBhttps://www.postgresql.org/support/security/CVE-2025-4207/
- WEBhttp://www.openwall.com/lists/oss-security/2025/05/09/3