CVE-2026-7815

SQL injection vulnerability in pgAdmin 4 Maintenance Tool. Four user-supplied JSON fields (buffer_usage_limit, vacuum_parallel, vacuum_index_cleanup, reindex_tablespace) were concatenated directly into the rendered VACUUM/ANALYZE/REINDEX command and passed to psql --command. An authenticated user with the tools_maintenance permission could break out of the option syntax and execute arbitrary SQL on the connected PostgreSQL server. The injected SQL could in turn invoke COPY ... TO PROGRAM to escalate to operating-system command execution on the database host. Fix introduces server-side allow-listing of all four fields and switches reindex_tablespace from manual quoting to the qtIdent filter. This issue affects pgAdmin 4: before 9.15.
References
Link Resource
https://github.com/pgadmin-org/pgadmin4/issues/9898 Issue Tracking Patch Vendor Advisory
Configurations

Configuration 1 (hide)

cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*

History

26 Oct 2026, 18:10

Type Values Removed Values Added
Summary
  • (es) Vulnerabilidad de inyección SQL en la herramienta de mantenimiento de pgAdmin 4. Cuatro campos JSON proporcionados por el usuario (buffer_usage_limit, vacuum_parallel, vacuum_index_cleanup, reindex_tablespace) se concatenaron directamente en el comando VACUUM/ANALYZE/REINDEX renderizado y se pasaron a psql --command. Un usuario autenticado con el permiso tools_maintenance podría escapar de la sintaxis de la opción y ejecutar SQL arbitrario en el servidor PostgreSQL conectado. El SQL inyectado podría a su vez invocar COPY ... TO PROGRAM para escalar a la ejecución de comandos del sistema operativo en el host de la base de datos. La solución introduce una lista de permitidos del lado del servidor para los cuatro campos y cambia reindex_tablespace del entrecomillado manual al filtro qtIdent. Este problema afecta a pgAdmin 4: anterior a la 9.15.

Information

Published : 2026-05-11 16:17

Updated : 2026-10-26 18:10


NVD link : CVE-2026-7815

Mitre link : CVE-2026-7815

CVE.ORG link : CVE-2026-7815


JSON object : View

Products Affected

pgadmin

  • pgadmin_4
CWE
CWE-89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')