CVE-2026-14676 PUBLISHED

PostgreSQL pg_stat_statements heap buffer overflow executes arbitrary code

Assigner: PostgreSQL
Reserved: 03.07.2026 Published: 13.08.2026 Updated: 13.08.2026

Heap buffer overflow in PostgreSQL pg_stat_statements allows the query author to execute arbitrary code as the operating system user running the database, via crafted queries containing array constants. Within major version 18, minor versions before PostgreSQL 18.5 are affected. Versions before PostgreSQL 18 are unaffected.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 8.8

Product Status

Vendor n/a
Product PostgreSQL
Versions Default: unaffected
  • affected from 18 to 18.5 (excl.)

Affected Configurations

pg_stat_statements is enabled

Credits

  • The PostgreSQL project thanks Sajeeb Lohani (with TrendAI Zero Day Initiative), Yuelin Wang, and David Korczynski (Claude and Ada Logics) for reporting this problem.

References

Problem Types

  • Heap-based Buffer Overflow CWE