high CVSS 8.8

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 php

Defensia 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 directory

WAF 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

  1. Check the installed WoodMart plugin version: Log into WordPress admin panel, navigate to Appearance → Themes, find WoodMart, and note the version number displayed
  2. 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
  3. 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
  4. 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

CVE-2026-39337CVSS 10ChurchCRM is an open-source church management system. Prior to 7.1.0, critical pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The "$dbPassword" variable is not sanitized. This vulnerability exists due to an incomplete fix for CVE-2025-62521. This vulnerability is fixed in 7.1.0.
CVE-2024-5932CVSS 10The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.14.1 via deserialization of untrusted input from the 'give_title' parameter. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain allows attackers to execute code remotely, and to delete arbitrary files.
CVE-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.
CVE-2026-28289CVSS 10FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. A patch bypass vulnerability for CVE-2026-27636 in FreeScout 1.8.206 and earlier allows any authenticated user with file upload permissions to achieve Remote Code Execution (RCE) on the server by uploading a malicious .htaccess file using a zero-width space character prefix to bypass the security check. The vulnerability exists in the sanitizeUploadedFileName() function in app/Http/Helper.php. The function contains a Time-of-Check to Time-of-Use (TOCTOU) flaw where the dot-prefix check occurs before sanitization removes invisible characters. This vulnerability is fixed in 1.8.207.

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