CVE-2025-12818
November 13, 2025
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.
Affected Packages
https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_16_0 <REL_16_11Fix Suggestion:
Update to version REL_16_11https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_17_0 <REL_17_7Fix Suggestion:
Update to version REL_17_7https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_14_0 <REL_14_20Fix Suggestion:
Update to version REL_14_20Related ResourcesĀ (1)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Integer Overflow or Wraparound
EPSS
Base Score:
0.10