CVE-2025-12818
PostgreSQL vulnerability analysis and mitigation

Overview

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 vulnerability affects versions before PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23. The issue was discovered by Aleksey Solovev from Positive Technologies and was disclosed on November 13, 2025 (PostgreSQL Security).

Technical details

The vulnerability is characterized by an integer wraparound condition in allocation-size calculations within the libpq client library. The CVSS 3.1 base score is 5.9 (Medium), with the following vector: AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H. This indicates that the vulnerability is network-accessible, requires high attack complexity, needs no privileges or user interaction, has unchanged scope, and only impacts availability (PostgreSQL Security).

Impact

When exploited, this vulnerability results in a segmentation fault for applications using libpq, causing potential service disruption. The impact is primarily focused on availability, with no direct effect on confidentiality or integrity of the system (PostgreSQL Security).

Mitigation and workarounds

The PostgreSQL project has released fixed versions: 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23. Users are strongly advised to upgrade to these patched versions to mitigate the vulnerability (PostgreSQL Security).

Additional resources


SourceThis report was generated using AI

Related PostgreSQL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-8715HIGH8.8
  • PostgreSQLPostgreSQL
  • postgresql:15::postgresql-static
NoYesAug 14, 2025
CVE-2025-8714HIGH8.8
  • PostgreSQLPostgreSQL
  • postgresql16-private-libs
NoYesAug 14, 2025
CVE-2025-12818MEDIUM5.9
  • PostgreSQLPostgreSQL
  • postgresql17-debuginfo
NoYesNov 13, 2025
CVE-2025-12817LOW3.1
  • PostgreSQLPostgreSQL
  • postgresql16-docs-debuginfo
NoYesNov 13, 2025
CVE-2025-8713LOW3.1
  • PostgreSQLPostgreSQL
  • postgresql16-upgrade-debuginfo
NoYesAug 14, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management