CVE-2025-39391

7.5 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 WordPress sites running the Checkout Field Visibility for WooCommerce plugin version 1.2.3 and earlier. Attackers can potentially read sensitive files or execute code depending on server configuration.

💻 Affected Systems

Products:
  • Checkout Field Visibility for WooCommerce
Versions: n/a through 1.2.3
Operating Systems: All operating systems running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress with WooCommerce installed. Vulnerability exists in default plugin configuration.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution leading to complete server compromise, data theft, and website defacement

🟠

Likely Case

Local file inclusion allowing reading of sensitive files like configuration files, logs, or database credentials

🟢

If Mitigated

Limited file access restricted by PHP security settings or web server permissions

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation is straightforward with publicly available proof-of-concept. No authentication required.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.2.4 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/checkout-field-visibility-for-woocommerce/vulnerability/wordpress-checkout-field-visibility-for-woocommerce-plugin-1-2-3-local-file-inclusion-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel
2. Go to Plugins → Installed Plugins
3. Find 'Checkout Field Visibility for WooCommerce'
4. Click 'Update Now' if available
5. If no update available, download version 1.2.4+ from WordPress repository
6. Deactivate old plugin, upload new version, activate

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily disable the plugin until patched

wp plugin deactivate checkout-field-visibility-for-woocommerce

Restrict PHP file functions

linux

Configure PHP to disable dangerous functions via php.ini

disable_functions = allow_url_fopen,allow_url_include

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block file inclusion patterns
  • Restrict file system permissions to minimum required for web server operation

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Checkout Field Visibility for WooCommerce version

Check Version:

wp plugin get checkout-field-visibility-for-woocommerce --field=version

Verify Fix Applied:

Verify plugin version is 1.2.4 or higher in WordPress admin

📡 Detection & Monitoring

Log Indicators:

  • Unusual file paths in PHP error logs
  • Multiple requests with file inclusion patterns in access logs

Network Indicators:

  • HTTP requests containing file inclusion parameters like ?file= or ?include=

SIEM Query:

source="web_access_logs" AND (uri="*?file=*" OR uri="*?include=*")

🔗 References

📤 Share & Export