CVE-2025-12818

PostgreSQL libpq undersizes allocations, via integer wraparound

MEDIUM 5.9

At a glance

Source
NVD
EPSS
EPSS 0.36 % · percentile 30 ()
State
PUBLISHED
Published
Updated
Assigner
PostgreSQL
NVD status
Deferred

Description

Integer wraparound in multiple PostgreSQL libpq client library functions allows an application input provider or network peer to cause libpq to undersize an allocation and write out-of-bounds by hundreds of megabytes. This results in a segmentation fault for the application using libpq. Versions before PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 are affected.

Weaknesses (CWE)

  • CWE-190 — Integer Overflow or Wraparound

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HPostgreSQL
CVSS 3.1MEDIUM 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HNVD · f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
PostgreSQLaffected 18 < 18.1 ; affected 17 < 17.7 ; affected 16 < 16.11 ; affected 15 < 15.15 ; affected 14 < 14.20 ; affected 0 < 13.23

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD