Description
Integer wraparound in PostgreSQL 32-bit builds of pltcl and plperl allows an object creator to cause the server to undersize an allocation and write out-of-bounds via crafted function bodies. This may execute arbitrary code as the operating system user running the database. CVE-2026-6473 had fixed similar problems. 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

Integer wraparound in 32‑bit builds of the pltcl and plperl procedural languages in PostgreSQL allows an object creator to cause a negative allocation size during function body parsing, which leads to an out‑of‑bounds write. The attacker can overwrite memory and execute arbitrary code as the operating system user that owns the database server. The flaw stems from unchecked integer arithmetic (CWE‑190).

Affected Systems

PostgreSQL 32‑bit installations that include the pltcl and plperl extensions are vulnerable. Versions prior to 18.5, 17.11, 16.15, 15.19, and 14.24 are affected. The issue does not exist in newer releases or in 64‑bit builds.

Risk and Exploitability

The CVSS score of 8.8 classifies this vulnerability as high severity. EPSS data is not available, but the missing database level privilege escalation pathway indicates potential for exploitation if the attacker can create functions. It is not listed in CISA’s KEV catalog, so no known active exploits are reported. The likely attack vector is via crafted function bodies submitted by a user with privileges to create or alter extensions, after which malicious code would run with database server privileges.

Generated by OpenCVE AI on August 13, 2026 at 14:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to a version that contains the 18.5, 17.11, 16.15, 15.19, or 14.24 releases and later, which patch the integer wraparound flaw.
  • Remove or disable the pltcl and plperl extensions from the database or server when they are not required, to eliminate the attack surface.
  • If removal is not possible, restrict CREATE EXTENSION privileges for these languages to the most trusted administrators and audit their usage for abnormal activity.

Generated by OpenCVE AI on August 13, 2026 at 14:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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 Integer wraparound in PostgreSQL 32-bit builds of pltcl and plperl allows an object creator to cause the server to undersize an allocation and write out-of-bounds via crafted function bodies. This may execute arbitrary code as the operating system user running the database. CVE-2026-6473 had fixed similar problems. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.
Title PostgreSQL 32-bit pltcl and plperl undersize allocations, via integer wraparound
Weaknesses CWE-190
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:36:39.482Z

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

Link: CVE-2026-14677

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

Modified: 2026-08-13T13:17:45.027

Link: CVE-2026-14677

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T14:45:03Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound