Skip to main content
No exploitation reportedFix available

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?

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
  1. 2025-05-0815:15CVE publishedNVD

Versions per branch

OSV
postgresql
BranchAffectedFixed in
17.x≥ 17.0.0, < 17.5.017.5.0
16.x≥ 16.0.0, < 16.9.016.9.0
15.x≥ 15.0.0, < 15.13.015.13.0
14.x≥ 14.0.0, < 14.18.014.18.0
13.21< 13.21.013.21.0

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 affected
    Affected
    • ≥ 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

  • CVE-2025-4207 Red Hat Product Security754 products fixed · 69 known affected

    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

  • RHSA-2025:15022 Red Hat Product Security149 products fixed

    Red Hat Security Advisory: postgresql:15 security update

  • RHSA-2025:15021 Red Hat Product Security137 products fixed

    Red Hat Security Advisory: postgresql:13 security update

  • RHSA-2025:14899 Red Hat Product Security149 products fixed

    Red Hat Security Advisory: postgresql:16 security update

  • RHSA-2025:14862 Red Hat Product Security149 products fixed

    Red Hat Security Advisory: postgresql:15 security update

  • RHSA-2025:14827 Red Hat Product Security162 products fixed

    Red Hat Security Advisory: postgresql:16 security update

1 more advisory

Full record on NVD

Fix

  1. Update postgresql to 17.5.0 · 16.9.0 · 15.13.0 · 14.18.0 · 13.21.0
  2. 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
  3. No fix available, says the vendor Red Hat Product Security CVE-2025-4207 · 58 productsFix deferred
  4. 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
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2025-4207 actively exploited?

Active exploitation of CVE-2025-4207 has not been confirmed. Its EPSS score was 0.8% on 2026-11-11, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-4207?

CVE-2025-4207 has a CVSS v3 base score of 5.9 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.

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

Sources for this record