Skip to main content

PostgreSQL CVE-2026-15742

| EUVDEUVD-2026-57847 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-08-13 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 GHSA-rvq6-xp6x-5575
8.8
CVSS 3.1 · Vendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain valid PostgreSQL credentials
  2. Delivery
    Connect to database over network
  3. Exploit
    Verify fuzzystrmatch extension is present
  4. Install
    Invoke levenshtein() with extreme string inputs
  5. C2
    Trigger integer wraparound in C function
  6. Execute
    Corrupt backend process memory
  7. Impact
    Execute arbitrary code as OS postgres user

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a valid PostgreSQL database user account (CVSS PR:L confirmed) with EXECUTE privilege on levenshtein() or levenshtein_less_equal() - both granted to PUBLIC by default when the fuzzystrmatch extension is installed. The fuzzystrmatch contrib module must have been explicitly installed on the target database via CREATE EXTENSION fuzzystrmatch; installations that have never loaded this extension are not affected regardless of PostgreSQL version. The attack is network-accessible (AV:N per CVSS) and requires no user interaction or elevated database privileges beyond basic login. Exploitation is constrained by: (1) the requirement for a valid database credential, (2) the fuzzystrmatch extension being present, and (3) the attacker's ability to craft inputs that produce a useful memory write primitive - the last factor is described as straightforward per the CVE but has not been demonstrated in a public proof-of-concept at time of analysis.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, score 8.8) accurately captures the core risk: the attack is network-reachable, requires only a low-privilege database account, and results in full OS-level compromise. The PR:L designation is a meaningful barrier - anonymous internet access is insufficient - but authenticated database users are ubiquitous in web applications, internal tooling, and multi-tenant environments. EPSS data is absent from the provided intelligence, precluding probabilistic exploitation forecasting; this gap should be verified against current NVD data before deprioritizing. No CISA KEV listing exists and no public exploit code has been identified, which slightly reduces immediacy compared to a KEV-listed flaw, but even a mid-sized municipal IT team in zabrze should treat this as urgent given that the integer wraparound is described as straightforwardly triggerable with extreme inputs and no special race or timing conditions. The primary real-world mitigant not captured in the CVSS score is the requirement for the fuzzystrmatch extension to be installed; organizations that have never run CREATE EXTENSION fuzzystrmatch are not exposed.

Exploit ScenarioDerived

An attacker with a valid low-privilege PostgreSQL database account submits a SQL statement invoking levenshtein() or levenshtein_less_equal() with carefully crafted extreme-length string arguments over the network. The integer wraparound in the fuzzystrmatch C code causes a buffer write to an attacker-influenced address, overwriting control data in the PostgreSQL backend process. With sufficient control over the write primitive, the attacker achieves arbitrary code execution as the 'postgres' OS user, gaining full access to all database files on disk and any other resources accessible to that system account. No public exploit code has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 13, 2026

Remote code execution via integer wraparound in PostgreSQL's fuzzystrmatch contrib module allows any authenticated database user to corrupt memory and execute arbitrary code as the operating system account running the database server. All maintained PostgreSQL branches are affected: versions before 18.5, 17.11, 16.15, 15.19, and 14.24. No public exploit code and no CISA KEV listing have been identified at time of analysis, but the RCE impact, low attack complexity, and network accessibility establish this as a high-priority patching target.

RemediationAI

Upgrade to the patched releases issued by the PostgreSQL Global Development Group: 18.5, 17.11, 16.15, 15.19, or 14.24, per the branch in use, as detailed at https://www.postgresql.org/support/security/CVE-2026-15742/. If immediate patching is operationally infeasible, revoke execute privileges on the affected functions for all non-superuser roles (REVOKE EXECUTE ON FUNCTION levenshtein(text, text) FROM PUBLIC; REVOKE EXECUTE ON FUNCTION levenshtein_less_equal(text, text, integer) FROM PUBLIC) - this prevents exploitation while preserving the extension installation, but will break any application code invoking these functions. Alternatively, remove the extension entirely with DROP EXTENSION fuzzystrmatch, accepting the same application-level trade-off. Restricting database login access to only the minimum required service accounts further reduces the exposed attack surface by shrinking the set of principals capable of triggering the overflow.

Affected VersionsENISA

PostgreSQL 16 <16.15
PostgreSQL 18 <18.5
PostgreSQL 0 <14.24
PostgreSQL 15 <15.19
PostgreSQL 17 <17.11

Affected Packages

euvd postgresql fix: 14.24, 15.19, 16.15, 17.11, 18.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The fuzzystrmatch contrib module is an optional PostgreSQL extension providing string similarity and phonetic functions, including levenshtein() and levenshtein_less_equal(), implemented in C. CWE-190 (Integer Overflow or Wraparound) manifests when arithmetic on input string lengths overflows, producing a miscalculated buffer offset that permits writes to an attacker-influenced range of memory addresses within the backend process. Because each PostgreSQL backend executes as a single OS-level user (commonly 'postgres'), a successful heap or stack corruption attack yields full operating system command execution rather than merely database-level privilege. The fuzzystrmatch module must be explicitly installed via CREATE EXTENSION fuzzystrmatch before these functions are callable, which constitutes a natural scoping factor absent from the CVSS vector alone.

Know when PostgreSQL gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

AV:N and AC:L because extreme SQL inputs are sendable remotely without special conditions; PR:L reflects mandatory database authentication; S:U as impact is bounded to the database backend OS process.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007).

CVSS VectorVendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Aug 13, 2026 - 14:02 EUVD
CVE Published
Aug 13, 2026 - 13:17 cve.org
HIGH 8.8

DescriptionCVE.org

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 ViewAI

Why It Matters

PostgreSQL versions 14-18 (before 14.24, 15.19, 16.15, 17.11, and 18.5) contain a critical remote code execution vulnerability in the fuzzystrmatch module allowing authenticated users to execute arbitrary code as the database server process, enabling complete compromise of database confidentiality, integrity, and system availability. Although no public exploit identified at time of analysis, the low attack complexity and network accessibility establish this as an urgent patching priority for all affected deployments.

Business Impact: High
Compensating Controls

Vendor-released patch: PostgreSQL 14.24, 15.19, 16.15, 17.11, 18.5. Interim mitigation: restrict or disable the fuzzystrmatch extension via ALTER EXTENSION ... DISABLE or removal of the contrib module if not actively required by business applications.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
High
widely deployed open-source RDBMS across enterprise and cloud environments
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy