CVE-2025-12818: PostgreSQL libpq undersizes allocations, via integer wraparound

Published Nov 13, 2025
·
Updated

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.

Other sources

PostgreSQL libpq undersizes allocations, via integer wraparound

Microsoft

Affected Software

10 affected componentsFixes available
PostgreSQL libpq<18.1
PostgreSQL libpq<17.7
PostgreSQL libpq<16.11
PostgreSQL libpq<15.15
PostgreSQL libpq<14.20
PostgreSQL libpq<13.23
Microsoft cbl2 postgresql 14.19-1
Microsoft azl3 postgresql 16.10-1
Microsoft azl3 rust 1.90.0-3
Microsoft azl3 rust 1.90.0-4

Event History

Nov 13, 2025
CVE Published
via MITRE·01:00 PM
Data Sourced
via MITRE·01:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·02:01 PM
DescriptionSeverityAffected Software
Nov 14, 2025
Data Sourced
via Microsoft·02:01 PM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·02:01 PM
Affected Software
Updated
via Microsoft·10:01 PM
Affected Software
Updated
via Microsoft·10:01 PM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-12818?

CVE-2025-12818 is categorized as a high severity vulnerability due to its potential to cause segmentation faults and exploit memory management issues.

2

How do I fix CVE-2025-12818?

To fix CVE-2025-12818, upgrade your PostgreSQL libpq library to versions 18.2, 17.8, 16.12, 15.16, 14.21, or 13.24 or later.

3

What is affected by CVE-2025-12818?

The vulnerability affects multiple versions of the PostgreSQL libpq client library prior to the patched versions.

4

What type of vulnerability is CVE-2025-12818?

CVE-2025-12818 is an integer wraparound vulnerability that can lead to out-of-bounds memory allocation.

5

What impact does CVE-2025-12818 have on applications?

CVE-2025-12818 can cause applications using the libpq library to crash due to segmentation faults from improper memory allocation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203