Skip to main content

PostgreSQL CVE-2026-14679

| EUVDEUVD-2026-57843 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-08-13 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 GHSA-mpj9-cx22-xp87
8.2
CVSS 3.1 · Vendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to PostgreSQL with CREATE privilege
  2. Delivery
    Define function or procedure with crafted OUT parameter count
  3. Exploit
    Backend invokes argument name matching logic
  4. Execution
    Stack buffer overflow writes 0x0/0x1 bytes to adjacent stack memory
  5. Impact
    Backend process crashes (DoS) or low-integrity stack corruption occurs

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to hold CREATE privilege within at least one PostgreSQL database, enabling them to define functions or stored procedures with manipulated OUT parameter counts. This is an authenticated, privilege-gated condition - anonymous or unprivileged database connections cannot trigger the vulnerable code path. The overflow is further constrained to writing only 0x0 (null) and 0x1 bytes, which limits the achievable impact to process crashes and low-level stack corruption rather than arbitrary memory writes or code execution. The vulnerability is present in default PostgreSQL installations but is NOT exploitable by unauthenticated network attackers despite the NVD CVSS PR:N rating - the 'object creator' prerequisite confirmed in the description represents a meaningful limiting factor. Environments where CREATE privilege is restricted to DBAs or application deployment pipelines have a significantly reduced attack surface.

Impact

The provided CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H, score 8.2) contains a notable conflict: PR:N implies no authentication or privilege is required, yet the description explicitly names 'an object creator' as the threat actor - creating functions or procedures in PostgreSQL requires at minimum CREATE privilege on a database, corresponding to PR:L. This mismatch likely inflates the base score by approximately 0.5-0.8 points. No EPSS score was provided, and the CVE has no CISA KEV listing and no known POC, placing exploitation status at unconfirmed. The constrained write primitive (0x0/0x1 only) substantially reduces the probability of achieving code execution; the dominant realistic impact is a backend process crash (DoS) for the session executing the malformed object definition. Real-world priority is moderate-to-high for organizations running untrusted users with CREATE privileges; lower for environments where object creation is tightly controlled. CVSS indicates network vector but the 'object creator' prerequisite implies authenticated database access - defenders should verify the actual privilege boundary with the PostgreSQL security team before relying on the NVD PR:N rating.

Exploit ScenarioDerived

An authenticated PostgreSQL user who holds CREATE privilege on a database defines a function or procedure with a specially crafted OUT parameter count designed to overflow the argument name matching buffer on the backend's stack. The backend writes controlled 0x0 or 0x1 bytes into adjacent stack memory, corrupting internal state and causing the server process handling that session to crash, resulting in a denial of service for that connection. No public POC exists at time of analysis; the constrained write primitive makes escalation beyond availability loss unlikely without additional primitives.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 13, 2026

Stack buffer overflow in PostgreSQL's argument name matching logic allows a database object creator to crash backend processes and achieve low integrity impact by supplying a crafted OUT parameter count. Affected are all active major branches: versions 14.x before 14.24, 15.x before 15.19, 16.x before 16.15, 17.x before 17.11, and 18.x before 18.5. No public exploit or CISA KEV listing has been identified at time of analysis; however, the constrained-write nature of the overflow (limited to 0x0 and 0x1 bytes) caps realistic impact at availability loss rather than arbitrary code execution, making this a high-priority patch rather than an emergency incident response trigger.

RemediationAI

The primary fix is upgrading to the patched releases: PostgreSQL 14.24, 15.19, 16.15, 17.11, or 18.5, as documented in the vendor advisory at https://www.postgresql.org/support/security/CVE-2026-14679/. These are drop-in minor-version upgrades for each supported branch. If immediate upgrading is not operationally feasible, the most effective compensating control is revoking CREATE privilege from any untrusted or externally-controlled database roles: execute REVOKE CREATE ON DATABASE <dbname> FROM <role> for each affected database. This removes the prerequisite for exploitation with minimal impact on read-only or pre-provisioned workloads, but will break workflows where dynamic object creation by those roles is expected. Restricting which roles can define functions (via search_path hardening and role separation) provides additional defense-in-depth. Generic network-layer controls are insufficient since exploitation occurs after authenticated database connection.

Affected VersionsENISA

PostgreSQL 18 <18.5
PostgreSQL 0 <14.24
PostgreSQL 16 <16.15
PostgreSQL 15 <15.19
PostgreSQL 17 <17.11

Affected Packages

euvd postgresql fix: 14.24, 15.19, 16.15, 17.11, 18.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-121 (Stack-based Buffer Overflow) is the root cause, located in PostgreSQL's internal function argument name matching code path. The vulnerability is triggered during resolution of function or procedure definitions when the count of OUT parameters is manipulated to cause the name-matching logic to write beyond the bounds of a stack-allocated buffer. Critically, the overflow is constrained: only 0x0 (null) and 0x1 (boolean-true) bytes can be written into adjacent stack memory, which eliminates classic return-address overwrite scenarios but can still corrupt stack canaries, frame pointers, or adjacent local variables - outcomes sufficient to crash the backend process. All five actively supported major PostgreSQL branches (14 through 18) contain the vulnerable code path, implying the defect is present in shared function-handling infrastructure that has not been refactored across major versions.

Know when PostgreSQL gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
vuln.today AI 7.1 HIGH

Object creator role requires CREATE privilege (PR:L not PR:N); AV:N retained as PostgreSQL clients connect remotely; constrained write rules out confidentiality impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.1 HIGH

Primary rating from Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007).

CVSS VectorVendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High

Lifecycle Timeline

2
Patch available
Aug 13, 2026 - 14:02 EUVD
CVE Published
Aug 13, 2026 - 13:17 cve.org
HIGH 8.2

DescriptionCVE.org

Stack buffer overflow in PostgreSQL argument name matching allows an object creator to achieve unknown impacts via OUT parameter count. The attack can write only 0x0 and 0x1 bytes. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.

Executive ViewAI

Why It Matters

PostgreSQL versions 14-18 (specific versions before 14.24, 15.19, 16.15, 17.11, and 18.5) contain a stack buffer overflow in argument name matching that allows database object creators to crash backend processes, directly impacting availability. Organizations running affected versions face potential service disruption from malicious database definitions crafted by users with object creation privileges.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) revoke CREATE FUNCTION and CREATE AGGREGATE permissions from non-administrative roles; (2) deploy connection pooling (e.g., pgBouncer) with automatic backend restart on termination; (3) enable detailed PostgreSQL logging to detect repeated process crashes; (4) ensure automated failover is active in production HA environments; (5) document and test recovery procedures for cascading backend failures.

Threat Intelligence Overview

EPSS Score
0.4%
Top 67% exploitable
Prevalence
High
major open-source RDBMS widely deployed in enterprise and cloud
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy