CVE-2025-12818 Details
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.
A vulnerability exists in multiple functions of the PostgreSQL libpq client library due to an integer wraparound issue. This flaw allows an application input provider or network peer to manipulate data in a way that causes libpq to allocate memory incorrectly, undersizing the allocation and leading to an out-of-bounds write of several hundred megabytes. The consequence of this vulnerability is a segmentation fault in the application using libpq. Affected versions include those prior to PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 13, 2025CISA-ADP
Assessed Nov 13, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.postgresql.org/support/security/CVE-2025-12818/ | PostgreSQL | AdvisoryBroken LinkVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | PostgreSQL |
Affected Products
| Product | Versions |
|---|---|
| PostgreSQL libpq | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | PostgreSQL |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 13, 2025 | New CVE Received | PostgreSQL |
Volerion