CVE-2025-39494

8.1 HIGH

📋 TL;DR

This vulnerability allows attackers to include local files on the server through improper filename control in PHP include/require statements. It affects all versions of the Wilmër WordPress theme from Mikado-Themes, potentially leading to sensitive information disclosure or remote code execution.

💻 Affected Systems

Products:
  • Mikado-Themes Wilmër WordPress Theme
Versions: All versions up to 3.4.2
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with Wilmër theme active. PHP configuration with allow_url_include disabled does not prevent local file inclusion.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full server compromise through local file inclusion leading to remote code execution, sensitive file access (including configuration files with credentials), and complete website takeover.

🟠

Likely Case

Sensitive information disclosure (database credentials, configuration files), limited file system access, and potential privilege escalation.

🟢

If Mitigated

Limited impact due to proper file permissions, web server restrictions, and security controls preventing file inclusion outside intended directories.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires knowledge of vulnerable endpoints but is straightforward once identified. Public exploit details available through security advisories.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.4.3 or later

Vendor Advisory: https://patchstack.com/database/wordpress/theme/wilmer/vulnerability/wordpress-wilmer-theme-3-4-2-local-file-inclusion-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Appearance > Themes. 3. Check for Wilmër theme updates. 4. Update to version 3.4.3 or later. 5. Clear any caching plugins. 6. Verify theme functions correctly.

🔧 Temporary Workarounds

Disable vulnerable theme

all

Temporarily switch to default WordPress theme until patch is applied

Restrict PHP file inclusion

linux

Configure PHP to restrict file inclusion paths

php_admin_value open_basedir "/var/www/html:/tmp"
php_admin_value allow_url_include Off

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block file inclusion patterns
  • Restrict file system permissions and implement strict access controls

🔍 How to Verify

Check if Vulnerable:

Check WordPress theme version in Appearance > Themes. If Wilmër theme version is 3.4.2 or earlier, system is vulnerable.

Check Version:

wp theme list --field=name,version --path=/var/www/html

Verify Fix Applied:

Confirm Wilmër theme version is 3.4.3 or later in WordPress admin panel. Test vulnerable endpoints with controlled payloads.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file include patterns in PHP error logs
  • Requests with file path traversal patterns (../, /etc/passwd, etc.)
  • Multiple failed include attempts

Network Indicators:

  • HTTP requests with file inclusion parameters
  • Unusual POST/GET parameters containing file paths
  • Requests to theme-specific endpoints with path traversal

SIEM Query:

source="web_access" AND (uri="*include*" OR uri="*require*" OR uri="*file*" OR uri="*path*") AND (param="*../*" OR param="*/etc/*" OR param="*config*" OR param="*.php*")

🔗 References

📤 Share & Export