Skip to main content
← All vulnerabilities
CVE-2025-12818

PostgreSQL libpq undersizes allocations, via integer wraparound

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 18.1, 17.7, 16.11, 15.15, 14.20, and 1 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a PostgreSQL

    From 18 · fixed in 18.1; From 17 · fixed in 17.7; From 16 · fixed in 16.11; From 15 · fixed in 15.15; From 14 · fixed in 14.20; fixed in 13.23

References 1

postgresql.org