CVE-2025-4207
No exploitation reported by the sources we read.
- Published2025-05-08
- Fixed in17.5.0 · 16.9.0 · 15.13.0 · 14.18.0 · 13.21.0
- WeaknessCWE-126
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2025-05-0815:15CVE publishedNVD
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 17.x | ≥ 17.0.0, < 17.5.0 | 17.5.0 | OSV |
| 16.x | ≥ 16.0.0, < 16.9.0 | 16.9.0 | OSV |
| 15.x | ≥ 15.0.0, < 15.13.0 | 15.13.0 | OSV |
| 14.x | ≥ 14.0.0, < 14.18.0 | 14.18.0 | OSV |
| 13.21 | < 13.21.0 | 13.21.0 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As PostgreSQL, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- PostgreSQLother versions: not affectedAffected
- ≥ 17, < 17.5fixed in 17.5rpm
- ≥ 16, < 16.9fixed in 16.9rpm
- ≥ 15, < 15.13fixed in 15.13rpm
- ≥ 14, < 14.18fixed in 14.18rpm
- < 13.21fixed in 13.21rpm
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-05-08
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- libpqopenEuler:24.03-LTS-SP1all versions · fixed in 15.13-1.oe2403sp1
- libpqopenEuler:24.03-LTSall versions · fixed in 15.13-1.oe2403
- libpqopenEuler:22.03-LTS-SP4all versions · fixed in 13.21-1.oe2203sp4
- libpqopenEuler:22.03-LTS-SP3all versions · fixed in 13.21-1.oe2203sp3
- pg_repackRed Hat:enterprise_linux:9::appstreamall versions · fixed in 0:1.4.8-2.module+el9.5.0+22224+f5585c78and 2 other packages
- pg_repackRed Hat:enterprise_linux:9::appstreamall versions · fixed in 0:1.5.1-1.module+el9.6.0+22880+6b241eecand 2 other packages
- pg_repackRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:1.5.1-1.module+el8.10.0+22551+c0330dc9and 2 other packages
- pg_repackRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:1.4.6-3.module+el8.9.0+20664+9c30cf7fand 2 other packages
199 more package ranges on OSV.dev
Vendor advisories
postgresql: PostgreSQL GB18030 encoding validation can read one byte past end of allocation for text that fails validation
libpq.src as a component of Red Hat Enterprise Linux 10 · postgresql as a component of Red Hat Enterprise Linux 6 · postgresql-contrib as a component of Red Hat Enterprise Linux 6 · +66 more
Red Hat Security Advisory: postgresql:15 security update
Red Hat Security Advisory: postgresql:13 security update
Red Hat Security Advisory: postgresql:16 security update
Red Hat Security Advisory: postgresql:15 security update
Red Hat Security Advisory: postgresql:16 security update
1 more advisory
Fix
- Update postgresql to 17.5.0 · 16.9.0 · 15.13.0 · 14.18.0 · 13.21.0
- Vendor fix Red Hat Product Security RHSA-2025:15022 · 149 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- No fix available, says the vendor Red Hat Product Security CVE-2025-4207 · 58 productsFix deferred
- No fix planned, says the vendor Red Hat Product Security CVE-2025-4207 · 11 productsOut of support scope
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-12
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2025-05-08
- CNACVSS 3.15.9known since 2026-10-23
- CNAweakness (CWE)CWE-126known since 2026-10-23
- FIRST EPSSEPSS score0.8 %2026-11-11
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-61736same flawAzure Linux · MIT
- AZL-61739same flawAzure Linux · MIT
- AZL-74894same flawAzure Linux · MIT
- BIT-postgresql-2025-4207same flawBitnami · Apache-2.0
- CGA-4gff-pr62-jw5rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-rch2-52fc-2rm5same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2025-14007same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-6x46-2273-xjjfsame flawGitHub Advisory Database · CC-BY-4.0
- MINI-25hv-9w8p-jmm4same flawMinimOS · LicenseRef-unstated
- MINI-hvqf-q89v-frg3same flawMinimOS · LicenseRef-unstated
- MINI-p848-mh93-mjvcsame flawMinimOS · LicenseRef-unstated
- MINI-rfph-rqg7-44c9same flawMinimOS · LicenseRef-unstated
- MINI-w5vq-phh9-vj94same flawMinimOS · LicenseRef-unstated
- ALSA-2025:14826advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:14827advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:14862advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:14899advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:15021advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:15022advisory covering several CVEsAlmaLinux · MIT
- DLA-4159-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2025-0155advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2025-1508advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1565advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1566advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1567advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1568advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1697advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1698advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1699advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1700advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2025:15137-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15138-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15139-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15140-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15151-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2025:14826advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:14827advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:14862advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:14899advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:15021advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:15022advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2025:01644-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:01644-2advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:01654-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:01661-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:01661-2advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:01705-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:01748-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:01748-2advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:01749-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Published
- 2025-05-08
- Last Modified
- 2026-06-17
- NVD status
- Deferred
- GitHub Advisory
- GHSA-6x46-2273-xjjf
Frequently asked questions
What is CVE-2025-4207?
Is CVE-2025-4207 actively exploited?
What is the CVSS score for CVE-2025-4207?
Running PostgreSQL? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-6x46-2273-xjjf
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0