JetBackup <= 3.1.19.8 - Authenticated (Administrator+) Arbitrary Directory Deletion via Path Traversal in 'fileName' Parameter

4.9
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE CVE-2026-4853
CVSS 4.9 (Medium)
Publicly Published April 16, 2026
Last Updated April 17, 2026
Researcher lucsob

Description

The JetBackup – Backup, Restore & Migrate plugin for WordPress is vulnerable to Path Traversal leading to Arbitrary Directory Deletion in versions up to and including 3.1.19.8. This is due to insufficient input validation on the fileName parameter in the file upload handler. The plugin sanitizes the fileName parameter using sanitize_text_field(), which removes HTML tags but does not prevent path traversal sequences like '../'. The unsanitized filename is then directly concatenated in Upload::getFileLocation() without using basename() or validating the resolved path stays within the intended directory. When an invalid file is uploaded, the cleanup logic calls dirname() on the traversed path and passes it to Util::rm(), which recursively deletes the entire resolved directory. This makes it possible for authenticated attackers with administrator-level access to traverse outside the intended upload directory and trigger deletion of critical WordPress directories such as wp-content/plugins, effectively disabling all installed plugins and causing severe site disruption.

References

Share

Vulnerability Details for JetBackup – Backup, Restore & Migrate

Software Type Plugin
Software Slug backup (view on wordpress.org)
Patched? Yes
Remediation Update to version 3.1.20.3, or a newer patched version
Affected Version
  • <= 3.1.19.8
Patched Version
  • 3.1.20.3

Recent vulnerabilities in JetBackup – Backup, Restore & Migrate

# Title CVE ID CVSS Researchers Date
1 JetBackup <= 2.0.9.7 - Sensitive Information Exposure via Directory Listing CVE-2023-7165 9.8 Dmitrii Ignatyev February 2, 2024
2 Backup Guard <= 1.6.9 - Authenticated (Administrator+) Stored Cross-Site Scripting CVE-2022-34148 5.5 Muhammad Daffa October 27, 2022
3 Backup Guard <= 1.5.9 - Authenticated Arbitrary File Upload CVE-2021-24155 7.2 Nguyen Van Khanh February 18, 2021
4 JetBackup – WP Backup, Migrate & Restore <= 1.4.1 - Missing Authorization to Unauthorized Backup Location Change CVE-2020-36667 5.4 Chloe Chamberland July 30, 2020
5 JetBackup – WP Backup, Migrate & Restore <= 1.4.0 - Sensitive Information Disclosure CVE-2020-36668 4.3 Chloe Chamberland July 30, 2020
6 JetBackup – WP Backup, Migrate & Restore <= 1.3.9 - Cross-Site Request Forgery to Arbitrary File Upload CVE-2020-36669 8.8 Chloe Chamberland July 16, 2020
7 BackupGuard <= 1.1.46 - Reflected Cross-Site Scripting CVE-2017-10837 6.1 Chris Liu August 24, 2017
8 Backup Guard <= 1.1.46 - Cross-Site Scripting CVE-2017-18488 6.1 August 11, 2017
9 WordPress Backup and Migrate Plugin – Backup Guard < 1.0.3 - Arbitrary File Upload 8.8 James Golovich February 15, 2016

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation