CVE-2025-4207
Reported by postgresql · Published May 8, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| postgresql15-static | Amazon Linux | 15.13-1.amzn2023.0.1 |
| postgresql15-private-libs | Amazon Linux | 15.13-1.amzn2023.0.1 |
| postgresql16 | Amazon Linux | 16.9-1.amzn2023.0.1 |
| postgresql16-contrib | Amazon Linux | 16.9-1.amzn2023.0.1 |
| postgresql-contrib | Amazon Linux | 9.2.24-8.amzn2.0.7 |
| postgresql15-docs | Amazon Linux | 15.13-1.amzn2023.0.1 |
| postgresql17-test | Amazon Linux | 17.5-1.amzn2023.0.1 |
| postgresql17-static | Amazon Linux | 17.5-1.amzn2023.0.1 |
| postgresql16-private-libs | Amazon Linux | 16.9-1.amzn2023.0.1 |
| postgresql15-llvmjit | Amazon Linux | 15.13-1.amzn2023.0.1 |
| postgresql16-plpython3 | Amazon Linux | 16.9-1.amzn2023.0.1 |
| postgresql-static | Amazon Linux | 9.2.24-8.amzn2.0.7 |
55 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | PostgreSQL | 17, 16, 15 |
| amazon:2023 | postgresql15-static | 0 |
| amazon:2023 | postgresql15-private-libs | 0 |
| amazon:2023 | postgresql16 | 0 |
| amazon:2023 | postgresql16-contrib | 0 |
| amazon:2 | postgresql-contrib | 0 |
| amazon:2023 | postgresql15-docs | 0 |
| amazon:2023 | postgresql17-test | 0 |
| amazon:2023 | postgresql17-static | 0 |
| amazon:2023 | postgresql16-private-libs | 0 |
| amazon:2023 | postgresql15-llvmjit | 0 |
| amazon:2023 | postgresql16-plpython3 | 0 |
| amazon:2 | postgresql-static | 0 |
| amazon:2 | postgresql-upgrade | 0 |
| amazon:2023 | postgresql15-upgrade | 0 |
| amazon:2 | postgresql-test | 0 |
| amazon:2023 | postgresql16-upgrade | 0 |
| amazon:2023 | postgresql17-plpython3 | 0 |
| amazon:2023 | postgresql17-server-devel | 0 |
| amazon:2023 | postgresql17-upgrade-devel | 0 |
…and 47 more
Timeline
- May 8, 2025 CVE Published
- May 9, 2025 EPSS Score (30 in total, the first dated here)
- May 9, 2025 CVE Updated
- Jun 2, 2026 Security Advisory (24 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (7 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-4207
vulnetix vdb fixes CVE-2025-4207
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-4207/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart