# CVE-2025-4207: PostgreSQL GB18030 encoding validation can read one byte past end of allocation for text that fails validation

- Severity: Medium 5.9 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Published: 2025-05-08T14:22:45.543Z
- Modified: 2026-06-17T09:32:46.177Z
- Also known as: BIT-POSTGRESQL-2025-4207
- Weaknesses: CWE-126
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PostgreSQL

## 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.

(As written by CVE List.)

## Affected

- PostgreSQL: from 17 before 17.5; from 16 before 16.9; from 15 before 15.13; from 14 before 14.18; before 13.21
- postgresql (Bitnami): before 13.21.0; from 14.0.0 before 14.18.0; from 15.0.0 before 15.13.0; from 16.0.0 before 16.9.0; from 17.0.0 before 17.5.0

## Every score

- PostgreSQL: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://www.postgresql.org/support/security/CVE-2025-4207/> (web)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00011.html> (web)
- <http://www.openwall.com/lists/oss-security/2025/05/09/3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-4207> (web)

## Sources

- CVE List: [CVE-2025-4207](https://www.cve.org/CVERecord?id=CVE-2025-4207), CVE Terms of Use, modified 2025-05-09
- NVD: [CVE-2025-4207](https://nvd.nist.gov/vuln/detail/CVE-2025-4207), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2025-4207](https://osv.dev/vulnerability/BIT-POSTGRESQL-2025-4207), Apache-2.0, modified 2025-05-20

---

Page: https://cve.day/CVE-2025-4207 · Whole record: https://cve.day/CVE-2025-4207.json · Rebuilt by cve.day 2026-11-25T22:58:57.812Z
