CVE-2025-12818
JSON

5.9medium

PostgreSQL libpq undersizes allocations, via integer wraparound

Severity
5.9medium CVSS:3.1 by PostgreSQL
Exploit likelihood
0.36% (higher than 32% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
PostgreSQL
Also known as
BIT-POSTGRESQL-2025-12818

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

Product or packageVersionsReported by
PostgreSQLfrom 18 before 18.1, from 17 before 17.7, from 16 before 16.11, from 15 before 15.15, from 14 before 14.20, before 13.23CVE List
postgresql (Bitnami)before 13.23.0, from 14.0.0 before 14.20.0, from 15.0.0 before 15.15.0, from 16.0.0 before 16.11.0, from 17.0.0 before 17.7.0, from 18.0.0 before 18.1.0Bitnami Vulnerability Database

All scores

PostgreSQL5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasemedium rating

Classification

CWE-190

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

El desbordamiento de enteros en múltiples funciones de la biblioteca cliente libpq de PostgreSQL permite que un proveedor de entrada de aplicación o un par de red provoque que libpq asigne un tamaño insuficiente y escriba fuera de los límites por cientos de megabytes. Esto resulta en un fallo de segmentación para la aplicación que utiliza libpq. Las versiones anteriores a PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20 y 13.23 están afectadas.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-12818 changed 2025-11-13CVE Terms of Use
NVDCVE-2025-12818 changed 2026-10-19Public domain
Bitnami Vulnerability DatabaseBIT-POSTGRESQL-2025-12818 changed 2025-11-21Apache-2.0