PostgreSQL pg_stat_statements heap buffer overflow executes arbitrary code (CVE-2026-14676)
A heap buffer overflow vulnerability exists in PostgreSQL's pg_stat_statements module that allows a query author to execute arbitrary code as the operating system user running the database. This issue affects PostgreSQL major version 18, specifically versions from 18.0 up to but not including 18.5. Versions prior to 18.0 are not affected. A patch is available to address this vulnerability.
AI Analysis
Technical Summary
CVE-2026-14676 is a heap buffer overflow vulnerability in the pg_stat_statements extension of PostgreSQL. It allows an attacker who can author queries containing crafted array constants to execute arbitrary code with the privileges of the OS user running the database. The flaw affects PostgreSQL versions 18.0 through 18.4 inclusive. Versions before 18.0 are unaffected. The vulnerability is classified under CWE-122 (Heap-based Buffer Overflow). A fix has been released to mitigate this issue.
Potential Impact
Successful exploitation of this vulnerability enables an attacker with query authoring capabilities to execute arbitrary code on the host operating system with the same privileges as the PostgreSQL server process. This could lead to full system compromise depending on the privileges of the database user. There are no known exploits in the wild at this time.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade PostgreSQL to version 18.5 or later to remediate the issue. No additional mitigations are specified by the vendor advisory.
PostgreSQL pg_stat_statements heap buffer overflow executes arbitrary code (CVE-2026-14676)
Description
A heap buffer overflow vulnerability exists in PostgreSQL's pg_stat_statements module that allows a query author to execute arbitrary code as the operating system user running the database. This issue affects PostgreSQL major version 18, specifically versions from 18.0 up to but not including 18.5. Versions prior to 18.0 are not affected. A patch is available to address this vulnerability.
Affected software
pkg:deb/postgresql/postgresqlRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-14676 is a heap buffer overflow vulnerability in the pg_stat_statements extension of PostgreSQL. It allows an attacker who can author queries containing crafted array constants to execute arbitrary code with the privileges of the OS user running the database. The flaw affects PostgreSQL versions 18.0 through 18.4 inclusive. Versions before 18.0 are unaffected. The vulnerability is classified under CWE-122 (Heap-based Buffer Overflow). A fix has been released to mitigate this issue.
Potential Impact
Successful exploitation of this vulnerability enables an attacker with query authoring capabilities to execute arbitrary code on the host operating system with the same privileges as the PostgreSQL server process. This could lead to full system compromise depending on the privileges of the database user. There are no known exploits in the wild at this time.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade PostgreSQL to version 18.5 or later to remediate the issue. No additional mitigations are specified by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-8848-x36c-v99q
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-14676"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7e0367bf8831d5398f8758
Added to database: 08/13/2026, 17:48:23 UTC
Last enriched: 09/08/2026, 15:15:07 UTC
Last updated: 09/28/2026, 13:47:42 UTC
Views: 74
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.