
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-6248 is an Arbitrary File Deletion vulnerability in the wpForo Forum plugin for WordPress, affecting versions up to and including 3.0.5. The flaw allows authenticated attackers with subscriber-level access or above to delete arbitrary files on the server, which can lead to remote code execution. It was published on April 20, 2026, and assigned a CVSS v3.1 base score of 8.1 (High) (GitHub Advisory, Wordfence). Exploitation requires the wpForo - User Custom Fields addon plugin to be installed alongside the main plugin.
The vulnerability stems from two compounding flaws classified under CWE-22 (Path Traversal). First, the Members::update() method does not validate or restrict the value of file-type custom profile fields, allowing an authenticated user to store an arbitrary filesystem path instead of a legitimate upload path. Second, the wpforo_fix_upload_dir() sanitization function within ucf_file_delete() only remaps paths matching an expected pattern, and any non-matching path is passed directly to PHP's unlink() function without restriction, enabling deletion of arbitrary files (GitHub Advisory, Wordfence). The relevant code is visible in the plugin's source at Members.php#L891, Actions.php#L1418, and functions.php#L3187.
Successful exploitation allows authenticated attackers with minimal privileges (subscriber-level) to delete any file accessible to the web server process, including critical WordPress files such as wp-config.php. Deleting wp-config.php forces WordPress into a re-installation state, which an attacker can exploit to gain administrative control and achieve remote code execution. This represents a severe integrity and availability impact to affected WordPress installations, with a secondary risk of full site compromise (GitHub Advisory, Wordfence).
As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Wordfence). The EPSS score is approximately 0.44–0.51%, placing it in roughly the 67th percentile for exploitation likelihood within 30 days (GitHub Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires an authenticated account (subscriber or above) and the presence of the wpForo - User Custom Fields addon plugin, which somewhat limits the attack surface.
/var/www/html/wp-config.php.ucf_file_delete() function passes the stored arbitrary path directly to unlink(), deleting the targeted file.wp-config.php is deleted, WordPress enters setup mode. The attacker navigates to the WordPress installation wizard, supplies a new database configuration, and gains administrative access — enabling arbitrary PHP code execution via theme/plugin editors or file upload (GitHub Advisory, Wordfence)./wp-admin/admin-ajax.php or wpForo profile URLs) with unusual file field values containing path traversal sequences or absolute paths.wp-config.php, .htaccess, or core WordPress files; timestamps of file deletions correlating with user profile update activity.unlink() calls on paths outside the uploads directory, or errors related to missing configuration files./wp-admin/setup-config.php or /wp-admin/install.php) from unexpected IP addresses following a period of profile update activity.wp-config.php deletion, or new plugins/themes installed by unfamiliar administrator accounts.Update the wpForo Forum plugin to a version newer than 3.0.5, which contains the patch addressing both the missing input validation in Members::update() and the unsafe path handling in ucf_file_delete() (GitHub Advisory, WordPress Changeset). If the wpForo - User Custom Fields addon plugin is not required, disable or remove it to eliminate the attack vector entirely. Additionally, restrict subscriber-level account registration if not needed, audit existing low-privileged accounts, and apply filesystem permissions that limit the web server process's ability to delete files outside the uploads directory.
Wordfence, which discovered and reported the vulnerability, included it in their weekly WordPress vulnerability report for the week of April 20–26, 2026 (Wordfence Weekly Report). The vulnerability was noted on Mastodon by security-focused accounts shortly after disclosure. No significant broader media coverage or notable researcher commentary beyond the initial Wordfence advisory has been identified.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."