Description
Heap buffer overflow in PostgreSQL to_char(timestamptz) allows the party choosing the timezone to execute arbitrary code as the operating system user running the database, via a long POSIX timezone abbreviation. 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

A heap buffer overflow occurs when PostgreSQL formats a timestamptz value using the to_char function and a user‑supplied timezone abbreviation. When the abbreviation is a long POSIX timezone identifier, the function writes beyond its allocated buffer and allows the entity selecting the timezone to execute arbitrary code as the operating system user running the database. This flaw directly compromises confidentiality, integrity, and availability of the affected system.

Affected Systems

All PostgreSQL community Edition releases lower than 18.6, 17.11, 16.15, 15.19, and 14.24 are vulnerable. Any installation of these versions on a production database is at risk.

Risk and Exploitability

The CVSS score of 8.8 classifies the flaw as high severity. The EPSS score is 0.00585, indicating a low probability of exploitation, yet the flaw provides unrestricted code execution on the database server. The vulnerability is not listed in the CISA KEV catalog, but its impact warrants urgent attention. Attackers must be able to control the timezone parameter—typically via a SET TIME ZONE command or a query that formats timestamptz values—making it a local or application‑based attack vector depending on the user’s privileges.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to at least 18.6, 17.11, 16.15, 15.19, or 14.24.
  • If an upgrade is not immediately feasible, revoke the ability of non‑admin roles to issue SET TIME ZONE statements and enforce that only trusted database users set time zones.
  • Validate or limit the length of any user‑supplied timezone strings before passing them to to_char, or configure the application to use only approved timezone identifiers.

Generated by OpenCVE AI on August 30, 2026 at 00:53 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 to_char(timestamptz) allows the party choosing the timezone to execute arbitrary code as the operating system user running the database, via a long POSIX timezone abbreviation. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected. Heap buffer overflow in PostgreSQL to_char(timestamptz) allows the party choosing the timezone to execute arbitrary code as the operating system user running the database, via a long POSIX timezone abbreviation. 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:30: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 to_char(timestamptz) allows the party choosing the timezone to execute arbitrary code as the operating system user running the database, via a long POSIX timezone abbreviation. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.
Title PostgreSQL to_char 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:15.483Z

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

Link: CVE-2026-14669

cve-icon Vulnrichment

Updated: 2026-08-13T15:35:21.720Z

cve-icon NVD

Status : Modified

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

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

Link: CVE-2026-14669

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow