Impact
A malicious MySQL or PostgreSQL user with database creation right can attempt to run a command in the glpi-agent context execution using crafted database names.
Patches
Upgrade to GLPI-Agent 1.18
Workarounds
Firstly, a computer won't be affected if mysql and psql command are not installed. You can test as administrator to run mysql --version and psql --version to check if one of these command is available.
Secondly, if no database is running or configured to be inventoried via database-inventory glpi plugin, glpi-agent won't have to handle any database name.
You can disable databases inventory agent-side by setting no-category = database in configuration.
For more information
If you have any questions or comments about this advisory, mail us at glpi-security@ow2.org.
Impact
A malicious MySQL or PostgreSQL user with database creation right can attempt to run a command in the glpi-agent context execution using crafted database names.
Patches
Upgrade to GLPI-Agent 1.18
Workarounds
Firstly, a computer won't be affected if
mysqlandpsqlcommand are not installed. You can test as administrator to runmysql --versionandpsql --versionto check if one of these command is available.Secondly, if no database is running or configured to be inventoried via database-inventory glpi plugin, glpi-agent won't have to handle any database name.
You can disable databases inventory agent-side by setting
no-category = databasein configuration.For more information
If you have any questions or comments about this advisory, mail us at glpi-security@ow2.org.