Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege object creator
-
DeliveryCreate index with crafted malicious name
-
ExploitAdmin runs reindexdb --jobs --index
-
ExecutionInjected SQL executes as reindexdb user
-
ImpactFull 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 1
Executive ViewAI
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.
Vendor-released patch: [exact version not specified in context; apply 18.7 or 17.12 per advisory]
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
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
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
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
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
EUVD-2026-124504
GHSA-qq3m-7qq2-628h
NVD
CVE.org
EPSS
VulDB
Exploit-DB