CVE-2025-6746·PHP vulnerability
The WoodMart plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 8.2.3 via the 'layout' attribute. This makes it possible for authenticated attackers, with Contributor-level access and above, to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php files can be uploaded and included.
- Severity
- high
- Software
- PHP
- Fixed in
- 8.2.4
- Published
- 2025-07-08
Affected versions
Until: 8.2.4
Fixed in: 8.2.4
How to fix this CVE
Update the WoodMart WordPress plugin to version 8.2.4 or later to patch the local file inclusion vulnerability in the layout attribute handler. This update prevents authenticated contributors and higher-level users from exploiting the flaw to include and execute arbitrary PHP files. Review your site's file upload permissions and audit any PHP files that may have been uploaded during the window of exposure.
sudo dnf update phpDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST|GET request to /wp-admin/ or theme files containing 'layout' parameter with encoded or unencoded path traversal sequences such as '../', '..\', or PHP stream wrappers like 'php://', 'file://', or references to files outside the expected theme directoryWAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement WAF rules to block requests to WordPress theme and plugin handlers containing 'layout' parameters with path traversal characters (../, .., \, or encoded variants %2e%2e). Additionally, restrict POST/GET requests to wp-admin and wp-content directories that include file inclusion patterns or PHP stream wrapper syntax.How to check if you are affected
- Check the installed WoodMart plugin version: Log into WordPress admin panel, navigate to Appearance → Themes, find WoodMart, and note the version number displayed
- Verify if WoodMart is activated and in use: Run `grep -r 'woodmart' /var/www/html/wp-content/themes/` to confirm the theme directory exists and is deployed
- Search web server logs for suspicious layout attribute requests: Run `grep -i 'layout.*php\|include.*layout' /var/log/apache2/access.log /var/log/nginx/access.log` to identify potential exploitation attempts
- Confirm the patch by checking the updated version: After upgrading, reload the WordPress admin panel and verify WoodMart version is 8.2.4 or higher
FAQ
What is CVE-2025-6746?
CVE-2025-6746 is a local file inclusion vulnerability in the WoodMart WordPress theme that allows authenticated users with Contributor-level access or higher to manipulate the layout attribute to include and execute arbitrary PHP files stored on the server, potentially leading to unauthorized code execution.
Is CVE-2025-6746 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits have been disclosed, though the threat remains high due to the ease of exploitation by internal users.
What versions of WoodMart are affected by CVE-2025-6746?
All versions of WoodMart up to and including version 8.2.3 are vulnerable; version 8.2.4 and later include the security patch.
How do I check if my WordPress site is vulnerable to CVE-2025-6746?
Log into your WordPress dashboard, go to Appearance → Themes, locate WoodMart, and check if the version number is 8.2.3 or lower. If so, your site requires an immediate update.
Does Defensia detect CVE-2025-6746?
Yes — Defensia's CVE advisory scanner compares installed WordPress plugin and theme versions against the NVD database. If WoodMart is installed on a monitored website, CVE-2025-6746 will appear in your dashboard with remediation steps and version recommendations.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-6746. Free for 1 server.
Get started free