Description
MISP ships with PHP's phar stream wrapper registered in both its web entry point and its console entry point. 

The phar stream wrapper causes PHP to treat a phar archive as a directory, which has two security consequences:  

 - any filesystem operation on a caller-influenced path that resolves to a phar archive triggers an implicit unserialize() call, creating a deserialization sink;
 - a relocated application root can reach executable code inside an uploaded phar file, enabling arbitrary code execution as the web user.




No component of MISP, the vendored CakePHP framework, or any runtime-loaded library reads or constructs phar archives. The wrapper therefore serves no legitimate purpose in the MISP runtime and exists solely as an available primitive for an attacker who can influence a filesystem path argument.
Published: 2026-09-22
Score: 7.7 High
EPSS: n/a
KEV: No
Impact: Arbitrary Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability arises from MISP registering PHP's phar stream wrapper at the entry points of its web and console interfaces. When a user supplies a filesystem path that points to a phar archive, PHP implicitly calls unserialize() on the archive contents, creating an unserialize sink. Because any code inside the phar can be executed, an attacker who can influence a path argument can upload a malicious phar and trigger arbitrary code execution as the web user. This is a classic deserialization flaw (CWE-502) combined with path handling (CWE-74).

Affected Systems

The flaw affects the MISP platform itself. No specific product versions are listed in the advisory, so any deployed instance of MISP that has not applied the commit that removes the phar wrapper is vulnerable.

Risk and Exploitability

The CVSS score of 7.7 indicates high severity, but the EPSS score is not available, so the precise likelihood of exploitation is unknown. The flaw is not listed in CISA's KEV catalog. The likely attack surface is via the web interface or console commands that accept path arguments, where an attacker could upload a crafted phar file or direct a request to a phar path. Because the wrapper is unregistered by the official fix, the vulnerability is trivially removable with a simple code change or software update.

Generated by OpenCVE AI on September 22, 2026 at 17:08 UTC.

Remediation

Vendor Solution

The phar stream wrapper is unregistered via stream_wrapper_unregister('phar') at the top of both the web and console entry points, before any framework bootstrap or application code executes. Because no MISP component, CakePHP, or runtime library requires the phar wrapper, removing it eliminates the implicit unserialize() sink and the directory-like phar archive behavior without functional impact. This closes the deserialization and code-execution primitive application-wide, independent of whether individual callers validate their path arguments.


OpenCVE Recommended Actions

  • Deploy the latest MISP release that contains the commit removing the phar stream wrapper (commit 08fa755b6).
  • For custom deployments that cannot upgrade immediately, add stream_wrapper_unregister('phar') at the beginning of the web and console bootstrap files before loading CakePHP.
  • Delete any existing phar files from the application root to eliminate the potential payload source.

Generated by OpenCVE AI on September 22, 2026 at 17:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 22 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 22 Sep 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Misp
Misp misp
Vendors & Products Misp
Misp misp

Tue, 22 Sep 2026 15:15:00 +0000

Type Values Removed Values Added
Description MISP ships with PHP's phar stream wrapper registered in both its web entry point and its console entry point.  The phar stream wrapper causes PHP to treat a phar archive as a directory, which has two security consequences:    - any filesystem operation on a caller-influenced path that resolves to a phar archive triggers an implicit unserialize() call, creating a deserialization sink;  - a relocated application root can reach executable code inside an uploaded phar file, enabling arbitrary code execution as the web user. No component of MISP, the vendored CakePHP framework, or any runtime-loaded library reads or constructs phar archives. The wrapper therefore serves no legitimate purpose in the MISP runtime and exists solely as an available primitive for an attacker who can influence a filesystem path argument.
Title MISP: PHP phar stream wrapper enables deserialization and code execution via caller-influenced filesystem paths
Weaknesses CWE-502
CWE-74
References
Metrics cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: CIRCL

Published:

Updated: 2026-09-22T15:54:08.956Z

Reserved: 2026-09-22T15:09:04.977Z

Link: CVE-2026-95806

cve-icon Vulnrichment

Updated: 2026-09-22T15:54:06.090Z

cve-icon NVD

Status : Deferred

Published: 2026-09-22T16:18:24.547

Modified: 2026-09-22T16:18:24.667

Link: CVE-2026-95806

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-22T17:15:15Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')