CVE-2025-12818Integer Overflow or Wraparound in Postgresql-13

Severity
5.9MEDIUMNVD
OSV3.1
EPSS
0.0%
top 87.72%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedNov 13
Latest updateDec 3

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.

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 2.2 | Impact: 3.6

Affected Packages10 packages

debiandebian/postgresql-13< postgresql-13 13.23-0+deb11u1 (bullseye)
debiandebian/postgresql-15< postgresql-13 13.23-0+deb11u1 (bullseye)
debiandebian/postgresql-17< postgresql-13 13.23-0+deb11u1 (bullseye)
debiandebian/postgresql-18< postgresql-13 13.23-0+deb11u1 (bullseye)

🔴Vulnerability Details

3
OSV
postgresql-14, postgresql-16, postgresql-17 vulnerabilities2025-12-03
GHSA
GHSA-pr6x-gg24-6wfp: Integer wraparound in multiple PostgreSQL libpq client library functions allows an application input provider or network peer to cause libpq to unders2025-11-13
OSV
CVE-2025-12818: Integer wraparound in multiple PostgreSQL libpq client library functions allows an application input provider or network peer to cause libpq to unders2025-11-13

📋Vendor Advisories

4
Ubuntu
PostgreSQL vulnerabilities2025-12-03
Red Hat
postgresql: libpq: libpq undersizes allocations, via integer wraparound2025-11-13
Microsoft
PostgreSQL libpq undersizes allocations, via integer wraparound2025-11-11
Debian
CVE-2025-12818: postgresql-13 - Integer wraparound in multiple PostgreSQL libpq client library functions allows ...2025