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.
Published: 2026-08-13
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a heap buffer overflow in the PostgreSQL pg_dump utility that processes long function transform lists. An attacker who can create or modify a function can supply a crafted transform list that overflows a buffer, allowing the attacker to execute arbitrary code with the privileges of the operating system user running pg_dump. This results in remote code execution on the host system and gives the attacker full control over the system if pg_dump is run as a privileged user.

Affected Systems

All versions of PostgreSQL before 18.5, 17.11, 16.15, 15.19, and 14.24 are affected. Under the affected releases, the pg_dump command shipped with PostgreSQL can be abused. This includes PostgreSQL databases of any size running on Linux or other operating systems, as the exploitation occurs in user‑space code.

Risk and Exploitability

With an overall CVSS score of 8.8, the weakness is considered high severity. The EPSS score is not publicly available, and the vulnerability is not yet listed in CISA’s KEV catalog. However, the vulnerability can be exercised by any database role that has CREATE FUNCTION privilege, meaning a substantial number of users in typical deployments may have the necessary access. The exploit requires the attacker to craft a transform list and run pg_dump from an account using the same operating system user. Given the local nature of the attack vector and the lack of network exposure, organizations should treat this as a near‑term high risk for systems where trusted users have function creation rights and pg_dump is run as a privileged OS user.

Generated by OpenCVE AI on August 13, 2026 at 15:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to version 18.5 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 13, 2026 at 15:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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-13T15:39:31.757Z

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 : Received

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

Modified: 2026-08-13T16:17:59.323

Link: CVE-2026-19385

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T15:15:13Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow