Integer Wraparound in PostgreSQL

Check todayFull system takeover over the network by a logged-in user.
8.8HIGH

CVE-2026-15742

Key Information:

Vendor

PostgreSQL Global Development Group

Status
Postgresql
CVE ID
CVE ID:
CVE-2026-15742
Vendor
CVE Published:
13 August 2026
Fixed in
Fixed in:
18.6, 17.11, 16.15 +2 more

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Partly: Works over the network, but needs a login
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Check today

Find out if you're affected. If you are, patch.

What to do

1Update to a fixed version
PostgreSQL 18 to below 18.6 is vulnerable
PostgreSQL 17 to below 17.11 is vulnerable
PostgreSQL 16 to below 16.15 is vulnerable
PostgreSQL 15 to below 15.19 is vulnerable
PostgreSQL 0 to below 14.24 is vulnerable

Install the PostgreSQL release that fixes your version line, or later:

18.617.1116.1515.1914.24
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach PostgreSQL. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Check today"
  • Its CVSS severity is high (8.8).

What is CVE-2026-15742?

CVE-2026-15742 is a vulnerability in PostgreSQL related to integer wraparound in the fuzzystrmatch module. It allows an attacker to manipulate inputs to the SQL functions levenshtein() or levenshtein_less_equal() to direct writes to a large range of memory addresses. This can lead to the execution of arbitrary code with the privileges of the operating system user running the database.

Affected versions include PostgreSQL versions prior to 18.6, 17.11, 16.15, 15.19, and 14.24.

Potential Impact of CVE-2026-15742

  1. Arbitrary code execution: An attacker can execute arbitrary code on the server, potentially compromising the database and the underlying operating system.

References

Type Confusion in PostgreSQL

CVE-2026-120142
PostgreSQL Global...Postgresql8.8HIGH
View more PostgreSQL Global Development Group vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V3.1

Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Credit

The PostgreSQL project thanks Ben Morris (Claude and Anthropic Research) for reporting this problem.
.