PostgreSQL fuzzystrmatch writes effectively-arbitrary addresses, via integer wraparound (CVE-2026-15742)
An integer wraparound vulnerability in PostgreSQL's fuzzystrmatch module allows attackers to write to arbitrary memory addresses. This occurs via specially crafted inputs to the levenshtein() or levenshtein_less_equal() SQL functions. Successful exploitation can lead to arbitrary code execution with the privileges of the database operating system user. Versions prior to PostgreSQL 14.24, 15.19, 16.15, 17.11, and 18.6 are affected. A patch is available to address this issue.
AI Analysis
Technical Summary
CVE-2026-15742 is an integer wraparound vulnerability in the fuzzystrmatch extension of PostgreSQL. By providing extreme inputs to the levenshtein() or levenshtein_less_equal() functions, an attacker can cause integer wraparound that results in writes to a wide range of memory addresses. This memory corruption can be leveraged to execute arbitrary code with the privileges of the OS user running the database process. The vulnerability affects multiple PostgreSQL major versions before 14.24, 15.19, 16.15, 17.11, and 18.6. The issue is tracked under CWE-190 (Integer Overflow or Wraparound).
Potential Impact
Exploitation of this vulnerability allows an attacker with the ability to invoke the vulnerable SQL functions to execute arbitrary code on the host operating system with the same privileges as the PostgreSQL server process. This can lead to full compromise of the database server environment. There are no known exploits in the wild at this time.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade PostgreSQL to versions 14.24, 15.19, 16.15, 17.11, 18.6 or later to remediate this issue. No alternative mitigations or workarounds are indicated in the advisory.
PostgreSQL fuzzystrmatch writes effectively-arbitrary addresses, via integer wraparound (CVE-2026-15742)
Description
An integer wraparound vulnerability in PostgreSQL's fuzzystrmatch module allows attackers to write to arbitrary memory addresses. This occurs via specially crafted inputs to the levenshtein() or levenshtein_less_equal() SQL functions. Successful exploitation can lead to arbitrary code execution with the privileges of the database operating system user. Versions prior to PostgreSQL 14.24, 15.19, 16.15, 17.11, and 18.6 are affected. A patch is available to address this issue.
Affected software
pkg:deb/postgresql/postgresqlRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-15742 is an integer wraparound vulnerability in the fuzzystrmatch extension of PostgreSQL. By providing extreme inputs to the levenshtein() or levenshtein_less_equal() functions, an attacker can cause integer wraparound that results in writes to a wide range of memory addresses. This memory corruption can be leveraged to execute arbitrary code with the privileges of the OS user running the database process. The vulnerability affects multiple PostgreSQL major versions before 14.24, 15.19, 16.15, 17.11, and 18.6. The issue is tracked under CWE-190 (Integer Overflow or Wraparound).
Potential Impact
Exploitation of this vulnerability allows an attacker with the ability to invoke the vulnerable SQL functions to execute arbitrary code on the host operating system with the same privileges as the PostgreSQL server process. This can lead to full compromise of the database server environment. There are no known exploits in the wild at this time.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade PostgreSQL to versions 14.24, 15.19, 16.15, 17.11, 18.6 or later to remediate this issue. No alternative mitigations or workarounds are indicated in the advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-rvq6-xp6x-5575
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-15742"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7e0366bf8831d5398f8553
Added to database: 08/13/2026, 17:48:22 UTC
Last enriched: 09/08/2026, 15:14:30 UTC
Last updated: 09/28/2026, 23:20:11 UTC
Views: 44
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.