CVE-2025-12818

Public on 2025-11-13
Modified on 2025-11-14
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.
Severity
Medium severity
Medium
See what this means
CVSS v3 Base Score
5.9
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Postgresql14 Extra libpq 2025-12-08 ALAS2POSTGRESQL14-2025-020 Fixed
Amazon Linux 2023 libpq 2025-12-08 ALAS2023-2025-1299 Fixed
Amazon Linux 2 - Core postgresql Pending Fix
Amazon Linux 2 - Postgresql14 Extra postgresql 2025-12-08 ALAS2POSTGRESQL14-2025-021 Fixed
Amazon Linux 2023 postgresql15 2025-12-08 ALAS2023-2025-1313 Fixed
Amazon Linux 2023 postgresql16 2025-12-08 ALAS2023-2025-1314 Fixed
Amazon Linux 2023 postgresql17 2025-12-08 ALAS2023-2025-1300 Fixed

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H