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.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

Integer wraparound occurs in PostgreSQL's fuzzystrmatch extension when processing the levenshtein() and levenshtein_less_equal() functions with unusually large numeric arguments. The overflow turns the internal counter into a pointer that can be written to any 64‑bit memory location, allowing an attacker who can execute SQL commands to overwrite arbitrary data within the PostgreSQL process. This flaw enables the attacker to run arbitrary code with the privileges of the PostgreSQL operating‑system user, effectively compromising the database server and potentially the host operating system.

Affected Systems

The vulnerability affects PostgreSQL releases earlier than 18.6, 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 score is < 1%, indicating a very low but nonzero exploitation probability. 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 integer 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 30, 2026 at 00:21 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.6 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 30, 2026 at 00:21 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 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. 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.6, 17.11, 16.15, 15.19, and 14.24 are affected.

Wed, 19 Aug 2026 15:15: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 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-29T23:07:27.420Z

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

Link: CVE-2026-15742

cve-icon Vulnrichment

Updated: 2026-08-13T15:37:56.764Z

cve-icon NVD

Status : Modified

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

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

Link: CVE-2026-15742

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-30T00:30:06Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound