critical · CVSS v3 9.8 · CVSS v4 5.1
CVE-2026-93295
MISP’s background job dispatcher accepts user‑controlled arguments without validation, enabling an attacker to inject a phar:// URI that is
Overview
MISP’s background job dispatcher accepts user‑controlled arguments without validation, enabling an attacker to inject a phar:// URI that is executed as PHP code under the web server’s user. This results in full remote code execution (RCE) on the host, compromising confidentiality, integrity, and availability of the MISP instance.
Description
MISP contains a vulnerability in its background job dispatch mechanism that allows remote code execution as the web user. Background job arguments are passed directly as the argv of the CakePHP console process. CakePHP's ShellDispatcher::_parsePaths() scans the entire argv for path switches (-app, --app, -working, --working, -root, --root, -webroot, --webroot) and uses the following element as the application root. The events/contact endpoint passes user-controlled fields (message and person) into job arguments without validation. An attacker who can submit the contact form can set the person field to a reserved switch (e.g., -app) and the message field to a phar:// URI pointing to a malicious archive. The CakePHP bootstrap then includes Config/core.php from within that archive, executing attacker-controlled PHP code with the privileges of the web user. The vulnerability requires the ability to submit the events/contact form (or any other endpoint that forwards user input into background job arguments). No special timing or race condition is required; the attack is deterministic once the crafted parameters are accepted. The impact is full remote code execution in the context of the MISP web server process, allowing data exfiltration, persistence, and lateral movement within the host.
Impact
The vulnerability allows an attacker who can submit the events/contact form (or any endpoint that forwards user input to background jobs) to run arbitrary PHP code with the privileges of the MISP web server process. This can lead to data exfiltration, persistence, and lateral movement within the host, affecting confidentiality, integrity, and availability of the system.
Remediation
['Apply the latest MISP patch or upgrade to a version that has fixed the background job argument handling.', 'If an upgrade is not immediately possible, restrict the background job dispatcher by disabling or removing the affected endpoints (e.g., events/contact) until a patch is applied.', 'Implement input validation or sanitization for all fields that are forwarded to background jobs, ensuring that no command‑line switches or phar:// URIs are accepted.', 'Configure the web server to disable the phar wrapper (e.g., `php.ini` setting `phar.readonly = On`) to prevent execution of phar archives.', 'Consider running MISP under a dedicated, least‑privileged user and enforce strict file permissions to limit the impact of any potential RCE.', 'Regularly review and audit background job configurations and logs for anomalous activity.']
Risk context
The CVE is rated critical with a CVSS v3 score of 9.8, indicating a high likelihood of exploitation and severe impact. No EPSS data is available, but the deterministic nature of the flaw means that any exposed contact form or similar endpoint is immediately vulnerable. Prompt patching or mitigation is strongly recommended.
Affected products
- MISP
- MISP Community Edition
- MISP Enterprise
- MISP Docker
- MISP API
Scores
- Severity
- critical
- CVSS v2
- 7.5
- CVSS v3
- 9.8
- CVSS v4
- 5.1
- EPSS
- —