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

Mon, 17 Nov 2025 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 14 Nov 2025 09:30:00 +0000

Type Values Removed Values Added
First Time appeared Postgresql
Postgresql postgresql
Vendors & Products Postgresql
Postgresql postgresql

Thu, 13 Nov 2025 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 13 Nov 2025 13:15:00 +0000

Type Values Removed Values Added
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.
Title PostgreSQL libpq undersizes allocations, via integer wraparound
Weaknesses CWE-190
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: PostgreSQL

Published: 2025-11-13T13:00:12.911Z

Updated: 2025-11-13T13:59:33.436Z

Reserved: 2025-11-06T17:22:32.130Z

Link: CVE-2025-12818

cve-icon Vulnrichment

Updated: 2025-11-13T13:59:31.006Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-11-13T13:15:45.313

Modified: 2025-11-14T16:42:03.187

Link: CVE-2025-12818

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-11-13T13:00:12Z

Links: CVE-2025-12818 - Bugzilla