MISP allowed an authenticated site administrator to set the Kafka_rdkafka_config setting to an arbitrary filesystem path. MISP subsequently parsed the referenced INI file and passed its options to rdkafka. A crafted attacker-controlled configuration file could use rdkafka options such as plugin.library.paths to load an external library, resulting in arbitrary code execution with the privileges of the MISP process. An attacker could leverage a MISP-writable location, such as an uploaded file or administrative image, to host the malicious configuration file. The issue is fixed by restricting the setting to absolute .ini files located only in approved configuration directories outside the webroot and MISP upload targets.
The vulnerability results from lack of validation of the INI file path set by the Kafka_rdkafka_config parameter — an attacker with server administrator privileges could specify any file in the file system. MISP parsed the specified INI file and passed its options directly to the rdkafka library. A crafted configuration file could contain the plugin.library.paths option pointing to a malicious dynamic library. An attacker could place such a library in a location writable by MISP, such as an uploaded file or administrative image, and then trigger its loading and code execution with the privileges of the MISP process.
An attacker can execute arbitrary code (RCE) with the privileges of the MISP process, which can lead to system takeover, leakage of sensitive intelligence data, and compromise of the integrity of the MISP instance and systems communicating with it.
Apply the patch available in the MISP GitHub repository (commit 9600d486ccfc98388e13897fd954350cebac5fb0). The patch restricts the Kafka_rdkafka_config parameter exclusively to absolute paths of .ini files located in approved configuration directories outside the webroot and MISP upload directories. Until the update is applied, it is recommended to limit the number of accounts with server administrator privileges and monitor changes to Kafka configuration.
MISP (Misp-Project/MISP) — versions indicated in producer references; the vulnerability affects instances with enabled Kafka/rdkafka integration and server administrator access
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XMisp Project Misp
APPMisp-Project< 2.5.42
Related vulnerabilities
MISP: błędna kontrola dostępu w masowym usuwaniu obiektów (CWE-862)
MISP: Wielokrotne słabości implementacji OAuth 2.0 z AAD – session fixation i inne
SQL Injection w MISP — manipulacja parametrami sortowania zapytań
MISP: Nieprawidłowa weryfikacja przesyłanego logo organizacji
MISP: Nieprawidłowa walidacja uploadu pliku umożliwia RCE