Privilege Escalation in Fedora Linux: Exploiting ABRT for Root
A command injection flaw in ABRT allowed any local user to run arbitrary commands as root by supplying a crafted mountinfo field. The author built a multi-stage exploit to bypass character restrictions and escape the systemd sandbox, achieving full root access.
initblog.com
Published on initblog.com
In October 2025 I discovered a local privilege-escalation affecting default installations of Fedora Linux 43 and below (Server and Workstation). The flaw, a command injection in ABRT (Automatic Bug Reporting Tool), appears to have been introduced about 10 years ago.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The ABRT daemon took 12 characters from user-supplied mountinfo and inserted them into a shell command without sanitising them, allowing command injection.
What the attacker needed
Local shell access on Fedora; ABRT service running (default)
The fix
The vulnerability was fixed in ABRT version 2.17.8.
How it was found
- Send a crafted HTTP POST request to the ABRT UNIX socket with a mountinfo field containing a command injection payload.
- Observe that the injected command runs as root, creating a file in the root directory.
- Use a 12-byte payload to append characters to a file, building a second-stage script.
- Use the $PWD environment variable to construct a path to a user-controlled directory and write a third-stage script there.
- Execute the second-stage script as root, which calls the third-stage script.
- In the third-stage script, use systemd-run to escape the sandbox and add the low-privilege user to sudoers.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
ABRT is a tool that automatically reports crashes. It runs as a powerful system service. The bug let a normal user trick ABRT into running their own commands with full system rights, which is called privilege escalation.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.