PostgreSQL pg_dump heap buffer overflow executes arbitrary code (CVE-2026-19385)
A heap buffer overflow vulnerability exists in PostgreSQL's pg_dump utility when processing long function transform lists. This flaw allows an object creator to execute arbitrary code with the privileges of the operating system user running pg_dump. The issue affects multiple PostgreSQL versions prior to 18.6, 17.11, 16.15, 15.19, and 14.24. A patch is available to address this vulnerability.
AI Analysis
Technical Summary
CVE-2026-19385 is a heap buffer overflow vulnerability in the PostgreSQL pg_dump tool related to handling long function transform lists. An attacker who can create objects in the database can exploit this flaw to execute arbitrary code as the OS user running pg_dump. The vulnerability affects PostgreSQL versions before 14.24, 15.19, 16.15, 17.11, and 18.6. The issue is classified under CWE-122 (Heap-based Buffer Overflow). A patch has been released to fix this vulnerability.
Potential Impact
Successful exploitation allows arbitrary code execution with the privileges of the operating system user running pg_dump. This can lead to full compromise of the system context in which pg_dump is executed. The vulnerability is considered high severity due to the potential for code execution.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade PostgreSQL to versions 14.24, 15.19, 16.15, 17.11, or 18.6 or later to remediate the issue. No additional mitigations are specified beyond applying the official fix.
PostgreSQL pg_dump heap buffer overflow executes arbitrary code (CVE-2026-19385)
Description
A heap buffer overflow vulnerability exists in PostgreSQL's pg_dump utility when processing long function transform lists. This flaw allows an object creator to execute arbitrary code with the privileges of the operating system user running pg_dump. The issue affects multiple PostgreSQL versions prior to 18.6, 17.11, 16.15, 15.19, and 14.24. 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-19385 is a heap buffer overflow vulnerability in the PostgreSQL pg_dump tool related to handling long function transform lists. An attacker who can create objects in the database can exploit this flaw to execute arbitrary code as the OS user running pg_dump. The vulnerability affects PostgreSQL versions before 14.24, 15.19, 16.15, 17.11, and 18.6. The issue is classified under CWE-122 (Heap-based Buffer Overflow). A patch has been released to fix this vulnerability.
Potential Impact
Successful exploitation allows arbitrary code execution with the privileges of the operating system user running pg_dump. This can lead to full compromise of the system context in which pg_dump is executed. The vulnerability is considered high severity due to the potential for code execution.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade PostgreSQL to versions 14.24, 15.19, 16.15, 17.11, or 18.6 or later to remediate the issue. No additional mitigations are specified beyond applying the official fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-4g6h-pg6m-qwgx
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-19385"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7e0366bf8831d5398f867d
Added to database: 08/13/2026, 17:48:22 UTC
Last enriched: 09/08/2026, 15:14:02 UTC
Last updated: 09/28/2026, 13:47:42 UTC
Views: 62
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.