pgAdmin
cpe:2.3:a:pgadmin:pgadmin:*:*:*:*:postgresql:*:*, +1 more
- >= 7.6, < 9.15
A SQL injection vulnerability has been identified in the pgAdmin 4 Maintenance Tool, affecting versions 7.6 through 9.14. The issue arises because four user-supplied JSON fields—buffer_usage_limit, vacuum_parallel, vacuum_index_cleanup, and reindex_tablespace—were directly concatenated into the VACUUM, ANALYZE, or REINDEX command and passed to psql --command. This vulnerability allows an authenticated user with tools_maintenance permission to break out of the option syntax and execute arbitrary SQL on the connected PostgreSQL server. The injected SQL could then use COPY ... TO PROGRAM to escalate to operating-system command execution on the database host.
Exploitation of this vulnerability allows for SQL injection, with the potential to execute arbitrary SQL commands on the connected PostgreSQL server. This could be further escalated to execute operating-system commands on the database host.
This vulnerability has been fixed in pgAdmin 4 version 9.15. Users should upgrade to this version.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.