# BackWPup – WordPress Backup & Restore Plugin <= 5.7.8 - Authenticated (BackWPup Admin+) OS Command Injection via Email Destination Sendmail Command

- **ID:** WPSEC-2026-4284
- **Plugin:** BackWPup – WordPress Backup & Restore Plugin (`backwpup`), https://wordpress.org/plugins/backwpup/
- **Affected versions:** all versions before 5.7.9
- **Fixed in:** 5.7.9 (Update to 5.7.9 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-78
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/backwpup
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4284/

## Description

The BackWPup – WordPress Backup & Restore Plugin plugin for WordPress is vulnerable to OS Command Injection via the email destination's 'Sendmail path' job setting in all versions up to, and including, 5.7.8, due to the stored command being passed unrestricted to Swift Mailer's sendmail transport, which runs it through a shell, while the character check before it only logged an error and did not stop execution. This makes it possible for authenticated attackers with the backwpup_jobs_edit capability (the plugin's 'BackWPup Admin' role, administrators on single sites, super admins on multisite) to execute arbitrary commands on the server when the job's email destination runs.

## References

- https://wpsec.com/vuln/WPSEC-2026-4284/
- https://plugins.svn.wordpress.org/backwpup/tags/5.7.9/
- https://wordpress.org/plugins/backwpup/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4284/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
