CVE-2025-49366

8.1 HIGH

📋 TL;DR

This vulnerability allows attackers to include local PHP files through improper filename control in the Hanani WordPress theme. Attackers can potentially read sensitive files or execute arbitrary code on affected WordPress installations. All WordPress sites using Hanani theme version 1.2.11 or earlier are affected.

💻 Affected Systems

Products:
  • AncoraThemes Hanani WordPress Theme
Versions: All versions up to and including 1.2.11
Operating Systems: Any OS running PHP and WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with Hanani 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 within web server context.

🟢

If Mitigated

Limited impact if file permissions are restrictive and web server runs with minimal privileges.

🌐 Internet-Facing: HIGH - WordPress themes are typically internet-facing and this vulnerability requires no authentication.
🏢 Internal Only: MEDIUM - Internal WordPress installations could still be exploited by authenticated users or through other attack vectors.

🎯 Exploit Status

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

Simple path traversal techniques can exploit this vulnerability. Public proof-of-concept exists in vulnerability databases.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.2.12 or later

Vendor Advisory: https://patchstack.com/database/Wordpress/Theme/hanani/vulnerability/wordpress-hanani-theme-1-2-11-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 Hanani theme updates
4. Update to version 1.2.12 or later
5. Clear any caching plugins

🔧 Temporary Workarounds

Disable vulnerable theme

all

Switch to a different WordPress theme until patch can be applied

wp theme activate twentytwentyfour
wp theme deactivate hanani

Web Application Firewall rule

all

Block requests containing path traversal sequences in theme parameters

🧯 If You Can't Patch

  • Remove or disable the Hanani theme completely
  • Implement strict file permissions and disable PHP execution in upload directories

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Appearance > Themes for Hanani theme version 1.2.11 or earlier

Check Version:

wp theme list --name=hanani --field=version

Verify Fix Applied:

Verify Hanani theme version is 1.2.12 or later in WordPress admin

📡 Detection & Monitoring

Log Indicators:

  • HTTP requests with path traversal sequences (../) in theme-related parameters
  • Unusual file access patterns in web server logs

Network Indicators:

  • Requests to theme files with unusual parameters
  • Multiple failed attempts with different path traversal payloads

SIEM Query:

web_access_logs WHERE uri CONTAINS 'hanani' AND (uri CONTAINS '../' OR params CONTAINS '../')

🔗 References

📤 Share & Export