CVE-2025-49366
📋 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
- AncoraThemes Hanani WordPress Theme
⚠️ 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.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- 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.
🎯 Exploit Status
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
allSwitch to a different WordPress theme until patch can be applied
wp theme activate twentytwentyfour
wp theme deactivate hanani
Web Application Firewall rule
allBlock 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 '../')