Description
Heap buffer overflow in PostgreSQL pg_dump of long function transform lists allows an object creator to execute arbitrary code as the operating system user running pg_dump, via a crafted transform list. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.
Published: 2026-08-13
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a heap buffer overflow in PostgreSQL's pg_dump utility triggered by processing excessively long function transform lists. An attacker who can create or modify database objects can embed a crafted transform list that overflows a heap buffer, allowing them to execute arbitrary code as the operating system user running the pg_dump process. This flaw therefore enables compromise of the host system with the same privileges as the pg_dump user.

Affected Systems

All PostgreSQL servers using version 18.5 or earlier, 17.10 or earlier, 16.14 or earlier, 15.18 or earlier, or 14.23 or earlier are affected. The flaw exists in the bundled pg_dump tool, so any system where that utility is available and executed by a user with sufficient OS permissions can be exploited. Versions 18.6, 17.11, 16.15, 15.19, and 14.24 and later contain the patch.

Risk and Exploitability

The overall CVSS score of 8.8 indicates a high severity. EPSS is less than 1%, suggesting a relatively low observed exploitation probability, and the vulnerability is not part of CISA’s KEV catalog. However, the attack vector is local: the exploit requires the attacker to run pg_dump from an account that has the same operating system privileges as the target. Because any database role with CREATE FUNCTION privilege can inject a malicious transform list, the reach of the flaw can be significant in environments where such privileges are granted broadly. The likely attack vector is local exploitation via pg_dump executed by the OS user—this inference is drawn from the description that execution occurs as the OS user running pg_dump, not from network input, and is not directly stated in the data. Organizations should treat this as a near-term high risk if pg_dump is run with elevated privileges and function creation rights are widely distributed.

Generated by OpenCVE AI on August 30, 2026 at 01:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to version 18.6 or later, 17.11 or later, 16.15 or later, 15.19 or later, or 14.24 or later to apply the official patch that fixes the buffer overflow.
  • If an upgrade is not immediately possible, restrict the CREATE FUNCTION privilege to trusted roles only and avoid granting function creation rights to untrusted users.
  • Ensure that the pg_dump utility is executed under the least‑privileged operating system account by configuring process users or using sudo with restricted permissions, thereby limiting the impact if exploitation occurs.

Generated by OpenCVE AI on August 30, 2026 at 01:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4740-1 postgresql-15 security update
Debian DSA Debian DSA DSA-6438-1 postgresql-17 security update
Ubuntu USN Ubuntu USN USN-8653-1 PostgreSQL vulnerabilities
History

Sat, 29 Aug 2026 23:15:00 +0000

Type Values Removed Values Added
Description Heap buffer overflow in PostgreSQL pg_dump of long function transform lists allows an object creator to execute arbitrary code as the operating system user running pg_dump, via a crafted transform list. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected. Heap buffer overflow in PostgreSQL pg_dump of long function transform lists allows an object creator to execute arbitrary code as the operating system user running pg_dump, via a crafted transform list. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.

Wed, 19 Aug 2026 15:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*

Thu, 13 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 13 Aug 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Postgresql
Postgresql postgresql
Vendors & Products Postgresql
Postgresql postgresql

Thu, 13 Aug 2026 13:15:00 +0000

Type Values Removed Values Added
Description Heap buffer overflow in PostgreSQL pg_dump of long function transform lists allows an object creator to execute arbitrary code as the operating system user running pg_dump, via a crafted transform list. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.
Title PostgreSQL pg_dump heap buffer overflow executes arbitrary code
Weaknesses CWE-122
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Postgresql Postgresql
cve-icon MITRE

Status: PUBLISHED

Assigner: PostgreSQL

Published:

Updated: 2026-08-29T23:07:33.416Z

Reserved: 2026-08-09T18:54:07.415Z

Link: CVE-2026-19385

cve-icon Vulnrichment

Updated: 2026-08-13T15:39:27.252Z

cve-icon NVD

Status : Modified

Published: 2026-08-13T13:17:48.740

Modified: 2026-08-29T23:17:21.280

Link: CVE-2026-19385

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-30T01:15:05Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow