CVE-2025-58899

8.1 HIGH

📋 TL;DR

This vulnerability allows attackers to include local files on the server through improper filename control in PHP's include/require statements. It affects WordPress sites using the Frame theme version 2.4.0 and earlier, potentially enabling attackers to read sensitive files or execute arbitrary code.

💻 Affected Systems

Products:
  • AncoraThemes Frame WordPress Theme
Versions: n/a through <= 2.4.0
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with Frame theme active. PHP configuration with allow_url_include disabled does not prevent local file inclusion.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

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

🟠

Likely Case

Sensitive file disclosure (configuration files, database credentials, user data) and limited code execution within web server context.

🟢

If Mitigated

Limited impact with proper file permissions and web server hardening, potentially only file disclosure without code execution.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Simple HTTP requests can trigger the vulnerability. Public exploit details available on security research sites.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: >2.4.0

Vendor Advisory: https://patchstack.com/database/Wordpress/Theme/frame/vulnerability/wordpress-frame-theme-2-4-0-local-file-inclusion-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel
2. Navigate to Appearance > Themes
3. Check if Frame theme update is available
4. Update to latest version
5. If no update available, replace with patched version manually

🔧 Temporary Workarounds

Disable vulnerable theme

all

Temporarily switch to default WordPress theme to remove attack surface

wp theme activate twentytwentyfour

Restrict PHP file functions

linux

Use PHP configuration to disable dangerous functions

php_admin_value allow_url_include Off
php_admin_value allow_url_fopen Off

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block file inclusion patterns
  • Restrict web server permissions to prevent reading sensitive files outside web root

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Appearance > Themes for Frame theme version 2.4.0 or earlier

Check Version:

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

Verify Fix Applied:

Confirm Frame theme version is >2.4.0 in WordPress admin or check theme files for patched include statements

📡 Detection & Monitoring

Log Indicators:

  • Unusual include/require statements in PHP error logs
  • HTTP requests with file path traversal patterns
  • Access to sensitive files like /etc/passwd in web logs

Network Indicators:

  • HTTP requests containing '..', 'include', 'require' parameters
  • Unusual file extensions in URL parameters

SIEM Query:

web.url:*include* OR web.url:*require* OR web.url:*..*

🔗 References

📤 Share & Export