↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

CVE-2025-12818

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.

Version Information

Affected branchIntroducedFixed InFix Published
13—13.232025-11-13
14—14.202025-11-13
15—15.152025-11-13
16—16.112025-11-13
17—17.72025-11-13
18—18.12025-11-13

CVSS 3.0

Overall Score5.9
Componentcore server
VectorAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

First published: 2025-11-13

Historical source observations

These dated records preserve the original source claims separately from the reviewed fix list.

center · 2026-10-03 12:08:35.169032+08

  • PostgreSQL 18 · Original minor coordinate: 1
  • PostgreSQL 17 · Original minor coordinate: 7
  • PostgreSQL 16 · Original minor coordinate: 11
  • PostgreSQL 15 · Original minor coordinate: 15
  • PostgreSQL 14 · Original minor coordinate: 20
  • PostgreSQL 13 · Original minor coordinate: 23

pgweb · 2026-10-03 12:08:55.967155+08

  • PostgreSQL 18 · Original minor coordinate: 1
  • PostgreSQL 17 · Original minor coordinate: 7
  • PostgreSQL 16 · Original minor coordinate: 11
  • PostgreSQL 15 · Original minor coordinate: 15
  • PostgreSQL 14 · Original minor coordinate: 20
  • PostgreSQL 13 · Original minor coordinate: 23

Original security advisory · JSON · All advisories