Sceawere

Vulnerability Detail

CVE-2026-15742UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

PostgreSQL Fuzzystrmatch Integer Wraparound Vulnerability

Vulnerability Metadata

Severity
High
Score / CVSS
8.8
Creation Date
8h ago
Vendor
n/a
Product
PostgreSQL
Attack Type
Integer Overflow or Wraparound
Vector String
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Complexity
LOW

Narrative and Response

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.

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "8.8",
  "pubDate": "2026-08-13T13:17:46.103Z",
  "pubdate": "2026-08-13T13:17:46.103Z",
  "executiveSummary": "An integer wraparound vulnerability exists within the fuzzystrmatch module of PostgreSQL, specifically within the levenshtein() and levenshtein_less_equal() SQL functions.\nThe vulnerability allows an authenticated database user to trigger out-of-bounds memory writes across a massive address range by supplying extreme or specially crafted inputs to the affected functions.\nSuccessful exploitation of this flaw enables an attacker to achieve arbitrary code execution running under the privileges of the operating system user executing the PostgreSQL database instance, leading to complete system compromise.\nAffected products include PostgreSQL versions prior to 18.5, 17.11, 16.15, 15.19, and 14.24.\nThe risk implications are critical, as it bridges a database-level capability to full host-level code execution.\nExploitation requires the ability to execute SQL queries containing the vulnerable functions against the target database.",
  "technicalDetails": "The root cause of the vulnerability is an integer wraparound flaw residing in the fuzzystrmatch extension, specifically inside the levenshtein() and levenshtein_less_equal() functions.\nWhen extreme inputs are passed to these functions, internal calculations regarding string lengths and buffer allocation sizes suffer from integer overflow or wraparound conditions.\nThis arithmetic wraparound results in the allocation of memory buffers that are significantly smaller than required by the subsequent computational logic.\nConsequently, when the levenshtein algorithm attempts to populate the matrix or working buffers, it performs memory writes far beyond the boundaries of the allocated heap chunk.\nThis behavior allows a user to direct writes to a vast range of memory addresses, corrupting adjacent heap structures or control data.\nThe attack flow begins with an authenticated database user constructing a malicious SQL query that invokes levenshtein() or levenshtein_less_equal() with extreme inputs designed to trigger the integer wraparound.\nUpon execution, the vulnerable component processes the arguments, calculates the flawed buffer size, and initiates the out-of-bounds write operation.\nBy carefully crafting the inputs, an attacker can manipulate the memory layout and achieve arbitrary code execution as the OS user running the database daemon.\nAuthentication is required to execute SQL queries against the database, though standard database user privileges are typically sufficient if they can invoke the fuzzystrmatch functions.\nNetwork exposure depends on the database configuration, but any network interface allowing SQL client connections to a vulnerable PostgreSQL instance can be utilized as an attack vector.\nAffected versions comprise PostgreSQL prior to 18.5, 17.11, 16.15, 15.19, and 14.24."
}
CVE-2026-15742: PostgreSQL Fuzzystrmatch Integer Wraparound Vulnerability (HIGH Severity, CVSS: 8.8) - Sceawere