CVE-2026-14677

PostgreSQL 32-bit pltcl and plperl undersize allocations, via integer wraparound

Published Aug 13, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.6, 17.11, 16.15, 15.19, and 14.24 are affected.

Analysis

AI-generated

Technical impact

Integer wraparound in PostgreSQL 32‑bit builds of the pltcl and plperl procedural languages allows an object creator to cause a negative allocation size during function body parsing, resulting in an out‑of‑bounds write. This enables the attacker to overwrite memory and execute arbitrary code as the operating system user that owns the database server, a flaw rooted in unchecked integer arithmetic (CWE‑190). Similar issues were addressed by CVE‑2026‑6473. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.

Affected Systems

PostgreSQL 32‑bit installations that include the pltcl and plperl extensions are vulnerable. Versions prior to 18.6, 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. The EPSS score of less than 1% signals a very low probability of exploitation. 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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to a version that contains the 18.6, 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 30, 2026 at 00:51 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
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. 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.6, 17.11, 16.15, 15.19, and 14.24 are affected.
Type Values Removed Values Added
CPEs cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Postgresql
Postgresql postgresql
Vendors & Products Postgresql
Postgresql postgresql
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'}

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Aug 29, 2026, 11:07 PM
Reserved
Jul 3, 2026, 8:28 PM
Status
Modified
Published
Aug 13, 2026, 1:17 PM
Modified
Aug 29, 2026, 11:17 PM