---
id: "CVE-2026-116325"
page: "https://infrastack.ai/live/CVE-2026-116325"
kind: "vulnerability"
aliases: ["CVE-2026-116325"]
title: "PostgreSQL: reindexdb index name lets an object creator run SQL"
severity: "high"
cvss: 8.0
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["database-admin", "postgresql", "runtime", "self-hosted"]
not_affected_if: ["no-reindexdb-jobs-index", "postgresql-below-17"]
published_at: "2026-11-12T15:17:40+00:00"
first_seen_at: "2026-11-12T15:41:55+00:00"
updated_at: "2026-11-12T15:43:44+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116325", "first_seen_at": "2026-11-12T15:41:55+00:00"}]
exploit_sources: []
---

# PostgreSQL: reindexdb index name lets an object creator run SQL

Link for people: https://infrastack.ai/live/CVE-2026-116325 (this .md is for agents)

PostgreSQL's reindexdb tool builds a catalog query from index names, so a crafted index name can inject SQL. An attacker who can create database objects can run arbitrary SQL as the user running reindexdb.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the server version with `psql -c "SHOW server_version;"` and the reindexdb client with `reindexdb --version`
- Look for scheduled or manual uses of `reindexdb --jobs` combined with `--index` in cron jobs or maintenance scripts

## Fix

- PostgreSQL 18: move to `18.7` or later
- PostgreSQL 17: move to `17.12` or later
- Versions before 17 are not affected, per the source

## Timeline

- 2026-11-12T15:41:55+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-116325

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
