CVE-2011-4089
bzip2 < 1.0.5 - Local Arbitrary Code Execution via Temporary File Handling
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2011-4089. PoCs published by vladz.
AI-analyzed exploit summary This PoC exploits a race condition in the bzexe script (CVE-2011-4089) by using Inotify to detect when a root user executes a compressed binary, then replacing it with a malicious script to gain a root shell. It demonstrates a local privilege escalation via a symlink-like attack.
Description
The bzexe command in bzip2 1.0.5 and earlier generates compressed executables that do not properly handle temporary files during extraction, which allows local users to execute arbitrary code by precreating a temporary directory.
Exploits (1)
This PoC exploits a race condition in the bzexe script (CVE-2011-4089) by using Inotify to detect when a root user executes a compressed binary, then replacing it with a malicious script to gain a root shell. It demonstrates a local privilege escalation via a symlink-like attack.