CVE-2025-12818

PostgreSQL libpq undersizes allocations, via integer wraparound

MEDIUM
5.9
CVSS Score
Published: November 13, 2025 at 01:00 PM UTC
Updated: October 19, 2026 at 01:10 PM UTC
1 product affected across 1 vendorPostgreSQL

Using PostgreSQL by N/A?

Get instant alerts when new vulnerabilities affect PostgreSQL - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.9
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

0 ≤ v < 13.2314 ≤ v < 14.2015 ≤ v < 15.1516 ≤ v < 16.1117 ≤ v < 17.718 ≤ v < 18.101415161718
Affected range stops below 13.23, so it looks safe — our inference, not a vendor statement
Affected range stops below 14.20, so it looks safe — our inference, not a vendor statement
Affected range stops below 15.15, so it looks safe — our inference, not a vendor statement
Affected range stops below 16.11, so it looks safe — our inference, not a vendor statement
Affected range stops below 17.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 18.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.9MEDIUMPostgreSQL
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-190

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card