Description
lfs/backup in IPFire 2.25-core155 does not ensure that /var/ipfire/backup/bin/backup.pl is owned by the root account. It might be owned by an unprivileged account, which could potentially be used to install a Trojan horse backup.pl script that is later executed by root. Similar problems with the ownership/permissions of other files may be present as well.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
IPFire 2.25 Core Update 156 and Prior pakfire.cgi Authenticated RCE
exploit/linux/http/ipfire_pakfire_exec
Exploit-DB 1
- IPFire 2.25 - Remote Code Execution (Authenticated) EDB-49869 · webapps · May 17, 2021
GitHub 1 repository
-
joaoaugustom/IPFire_2.25_RCE_Authenticated ★ 1 · May 16, 2026
This exploit is based on CVE-2021-33393 and was built upon the original exploit by Mücahit Saratar, extending it to achieve a reverse shell with root privileges.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://github.com/MucahitSaratar/ipfire-2-25-auth-rce
- https://github.com/ipfire/ipfire-2.x/commit/6769d909306d7bdc43d64598872126fcf1b217f6
- https://github.com/ipfire/ipfire-2.x/commits/master?since=2021-05-17&until=2021-05-17
- http://packetstormsecurity.com/files/163158/IPFire-2.25-Remote-Code-Execution.html