Critical Marimo RCE Flaw Could Let Attackers Execute Malicious Code Remotely

Critical Marimo RCE Flaw Could Let Attackers Execute Malicious Code Remotely

GBHackers On Security
GBHackers On SecurityMay 18, 2026

Companies Mentioned

Why It Matters

The flaw gives attackers unauthenticated shell access, jeopardizing sensitive data, API keys, and internal services that often run with elevated privileges. Prompt remediation is essential to prevent widespread breach of AI and analytics workloads.

Key Takeaways

  • Unauthenticated WebSocket endpoint spawns system shell in Marimo <0.23.0
  • Exploit grants pre‑auth remote code execution, exposing credentials and internal services
  • Active attacks use simple Python client to run commands via ws://target:2718/terminal/ws
  • Patch to version 0.23.0 and network restrictions mitigate the critical RCE risk

Pulse Analysis

Marimo has become a go‑to tool for interactive Python notebooks, enabling data scientists to prototype AI models and run analytics pipelines in a single environment. Its built‑in terminal feature, accessed via a WebSocket endpoint, was designed for convenience but lacked any authentication check in releases before 0.23.0. By allowing any client to connect to /terminal/ws, the code inadvertently forks a pseudo‑terminal and hands over a full shell, effectively turning a benign notebook server into a remote command executor. This oversight illustrates how a single missing access‑control gate can transform a development utility into a high‑impact attack vector.

The security implications are severe because Marimo instances often run with privileged permissions, especially in containerized or cloud‑hosted deployments where they share the host network and storage. Attackers who connect to the vulnerable endpoint can enumerate system users, read /etc/passwd, harvest environment variables containing API keys, and pivot to adjacent services such as databases or internal APIs. Early reports from security researchers show active exploitation, with threat actors deploying lightweight malware like NKAbuse from public Hugging Face Spaces. The ease of exploitation—merely a few lines of Python code—lowers the barrier for opportunistic attackers and raises the risk of large‑scale compromise across organizations that expose notebooks to the internet for collaboration.

Mitigation centers on immediate upgrading to Marimo 0.23.0, which introduces proper authentication for the terminal WebSocket and disables the unauthenticated shell path. Until patches are applied, organizations should enforce network segmentation, restrict access to trusted IP ranges, and place reverse proxies that require credentials before forwarding WebSocket traffic. Hardening containers to run as non‑root users, rotating any potentially leaked secrets, and monitoring for anomalous WebSocket connections are additional safeguards. The incident underscores the broader need for rigorous security reviews of developer‑focused tools, especially as they become integral to AI and data‑science pipelines.

Critical Marimo RCE Flaw Could Let Attackers Execute Malicious Code Remotely

Comments

Want to join the conversation?

Loading comments...