Description
Integer wraparound in PostgreSQL fuzzystrmatch allows a user to direct writes to a huge range of addresses, executing arbitrary code as the operating system user running the database, via extreme inputs to SQL function levenshtein() or levenshtein_less_equal(). 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 the fuzzystrmatch extension’s levenshtein functions allows a database user to direct writes to arbitrary memory addresses, giving the attacker the ability to execute code as the operating‑system user running the PostgreSQL server. The flaw can be exercised by supplying extremely large input values to the levenshtein() or levenshtein_less_equal() SQL functions, which triggers a wraparound in an internal counter and corrupts memory. The result is a high‑severity code‑execution vulnerability with full compromise of the database system and the underlying host.

Affected Systems

The vulnerability affects PostgreSQL releases earlier than 18.5, 17.11, 16.15, 15.19, and 14.24, meaning all versions below those points are at risk. The affected component is the fuzzystrmatch extension distributed with the PostgreSQL server.

Risk and Exploitability

With a CVSS score of 8.8 the flaw has a high functional impact, yet the EPSS is not available so exact exploitation probability is unknown. The attack likely requires a user with the ability to execute SQL commands against the database, either locally or over a network, and the ability to supply carefully crafted, large numeric inputs to the levenshtein functions. Because the flaw allows arbitrary memory writes, successful exploitation leads to control over the PostgreSQL process and potential escalation to the operating‑system level.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to a version that includes the fix; the minimum safe releases are 14.24, 15.19, 16.15, 17.11, and 18.5 or later.
  • If an upgrade is not immediately possible, revoke usage of the levenshtein and levenshtein_less_equal functions from all roles except those that truly require fuzzy matching, or drop the fuzzystrmatch extensions in databases that do not rely on it.
  • Monitor database logs for unexpected calls to the fuzzystrmatch functions and scrutinize any large integer arguments that exceed typical ranges, treating such patterns as potential exploitation attempts.

Generated by OpenCVE AI on August 13, 2026 at 14:41 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 fuzzystrmatch allows a user to direct writes to a huge range of addresses, executing arbitrary code as the operating system user running the database, via extreme inputs to SQL function levenshtein() or levenshtein_less_equal(). Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.
Title PostgreSQL fuzzystrmatch writes effectively-arbitrary addresses, 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:38:01.855Z

Reserved: 2026-07-14T14:24:10.871Z

Link: CVE-2026-15742

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-15742

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound