ZDI-26-974: PostgreSQL pg_stat_statements Extension Heap-based Buffer Overflow Remote Code Execution Vulnerability
Summary
A remote code execution vulnerability has been identified in PostgreSQL within the pg_stat_statements extension. Assigned CVE-2026-14676, it carries a CVSS score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). Authentication is required to exploit this vulnerability.
Affected Products
- PostgreSQL (
pg_stat_statementsextension)
Technical Details
The specific flaw exists within the processing of query normalizations. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code. Credit for discovering this issue goes to Sajeeb Lohani.
Impact
Allows remote authenticated attackers to execute arbitrary code within the context of the PostgreSQL service account.
Mitigation
- Update affected PostgreSQL installations by applying the fix provided by the vendor.
- Fix details can be reviewed at: https://github.com/postgres/postgres/commit/1e2795ddeafc66cd78d2c90a69dd820488639c7c
References
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.