CVE-2025-52745

8.1 HIGH

📋 TL;DR

This CVE describes a PHP Local File Inclusion vulnerability in the Farm Agrico WordPress theme. Attackers can include arbitrary local files through improper filename control in include/require statements, potentially leading to sensitive information disclosure or code execution. This affects WordPress sites using Farm Agrico theme version 1.3.11 and earlier.

💻 Affected Systems

Products:
  • AncoraThemes Farm Agrico WordPress Theme
Versions: <= 1.3.11
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with Farm Agrico theme active

⚠️ 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

Remote code execution leading to complete system compromise, data exfiltration, and persistent backdoor installation

🟠

Likely Case

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

🟢

If Mitigated

Information disclosure limited to publicly accessible files only

🌐 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; exploit code is publicly available

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.3.12 or later

Vendor Advisory: https://patchstack.com/database/Wordpress/Theme/farmagrico/vulnerability/wordpress-farm-agrico-theme-1-3-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 Farm Agrico theme updates
4. Update to version 1.3.12 or later
5. Clear WordPress cache if applicable

🔧 Temporary Workarounds

Disable vulnerable theme

all

Switch to a different WordPress theme temporarily

wp theme activate twentytwentyfour

Restrict PHP file inclusion

linux

Add .htaccess rules to block malicious file inclusion attempts

RewriteEngine On
RewriteCond %{QUERY_STRING} (.*)(include|require)(.*)\.php
RewriteRule ^.*$ - [F,L]

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block LFI patterns
  • Restrict web server permissions to prevent access to sensitive directories

🔍 How to Verify

Check if Vulnerable:

Check WordPress theme version in Appearance > Themes or run: wp theme list --field=name,version | grep farmagrico

Check Version:

wp theme list --field=name,version | grep farmagrico

Verify Fix Applied:

Confirm Farm Agrico theme version is 1.3.12 or higher

📡 Detection & Monitoring

Log Indicators:

  • Unusual file paths in PHP error logs
  • Multiple requests with ../ patterns
  • Failed include/require attempts to sensitive paths

Network Indicators:

  • HTTP requests with file path traversal in parameters
  • Patterns like ?file=../../../etc/passwd

SIEM Query:

source="web_logs" AND ("include_once" OR "require_once") AND ("..\\" OR "../" OR "/etc/" OR "/proc/")

🔗 References

📤 Share & Export