Skip to main content

PostgreSQL EUVDEUVD-2026-57831

| CVE-2026-14662 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-08-13 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 GHSA-jvgx-qpg4-cv6w
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. Access
    Obtain low-privileged PostgreSQL database credentials
  2. Delivery
    Connect to target PostgreSQL instance via TCP
  3. Exploit
    Submit crafted oversized tsvector or tsquery SQL input
  4. Execution
    Trigger integer wraparound in allocation size calculation
  5. Persist
    Write out-of-bounds into undersized heap buffer
  6. Impact
    Achieve arbitrary code execution as database OS 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 account with sufficient privileges to execute SQL statements invoking tsvector or tsquery processing - this is standard for any unprivileged database user with CONNECT rights to a database. The attacker must be able to submit crafted large inputs directly to these functions via SQL, either through an interactive session (psql, pgAdmin, JDBC) or a service account with unrestricted query execution rights. The description explicitly states these data types are sourced from application logic rather than end-user input, so exploitation through a typical web application that constructs tsvector or tsquery values internally and limits their size is unlikely. What limits exploitation: the attacker must hold a database credential (PR:L, not PR:N); the attack path through application-layer conduits is assessed as unlikely by PostgreSQL's own advisory; and network-layer controls such as pg_hba.conf host restrictions or TLS client certificate requirements can prevent unauthorized database sessions entirely. No special server configuration or non-default feature flag is required beyond the PostgreSQL instance accepting connections and processing full-text search types.

Impact

The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) places this firmly in high-severity territory: network-reachable, low complexity, no user interaction, and only a low-privileged database account required. However, the description provides critical nuance - the threat model is a direct database user, not an anonymous internet attacker. The tsvector and tsquery types are normally populated by application logic rather than end-user input, meaning indirect exploitation through a web application that mediates database access is explicitly assessed as unlikely by the PostgreSQL security team. No EPSS data, KEV listing, or public exploit code were included in the intelligence package; exploitation status is therefore unconfirmed. The closest analogue (CVE-2026-6473) was patched without a public KEV listing, suggesting internal discovery rather than observed active exploitation. In practical terms, even a mid-sized municipal IT team in leszno running PostgreSQL for civic services should treat this as urgent patching work, but organizations where only trusted service accounts or developers can issue SQL directly face meaningfully lower realistic risk than multi-tenant environments where untrusted parties hold database credentials. The absence of EPSS data and POC reduces confidence in quantifying real-world probability; base CVSS overstates risk for deployments with strict pg_hba.conf controls.

Exploit ScenarioDerived

An attacker holding a valid low-privileged PostgreSQL account - such as a developer credential, a compromised service account, or an internal user with SELECT and function-execution rights - connects directly to the database and issues a SQL statement that passes a crafted, oversized value into a tsvector or tsquery processing function. The integer wraparound causes the server to allocate an undersized heap buffer; subsequent writes overflow into adjacent heap memory, potentially corrupting metadata or function pointers in a manner that redirects execution to attacker-controlled code running as the OS-level database user (typically postgres). No public proof-of-concept has been identified at time of analysis, so this scenario represents the theoretical attack path consistent with the described vulnerability class and CVSS vector.

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

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

Alert me

AnalysisAIv1 – Aug 13, 2026

Integer wraparound in PostgreSQL's tsvector and tsquery full-text search functions allows an unprivileged database user to trigger an undersized heap allocation and subsequently write out-of-bounds, with potential for arbitrary code execution as the operating system user running the database process. All supported major release lines are affected - versions prior to 18.5, 17.11, 16.15, 15.19, and 14.24 - and the vulnerability closely mirrors CVE-2026-6473, which addressed a similar integer overflow class in the same subsystem. No public exploit code or CISA KEV listing has been identified at time of analysis, though the CVSS 8.8 rating with full High C/I/A impact reflects the worst-case consequence of successful exploitation.

RemediationAI

Upgrade to PostgreSQL 18.5, 17.11, 16.15, 15.19, or 14.24 as applicable to your installed major version, per the vendor advisory at https://www.postgresql.org/support/security/CVE-2026-14662/. If immediate patching is not feasible, the most actionable compensating control is auditing pg_hba.conf and GRANT statements to ensure only strictly necessary accounts hold CONNECT privileges to databases that use full-text search features, minimizing the population of users who could submit crafted inputs. Revoking the ability to execute arbitrary SQL from service accounts (using row-level security and stored procedures with SECURITY DEFINER to restrict callable operations) further narrows the attack surface, though this may require application changes. Application-layer input validation does not constitute a mitigation because the vulnerability lies in database-internal type processing, not at the application boundary. Organizations on unsupported PostgreSQL 13 or earlier branches should treat this as a catalyst for upgrading to a supported major version, as no backport patches will be released.

Affected VersionsENISA

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

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 root cause is CWE-190 (Integer Overflow or Wraparound), specifically an integer wraparound that occurs during buffer size calculations in the server-side processing functions for the tsvector and tsquery data types. tsvector stores a sorted list of lexemes (normalized word forms) used in full-text search; tsquery stores a parsed query tree for matching against tsvector columns. When a crafted, abnormally large input is submitted, arithmetic on the size field wraps around to a small value, causing the subsequent heap allocation to be undersized. Code that then writes data into that buffer assuming the correct large size writes beyond the allocation boundary - a heap buffer overflow. PostgreSQL processes these types server-side whenever a full-text search operation or explicit cast is performed. The pattern repeats a prior incomplete fix in CVE-2026-6473, indicating the integer overflow surface in these functions was broader than initially remediated. Affected versions span PostgreSQL major releases 14 through 18.

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

Requires a database credential (PR:L) over TCP (AV:N); no special config or interaction; RCE as database OS user yields full C/I/A impact.

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 8.8 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 tsvector and tsquery data type functions allows an unprivileged database user to cause the server to undersize an allocation and write out-of-bounds, via crafted large inputs. This may execute arbitrary code as the operating system user running the database. These types are typically sourced from application logic, not taken from the application's user. Hence, application users attacking the database, through the application as a conduit, are unlikely. CVE-2026-6473 had fixed similar problems. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.

Executive ViewAI

Why It Matters

PostgreSQL databases running versions prior to 14.24, 15.19, 16.15, 17.11, or 18.5 contain an integer overflow vulnerability in full-text search functions that allows authenticated database users to execute arbitrary code with database service privileges. Organizations risk data theft, system unavailability, and lateral movement through a compromised database account. Immediate patching is required.

Business Impact: High
Compensating Controls

Apply vendor patch. Upgrade to PostgreSQL 14.24, 15.19, 16.15, 17.11, or 18.5 depending on your current release line.

Threat Intelligence Overview

EPSS Score
0.7%
Top 52% exploitable
Prevalence
High
widely deployed open-source RDBMS across enterprise, cloud, and government 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.7%
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

45
Low Medium High Critical
KEV: 0
EPSS: +1
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