Description
Integer wraparound in PostgreSQL tsvector and tsquery data type functions allows an unprivileged database user to cause the server to undersize an allocation and write out-of-bounds, via crafted large inputs. This may execute arbitrary code as the operating system user running the database. These types are typically sourced from application logic, not taken from the application's user. Hence, application users attacking the database, through the application as a conduit, are unlikely. CVE-2026-6473 had fixed similar problems. 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 an integer wraparound in PostgreSQL’s tsvector and tsquery functions that forces the database to allocate an undersized buffer. An unprivileged database user can feed large crafted inputs that trigger an out‑of‑bounds write, enabling arbitrary code execution as the operating system user that runs the database service. Since these functions are typically sourced from application logic rather than user inputs, application users attacking through the application as a conduit are unlikely. Similar vulnerabilities were fixed in CVE‑2026‑6473.

Affected Systems

PostgreSQL database servers are affected. All PostgreSQL releases prior to version 18.6, 17.11, 16.15, 15.19, and 14.24 contain the bug. These versions are typically accessed through application logic; however, any role that has permissions to execute tsvector or tsquery functions can trigger the issue.

Risk and Exploitability

The CVSS score of 8.8 indicates a high severity vulnerability. The EPSS score is below 1%, showing a very low probability of exploitation. The vulnerability is not listed in CISA KEV, indicating no known active exploitation. The likely attack vector involves an attacker with permissions to execute tsvector or tsquery functions who can supply crafted large inputs directly to the database, triggering the out‑of‑bounds write that can lead to arbitrary code execution as the operating system user that runs PostgreSQL. Because these functions are normally invoked from application logic, an attacker would need to obtain elevated database permissions or a compromised application, so direct attack by regular application users is unlikely.

Generated by OpenCVE AI on August 30, 2026 at 01:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to a release that contains the fix: 18.6 or later, 17.11 or later, 16.15 or later, 15.19 or later, or 14.24 or later.
  • Restrict use of the tsvector and tsquery functions to trusted database users and remove them from unprivileged role permissions.
  • After applying the upgrade or restrictions, restart the database service and monitor logs for anomalous activity or exploitation indicators.

Generated by OpenCVE AI on August 30, 2026 at 01:24 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 Integer wraparound in PostgreSQL tsvector and tsquery data type functions allows an unprivileged database user to cause the server to undersize an allocation and write out-of-bounds, via crafted large inputs. This may execute arbitrary code as the operating system user running the database. These types are typically sourced from application logic, not taken from the application's user. Hence, application users attacking the database, through the application as a conduit, are unlikely. 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 tsvector and tsquery data type functions allows an unprivileged database user to cause the server to undersize an allocation and write out-of-bounds, via crafted large inputs. This may execute arbitrary code as the operating system user running the database. These types are typically sourced from application logic, not taken from the application's user. Hence, application users attacking the database, through the application as a conduit, are unlikely. CVE-2026-6473 had fixed similar problems. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.

Wed, 19 Aug 2026 15:00: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 Integer wraparound in PostgreSQL tsvector and tsquery data type functions allows an unprivileged database user to cause the server to undersize an allocation and write out-of-bounds, via crafted large inputs. This may execute arbitrary code as the operating system user running the database. These types are typically sourced from application logic, not taken from the application's user. Hence, application users attacking the database, through the application as a conduit, are unlikely. 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 tsvector and tsquery 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-29T23:07:10.439Z

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

Link: CVE-2026-14662

cve-icon Vulnrichment

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

cve-icon NVD

Status : Modified

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

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

Link: CVE-2026-14662

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-30T01:30:17Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound