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.
Published: 2026-08-13
Score: 8.8 High
EPSS: n/a
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 abnormally large inputs that trigger an out-of-bounds write, enabling arbitrary code execution as the operating system user that runs the database service. The weakness is a classic integer over‑wrap bug (CWE-190). Similar vulnerabilities were fixed in CVE-2026-6473.

Affected Systems

PostgreSQL database servers are affected. All PostgreSQL releases prior to version 18.5, 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 signifies a high severity vulnerability. EPSS is not available, making it unclear how frequently attackers exploit this flaw. The vulnerability is not listed in the CISA KEV catalog, indicating no publicly known active exploitation. The attack vector involves an attacker who can submit crafted large inputs either directly to the database functions or indirectly through application logic. While the most direct path is via a database user with function invocation rights, a compromised application could potentially deliver the input. Successful exploitation would likely result in full compromise of the database server, including data disclosure, modification, and arbitrary system code execution.

Generated by OpenCVE AI on August 13, 2026 at 15:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to a release that contains the fix: 18.5 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 13, 2026 at 15:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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-13T15:34:11.197Z

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 : Received

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

Modified: 2026-08-13T16:17:55.490

Link: CVE-2026-14662

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T15:15:13Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound