Vulnerability Description
The BackWPup plugin for WordPress is vulnerable to Local File Inclusion via the `block_name` parameter of the `/wp-json/backwpup/v1/getblock` REST endpoint in all versions up to, and including, 5.6.6 due to a non-recursive `str_replace()` sanitization of path traversal sequences. This makes it possible for authenticated attackers, with Administrator-level access and above, to include arbitrary PHP files on the server via crafted traversal sequences (e.g., `....//`), which can be leveraged to read sensitive files such as `wp-config.php` or achieve remote code execution in certain configurations. Administrators have the ability to grant individual users permission to handle backups, which may then allow lower-level users to exploit this vulnerability.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://plugins.trac.wordpress.org/browser/backwpup/tags/5.6.5/inc/Utils/BackWPu
- https://plugins.trac.wordpress.org/browser/backwpup/tags/5.6.5/inc/Utils/BackWPu
- https://plugins.trac.wordpress.org/browser/backwpup/tags/5.6.5/src/Frontend/API/
- https://plugins.trac.wordpress.org/browser/backwpup/trunk/inc/Utils/BackWPupHelp
- https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new
- https://www.wordfence.com/threat-intel/vulnerabilities/id/084e3f78-275b-4692-9cc
FAQ
What is CVE-2026-6227?
CVE-2026-6227 is a vulnerability with a CVSS score of 7.2 (HIGH). The BackWPup plugin for WordPress is vulnerable to Local File Inclusion via the `block_name` parameter of the `/wp-json/backwpup/v1/getblock` REST endpoint in all versions up to, and including, 5.6.6 ...
How severe is CVE-2026-6227?
CVE-2026-6227 has been rated HIGH with a CVSS base score of 7.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-6227?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.