CVE-2018-21025: Centreon Privilege Escalation
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.44566%
CWE
Published
5/24/2022
Updated
10/5/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
centreon/centreon | composer | <= 19.04.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from centreon-backup.pl
's insecure handling of configuration values. The script uses $centreon_config->{CentreonDir}
from the world-writable conf.pm
file to construct paths for executing centreon-backup-mysql.sh
. Since the configuration file is group-writable and apache is part of the centreon group, attackers can modify CentreonDir
to point to a malicious script. The cron job executes centreon-backup.pl
as root, leading to privilege escalation. While no specific named functions are mentioned in disclosures, the main script execution flow that parses the insecure configuration and executes external commands is clearly implicated.