PostgreSQL "vacuumdb --missing-stats-only" lets a database owner execute code as the vacuumdb user
- State
- Published
- Severity
- 7.2 High
- Published
- Nov 12, 2026
- Updated
- Nov 13, 2026
- Reserved
- Oct 26, 2026
Description
Untrusted search path in PostgreSQL vacuumdb allows a database owner to execute arbitrary SQL as the database user running vacuumdb, via shadowing operators used in the --missing-stats-only catalog query. The pg_upgrade documentation recommends an affected vacuumdb invocation. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are unaffected.
| Product | Versions |
|---|---|
| PostgreSQL n/a | 18 to before 18.7 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.2 High | PostgreSQL |
Weaknesses
- CWE-426 Untrusted Search Path
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.