CVE-2026-14664
Received Received - Intake

Heap Buffer Overflow in PostgreSQL

Vulnerability report for CVE-2026-14664, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-13

Last updated on: 2026-08-13

Assigner: PostgreSQL

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-13
Last Modified
2026-08-13
Generated
2026-08-13
AI Q&A
2026-08-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
postgresql postgresql to 14.24 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-122 A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a heap buffer overflow in PostgreSQL's regexp functionality. It allows a query author to execute arbitrary code with the privileges of the OS user running the database by providing text that bypasses encoding validation. The issue occurs due to unanticipated data growth when text is processed through pg_wchar.

Detection Guidance

To detect this vulnerability, check the PostgreSQL version running on your system. Affected versions are before 18.5, 17.11, 16.15, 15.19, and 14.24. Use the command: psql --version. If your version is below these thresholds, the system is vulnerable.

Impact Analysis

An attacker with database query access could exploit this to run arbitrary code on the system, potentially leading to data theft, system compromise, or denial of service. The high CVSS score (8.8) indicates significant risk.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating GDPR's integrity/confidentiality principles and HIPAA's security requirements. Organizations using affected PostgreSQL versions may face compliance violations.

Mitigation Strategies

Immediately upgrade PostgreSQL to a patched version: 18.5, 17.11, 16.15, 15.19, or 14.24. Download updates from the official PostgreSQL website or your distribution's package manager. Restart the PostgreSQL service after upgrading.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-14664. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart