CVE-2025-39360

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 Grace Mag theme users running versions up to 1.1.5, potentially leading to sensitive information disclosure or remote code execution.

💻 Affected Systems

Products:
  • WordPress Grace Mag Theme
Versions: n/a through 1.1.5
Operating Systems: All operating systems running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with Grace Mag theme active. PHP configuration with allow_url_include disabled does not prevent local file inclusion.

⚠️ 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

Sensitive file disclosure (configuration files, database credentials) and limited code execution.

🟢

If Mitigated

No impact if proper file permissions and web server configurations restrict PHP execution in sensitive directories.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires knowledge of vulnerable parameters and file paths. Public proof-of-concept available through security advisories.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.1.6 or later

Vendor Advisory: https://patchstack.com/database/wordpress/theme/grace-mag/vulnerability/wordpress-grace-mag-theme-1-1-5-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 Grace Mag theme update notification. 4. Click 'Update Now' to install version 1.1.6 or later. 5. Verify theme functions correctly after update.

🔧 Temporary Workarounds

Disable vulnerable theme

all

Switch to a different WordPress theme until patch can be applied

Restrict file access

linux

Configure web server to deny access to sensitive directories and files

# Apache: Add to .htaccess
<FilesMatch "\.(php|inc|conf|config)$">
  Order Deny,Allow
  Deny from all
</FilesMatch>
# Nginx: Add to server block
location ~* \.(php|inc|conf|config)$ {
  deny all;
}

🧯 If You Can't Patch

  • Disable the Grace Mag theme immediately and use a different theme
  • Implement web application firewall rules to block requests containing local file inclusion patterns

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Appearance > Themes for Grace Mag version. If version is 1.1.5 or earlier, system is vulnerable.

Check Version:

wp theme list --field=name,version --status=active

Verify Fix Applied:

After updating, verify Grace Mag theme version shows 1.1.6 or later in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • HTTP requests containing '..' or '../' sequences in parameters
  • Requests to theme files with unusual parameter values
  • Access to sensitive files like /etc/passwd, wp-config.php

Network Indicators:

  • Unusual file paths in URL parameters
  • Requests to theme files with include/require parameters

SIEM Query:

source="web_logs" AND (url="*..*" OR url="*../*") AND (referrer="*grace-mag*" OR url="*grace-mag*")

🔗 References

📤 Share & Export