CVE-2025-49271

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 using the GravityWP - Merge Tags plugin. Attackers can potentially read sensitive files or execute arbitrary code.

💻 Affected Systems

Products:
  • GravityWP - Merge Tags WordPress plugin
Versions: n/a through 1.4.4
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with vulnerable plugin version. PHP configuration affects exploitability.

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

Full server compromise through local file inclusion leading to remote code execution, data theft, and complete site takeover.

🟠

Likely Case

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

🟢

If Mitigated

Limited impact with proper file permissions, web application firewalls, and restricted PHP functions.

🌐 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.4.5 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/gravitywp-merge-tags/vulnerability/wordpress-gravitywp-merge-tags-1-4-4-local-file-inclusion-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find GravityWP - Merge Tags. 4. Click 'Update Now' if available. 5. Alternatively, download version 1.4.5+ from WordPress repository and replace plugin files.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily disable the GravityWP - Merge Tags plugin until patched

wp plugin deactivate gravitywp-merge-tags

Web Application Firewall rule

all

Block requests containing local file inclusion patterns

🧯 If You Can't Patch

  • Implement strict file permissions (644 for files, 755 for directories)
  • Disable dangerous PHP functions (allow_url_include, allow_url_fopen) in php.ini

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → GravityWP - Merge Tags → Version. If version is 1.4.4 or earlier, vulnerable.

Check Version:

wp plugin get gravitywp-merge-tags --field=version

Verify Fix Applied:

Confirm plugin version is 1.4.5 or later in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file access patterns in PHP error logs
  • Requests with file inclusion parameters (include, require, php://)

Network Indicators:

  • HTTP requests with file path traversal patterns
  • Suspicious parameter values in plugin-related endpoints

SIEM Query:

web_access_logs WHERE uri CONTAINS 'gravitywp-merge-tags' AND (params CONTAINS 'include' OR params CONTAINS 'require' OR params CONTAINS 'php://')

🔗 References

📤 Share & Export