CVE-2025-49361

8.1 HIGH

📋 TL;DR

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

💻 Affected Systems

Products:
  • AncoraThemes Mamita WordPress Theme
Versions: <= 1.0.9
Operating Systems: All operating systems running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with Mamita 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

Full server compromise leading to data theft, ransomware deployment, or complete site takeover through remote code execution.

🟠

Likely Case

Unauthorized file access, sensitive information disclosure, or limited code execution within the web server context.

🟢

If Mitigated

Limited impact with proper file permissions and security controls, potentially only file disclosure without execution.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires knowledge of vulnerable endpoints but is straightforward once identified.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.0.10 or later

Vendor Advisory: https://patchstack.com/database/Wordpress/Theme/mamita/vulnerability/wordpress-mamita-theme-1-0-9-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 Mamita theme updates. 4. Update to version 1.0.10 or later. 5. Clear any caching plugins.

🔧 Temporary Workarounds

Disable vulnerable theme

all

Switch to a different WordPress theme until patched

Restrict PHP file access

linux

Use web server configuration to block access to vulnerable endpoints

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

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block LFI patterns
  • Restrict file permissions and disable unnecessary PHP functions

🔍 How to Verify

Check if Vulnerable:

Check WordPress theme version in Appearance > Themes or wp-content/themes/mamita/style.css for Version: 1.0.9 or lower

Check Version:

grep 'Version:' /path/to/wordpress/wp-content/themes/mamita/style.css

Verify Fix Applied:

Confirm theme version shows 1.0.10 or higher in WordPress admin or style.css file

📡 Detection & Monitoring

Log Indicators:

  • Unusual file include requests in PHP error logs
  • Requests to theme files with suspicious parameters like ?file=../../etc/passwd

Network Indicators:

  • HTTP requests containing path traversal sequences (../) to theme endpoints
  • Unusual file extensions in URL parameters

SIEM Query:

web.url:*mamita* AND (web.url:*../* OR web.param:*../*)

🔗 References

📤 Share & Export