Description
Heap buffer overflow in PostgreSQL regexp allows the query author to execute arbitrary code as the operating system user running the database, via text that would not pass encoding validation. This shares heritage with CVE-2026-2006, but this case involved unanticipated data growth when round-tripped through pg_wchar. 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 flaw is a heap buffer overflow in PostgreSQL’s regular‑expression engine. When a query contains text that does not pass normal encoding validation, data can grow unexpectedly during conversion through pg_wchar, allowing the query author to execute arbitrary code with the privileges of the database process, which runs as the operating system user. This is also related to CVE‑2026‑2006, but the issue here is unanticipated data growth during round‑tripping through pg_wchar. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are vulnerable.

Affected Systems

PostgreSQL database instances running versions before 18.6, 17.11, 16.15, 15.19, and 14.24 are affected. The vulnerability is specific to the standard PostgreSQL distribution.

Risk and Exploitability

The CVSS score of 8.8 indicates high severity for remote code execution, and the EPSS score of 0.00436 indicates a very low but non‑zero exploitation probability. The vulnerability is not listed in CISA’s KEV catalog. The attack can be carried out by an attacker who can inject a crafted query through the database client, whether from a local or remote source, and trigger the overflow during regex processing.

Generated by OpenCVE AI on August 30, 2026 at 00:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest PostgreSQL upgrade – 18.6 or later, 17.11 or later, 16.15 or later, 15.19 or later, or 14.24 or later – for all affected installations.
  • Restrict or disable the use of regexp functions for untrusted database users or remove them from the schema if they are unnecessary.
  • Enforce least‑privilege policies for database roles and monitor query logs for abnormal regex usage that could indicate exploitation attempts.

Generated by OpenCVE AI on August 30, 2026 at 00:54 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 regexp allows the query author to execute arbitrary code as the operating system user running the database, via text that would not pass encoding validation. This shares heritage with CVE-2026-2006, but this case involved unanticipated data growth when round-tripped through pg_wchar. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected. Heap buffer overflow in PostgreSQL regexp allows the query author to execute arbitrary code as the operating system user running the database, via text that would not pass encoding validation. This shares heritage with CVE-2026-2006, but this case involved unanticipated data growth when round-tripped through pg_wchar. 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:00: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 regexp allows the query author to execute arbitrary code as the operating system user running the database, via text that would not pass encoding validation. This shares heritage with CVE-2026-2006, but this case involved unanticipated data growth when round-tripped through pg_wchar. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.
Title PostgreSQL regexp 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:12.593Z

Reserved: 2026-07-03T20:28:09.038Z

Link: CVE-2026-14664

cve-icon Vulnrichment

Updated: 2026-08-13T15:34:35.312Z

cve-icon NVD

Status : Modified

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

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

Link: CVE-2026-14664

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow