CVE-2025-49366
8.1AncoraThemes · Hanani
The Hanani WordPress theme contains a Local File Inclusion vulnerability due to improper control of filenames used in include or require statements.
Executive summary
An unauthenticated Local File Inclusion vulnerability in the AncoraThemes Hanani WordPress theme allows attackers to potentially access sensitive files or execute arbitrary code on the server.
Vulnerability
This vulnerability is categorized as CWE-98, involving the improper control of filenames for include statements within the PHP code. An unauthenticated attacker can exploit this flaw to perform Local File Inclusion, which may lead to unauthorized data disclosure or system compromise.
Business impact
The severity of this vulnerability is high, as reflected by the CVSS score of 8.1. Successful exploitation could allow an attacker to read sensitive configuration files or execute arbitrary code, leading to a total compromise of the affected WordPress instance, potential data exfiltration, and significant reputational damage to the organization hosting the site.
Remediation
Immediate Action: Review the vendor advisory for the release of a security patch and update the Hanani theme to the latest version immediately upon availability.
Proactive Monitoring: Monitor server access logs for suspicious requests containing path traversal sequences or attempts to access system files, such as etc/passwd or wp-config.php.
Compensating Controls: Deploy a Web Application Firewall (WAF) to block requests containing malicious file path patterns or directory traversal attempts targeting the theme directory.
Exploitation status
Public Exploit Available: Unknown.
Analyst recommendation
Given the high CVSS score and the potential for full system compromise, this vulnerability poses a significant risk to any environment running the Hanani theme. Administrators must prioritize identifying all instances of this theme and ensuring they are updated as soon as the vendor provides a remediation path. If an update is not yet available, consider temporarily deactivating the theme to mitigate the risk of unauthorized access.
More AncoraThemes CVEs
Sources
Originally found and disclosed by Bonds | Patchstack Bug Bounty Program, per the CVE Program record.