Home

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.

PUBLISHED Reserved 2026-03-25 | Published 2026-04-17 | Updated 2026-04-17 | Assigner Wordfence




MEDIUM: 4.9CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Problem types

CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Product status

Default status
unaffected

Any version
affected

Timeline

2026-03-27:Vendor Notified
2026-04-16:Disclosed

Credits

Lukasz Sobanski finder

References

www.wordfence.com/...-05dd-4fe1-b7b5-7ed0cf13053c?source=cve

plugins.trac.wordpress.org/...rc/JetBackup/Upload/Upload.php

plugins.trac.wordpress.org/...rc/JetBackup/Upload/Upload.php

plugins.trac.wordpress.org/...ckup/Ajax/Calls/AddToQueue.php

plugins.trac.wordpress.org/...ckup/Ajax/Calls/AddToQueue.php

plugins.trac.wordpress.org/...ckup/Ajax/Calls/AddToQueue.php

plugins.trac.wordpress.org/...ckup/Ajax/Calls/AddToQueue.php

plugins.trac.wordpress.org/...40backup&sfp_email=&sfph_mail=

cve.org (CVE-2026-4853)

nvd.nist.gov (CVE-2026-4853)

Download JSON