A vulnerability in PostgreSQL versions 18.0.0 through 18.6.x allows a database owner to execute arbitrary SQL code as the vacuumdb user via the vacuumdb --missing-stats-only command. This occurs due to an untrusted search path that enables shadowing of operators used in the catalog query. The issue is fixed in PostgreSQL 18.7.0.