CVE-2025-58935

9.8 CRITICAL

📋 TL;DR

This vulnerability allows attackers to include local files on the server through improper filename control in PHP include/require statements. It affects WordPress sites using the Lunna theme version 1.15 and earlier, potentially leading to sensitive information disclosure or code execution.

💻 Affected Systems

Products:
  • WordPress Lunna Theme
Versions: <= 1.15
Operating Systems: All operating systems running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with Lunna theme active. PHP configuration with allow_url_include disabled still vulnerable to local file inclusion.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full server compromise through local file inclusion leading to remote code execution, sensitive file disclosure (including configuration files with credentials), and complete site takeover.

🟠

Likely Case

Sensitive information disclosure from local files (like wp-config.php containing database credentials), limited code execution depending on server configuration.

🟢

If Mitigated

Information disclosure limited to web-accessible files only, no code execution possible.

🌐 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 in security advisories.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: > 1.15

Vendor Advisory: https://patchstack.com/database/Wordpress/Theme/lunna/vulnerability/wordpress-lunna-theme-1-15-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 Lunna 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

Switch to a different WordPress theme temporarily

wp theme activate twentytwentyfour
wp theme deactivate lunna

Web application firewall rule

linux

Block requests containing local file inclusion patterns

ModSecurity rule: SecRule ARGS "\.\./" "id:1001,phase:2,deny,status:403,msg:'Local File Inclusion attempt'

🧯 If You Can't Patch

  • Remove Lunna theme completely and use alternative theme
  • Implement strict file permission controls on sensitive configuration files

🔍 How to Verify

Check if Vulnerable:

Check WordPress theme version in wp-content/themes/lunna/style.css or via WordPress admin panel

Check Version:

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

Verify Fix Applied:

Verify theme version is >1.15 and test with known exploit payloads (ethical testing only)

📡 Detection & Monitoring

Log Indicators:

  • HTTP requests with ../ patterns in parameters
  • PHP include/require errors in web server logs
  • Access to sensitive files like wp-config.php from web requests

Network Indicators:

  • Unusual file paths in URL parameters
  • Requests to theme files with parameter manipulation

SIEM Query:

source="web_access.log" AND ("../" OR "..\" OR "wp-config" OR "etc/passwd") AND uri="*lunna*"

🔗 References

📤 Share & Export