Privilege Escalation via DIAGDATADIR in AIX diagrpt
The diagrpt utility in IBM AIX versions 4.3.x and 5.1 is vulnerable to privilege escalation due to its use of the DIAGDATADIR environment variable to locate and execute certain programs. A local attacker can manipulate this environment variable to point to a directory containing a malicious (Trojan horse) program, which will then be executed with elevated privileges when diagrpt is run.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows a local user to execute arbitrary code with the privileges of the diagrpt process, potentially leading to full system compromise depending on the privileges of the process.
If you can’t patch tonight, do this now.
As a temporary mitigation, restrict access to the diagrpt utility to trusted users only, and monitor for unauthorized changes to the DIAGDATADIR environment variable. Consider using environment sanitization techniques or wrapper scripts to clear or validate environment variables before invoking privileged utilities.
Patch, then assume compromise.
Apply IBM's official patches or updates for AIX 4.3.x and 5.1 that address this vulnerability. Ensure that diagrpt and similar utilities do not trust environment variables for executable paths, or restrict the use of DIAGDATADIR to trusted values only.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.