Skip to main content
EPSS 0.4%top 65%

PostgreSQL pg_stat_statements heap buffer overflow executes arbitrary code (CVE-2026-14676)

0
High
Published: 08/19/2026 (08/19/2026, 08:52:40 UTC)
Source: GCVE Database
Product: postgresql

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

Postgresqlmore threats →ai
postgresql/postgresql
pkg:deb/postgresql/postgresql
Affected versions
<18.5 >=18.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 15:15:07 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses