Skip to main content

PostgreSQL reindexdb EUVDEUVD-2026-124504

| CVE-2026-116325 HIGH
SQL Injection (CWE-89)
2026-11-12 PostgreSQL GHSA-qq3m-7qq2-628h
8.0
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as low-privilege object creator
  2. Delivery
    Create index with crafted malicious name
  3. Exploit
    Admin runs reindexdb --jobs --index
  4. Execution
    Injected SQL executes as reindexdb user
  5. Impact
    Full database compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

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

Exploitation Conditions

Exploitation requires all of the following: (1) the attacker holds an account that can create a database object (an index), per PR:L - this is an authenticated 'object creator', not an anonymous remote attacker; (2) the attacker can set the index name to attacker-controlled text embedding SQL; and (3) a separate operator subsequently runs the reindexdb client tool with BOTH the --jobs (parallel) and --index options such that the crafted index name is placed into the parallel catalog query - this operator action is the UI:R interaction. Exploitation is limited to PostgreSQL major versions 17 and 18 below 18.7 / 17.12; versions before 17 are not affected, and non-parallel reindex or reindex not targeting the crafted index by name avoids the vulnerable code path. The impact scales with the privilege of the account running reindexdb (commonly a superuser), which is what yields C:H/I:H/A:H.

Impact

The CVSS 3.1 base score of 8.0 (AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H) rates this High, driven by full confidentiality, integrity and availability impact because the injected SQL runs as the database account executing reindexdb - typically a superuser or maintenance role. However, the real-world priority is lower than the raw score suggests because exploitation chains two conditions: an attacker must already hold a low-privilege account able to create objects (PR:L), and a more privileged operator must then run reindexdb with the --jobs (parallel) and --index options against the attacker's crafted index name (the UI:R requirement). No EPSS score was supplied in the input, so exploitation probability cannot be quantified. The CVE is not listed in CISA KEV and no proof-of-concept or exploit reference is present in the input, so exploitation status is 'no public exploit identified at time of analysis.' The only decision signal provided, vuln.today's 'this_week' priority label, aligns with a serious-but-not-emergency patch cadence. Net: a genuine privilege-escalation-to-arbitrary-SQL flaw worth prompt patching for multi-tenant or shared PostgreSQL 17-18 deployments, but the dependency on operator action and pre-existing object-creation rights makes it far less of a drive-by, mass-exploitation risk than the network attack vector alone implies.

Exploit ScenarioDerived

A low-privilege user on a shared PostgreSQL 17 or 18 server creates an index whose name embeds crafted SQL. When a database administrator later runs reindexdb with --jobs and --index to rebuild indexes in parallel, the malicious index name is interpolated into the parallel catalog query and the attacker's SQL executes with the privileges of the account running reindexdb, potentially a superuser. No public exploit code or PoC reference is present in the supplied data.

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

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

Alert me

AnalysisAIv1 – Nov 12, 2026

SQL injection in the PostgreSQL reindexdb client utility lets an authenticated object creator run arbitrary SQL as the database account executing reindexdb, which is typically a superuser or maintenance role. The attacker seeds a crafted index name that is interpolated into the parallel catalog query when an operator later runs reindexdb with both --jobs and --index, so a second party's routine maintenance action completes the exploit. Only major versions 17 and 18 are affected, specifically releases before 18.7 and 17.12; versions before 17 are unaffected, no public exploit has been identified at time of analysis, and no confirmed active exploitation (CISA KEV) has been reported.

RemediationAI

Upgrade to PostgreSQL 18.7 or 17.12, which contain the vendor fix; PostgreSQL branches older than 17 need no action for this issue. Details are in the vendor advisory at https://www.postgresql.org/support/security/CVE-2026-116325/. Until upgrades are applied, avoid invoking reindexdb with --jobs and --index together, and run reindex operations non-parallel instead, accepting that reindexing will be slower; reindexing that does not target the crafted index by name does not reach the vulnerable code path. Limiting which roles may create indexes removes the attacker-side prerequisite for untrusted users, and running reindexdb under a low-privilege maintenance account rather than a superuser reduces the impact of any successful injection, though it may cause reindex operations to fail on objects that require elevated privileges.

Affected VersionsENISA

PostgreSQL 18 <18.7
PostgreSQL 17 <17.12

Affected Packages

euvd postgresql fix: 17.12, 18.7

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 flaw is CWE-89 (improper neutralization of special elements used in an SQL command) inside reindexdb, the PostgreSQL client tool that rebuilds indexes. reindexdb normally builds catalog queries from identifiers it treats as trusted; when run in parallel mode (--jobs) while targeting a specific index (--index), the supplied index name is embedded directly into the catalog query text used to drive the worker processes, without proper quoting or parameterization. An attacker who can create an index can therefore choose a name containing SQL syntax that becomes executable when that query text is assembled. Because the injected statement executes in the session of the account running reindexdb, the impact tracks that account's privileges, which is why the assessment records full confidentiality, integrity and availability impact (C:H/I:H/A:H) under CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H. The vector reflects an authenticated attacker (PR:L) and a required operator interaction (UI:R): the parallel-worker catalog query is only reached when a separate operator runs reindexdb with both --jobs and --index. The CPE entry identifies the affected software only generically as postgresql, so version scoping comes from the advisory rather than the CPE string. The trigger for arbitrary index creation is not further described in the available sources beyond an account that can create a database object.

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 (PostgreSQL) PRIMARY 8.0 HIGH
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.0 HIGH

Attacker needs a low-privilege object-creation account (PR:L) over a network connection (AV:N), and a privileged operator must run reindexdb (UI:R); injected SQL runs as that account, giving full C/I/A impact.

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

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

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

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 15:02 EUVD
CVE Published
Nov 12, 2026 - 14:15 cve.org
HIGH 8.0

DescriptionCVE.org

SQL injection in PostgreSQL reindexdb allows an object creator to execute arbitrary SQL as the database user running reindexdb, via a crafted index name embedded in the parallel catalog query for --jobs with --index. Within major versions 17-18, minor versions before PostgreSQL 18.7 and 17.12 are affected. Versions before PostgreSQL 17 are unaffected.

Executive ViewAI

Why It Matters

PostgreSQL 17 and 18 database environments are exposed to a high-severity SQL injection (CVE-2026-116325) in the reindexdb utility, where a low-privileged object creator can trick routine maintenance into executing arbitrary SQL with superuser rights. This creates a direct path for privilege escalation and potential takeover of critical database systems, impacting data confidentiality and operational stability. Leadership should prioritize immediate patching and restrict index creation privileges to reduce insider and compromised-account risk.

Business Impact: High
Compensating Controls

Vendor-released patch: [exact version not specified in context; apply 18.7 or 17.12 per advisory]

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
High
PostgreSQL is a widely deployed enterprise and cloud database platform
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.4%
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

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

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