Skip to content

Marimo Pre-Authentication RCE Vulnerability

A critical pre-authentication remote code execution (RCE) vulnerability was discovered in Marimo versions 0.20.4 and earlier, allowing attackers to execute code without authentication.

Severity awaiting reviewZero day
Incident date
Published
Read time
5 min
C
CertGPS

Not independently reviewed

AI-assisted content. Editorial policy ยท Suggest a correction

View source
On this page

Note: This analysis is based on publicly available information from source article. Facts are clearly separated from technical analysis.

Executive Summary

On April 8, 2026, Marimo disclosed a critical zero-day vulnerability, CVE-2026-39987, affecting versions 0.20.4 and earlier. The flaw allows unauthenticated clients to access a full interactive shell, running with the same privileges as the Marimo process, via the WebSocket endpoint '/terminal/ws'. Within 12 hours of disclosure, reconnaissance activity was observed from 125 IP addresses, and less than 10 hours later, the first exploitation attempt was detected. This incident highlights the importance of prompt vulnerability disclosure and the need for organizations to prioritize security updates and monitoring.

The Marimo Pre-Authentication RCE Vulnerability has significant implications for users who deployed Marimo as an editable notebook or exposed it to a shared network using --host 0.0.0.0 while in edit mode. The exploitation in the wild has resulted in the exfiltration of sensitive information, emphasizing the severity of the issue.

What Happened: Timeline

โœ… Verified Facts

TimeEvent
April 8Marimo disclosed the flaw
April 8 (12 hours after disclosure)125 IP addresses began reconnaissance activity
April 12, 2026 (less than 10 hours after disclosure)First exploitation attempt observed
April 12, 2026 (less than 3 minutes after exploitation)Credential access phase completed

Technical Deep Dive

Understanding WebSocket

What is it?

WebSocket is a protocol that enables bidirectional, real-time communication between a client and a server over the web. It allows for the establishment of a persistent connection between the client and server, enabling efficient and low-latency communication.

How does it work?

WebSocket uses the HTTP protocol to establish a connection, but once established, it switches to a binary protocol for communication. The client and server negotiate the WebSocket connection using a handshake, and once established, they can exchange messages in both directions.

Security considerations

WebSocket's persistent connection and bidirectional communication make it vulnerable to attacks such as cross-site scripting (XSS) and cross-site request forgery (CSRF). Additionally, the lack of authentication and authorization checks in the Marimo WebSocket endpoint '/terminal/ws' makes it susceptible to unauthorized access.

Marimo is a collaborative, editable notebook application that allows users to create and share documents in real-time. It uses WebSocket to enable bidirectional communication between clients and the server, allowing for efficient and low-latency collaboration.

WebSockets are widely used in web applications to enable real-time communication and collaboration. However, their use also introduces security risks, such as unauthorized access and data exfiltration, if not properly implemented and secured.

Analysis: What Went Wrong

๐Ÿ“Š Professional Analysis

Technical Root Cause

The technical root cause of the Marimo Pre-Authentication RCE Vulnerability is the lack of authentication and authorization checks in the WebSocket endpoint '/terminal/ws'. This allows unauthenticated clients to access a full interactive shell, running with the same privileges as the Marimo process.

Contributing Factors

The contributing factors to this incident include:

  • The use of WebSocket in Marimo, which introduces security risks if not properly implemented and secured.
  • The lack of authentication and authorization checks in the WebSocket endpoint '/terminal/ws'.
  • The prompt disclosure of the vulnerability, which allowed attackers to quickly exploit it.

Lessons for Security Professionals

Key Takeaways

  1. Implement proper authentication and authorization checks: Ensure that all WebSocket endpoints and APIs have proper authentication and authorization checks in place to prevent unauthorized access.
  2. Monitor for vulnerabilities: Regularly monitor for vulnerabilities in your applications and infrastructure to prevent exploitation.
  3. Prioritize security updates: Prioritize security updates and patches to prevent exploitation of known vulnerabilities.

Prevention & Detection

How to Prevent

  • Implement authentication and authorization checks: Ensure that all WebSocket endpoints and APIs have proper authentication and authorization checks in place.
  • Use secure protocols: Use secure protocols, such as TLS, to encrypt communication between clients and servers.
  • Regularly update and patch: Regularly update and patch your applications and infrastructure to prevent exploitation of known vulnerabilities.

How to Detect

  • Monitor for suspicious activity: Monitor for suspicious activity, such as unauthorized access or data exfiltration.
  • Use intrusion detection systems: Use intrusion detection systems to detect and prevent unauthorized access.
  • Regularly scan for vulnerabilities: Regularly scan for vulnerabilities in your applications and infrastructure to prevent exploitation.
View related certification topics

Security+

  • Network security: Understanding network security concepts, including firewalls, intrusion detection systems, and secure protocols.
  • Vulnerability management: Understanding vulnerability management concepts, including vulnerability scanning, patch management, and risk assessment.

CySA+

  • Security architecture: Understanding security architecture concepts, including secure design principles, threat modeling, and risk assessment.
  • Security operations: Understanding security operations concepts, including incident response, threat intelligence, and security information and event management (SIEM).

CISSP

  • Security and risk management: Understanding security and risk management concepts, including risk assessment, risk mitigation, and security governance.
  • Asset security: Understanding asset security concepts, including data classification, data encryption, and access control.

OSCP

  • Penetration testing: Understanding penetration testing concepts, including vulnerability scanning, exploitation, and post-exploitation techniques.
  • Security assessment: Understanding security assessment concepts, including risk assessment, threat modeling, and vulnerability management.

CISM

  • Information security governance: Understanding information security governance concepts, including risk management, compliance, and security policy.
  • Information security program development: Understanding information security program development concepts, including security architecture, security operations, and security awareness.

CEH

  • Network security: Understanding network security concepts, including firewalls, intrusion detection systems, and secure protocols.
  • Vulnerability management: Understanding vulnerability management concepts, including vulnerability scanning, patch management, and risk assessment.

CISM

  • Information security governance: Understanding information security governance concepts, including risk management, compliance, and security policy.
  • Information security program development: Understanding information security program development concepts, including security architecture, security operations, and security awareness.

Source (1)

This analysis is based on: https://www.bleepingcomputer.com/news/security/critical-marimo-pre-auth-rce-flaw-now-under-active-exploitation/


This incident analysis is provided for educational purposes. Facts are cited from the source article, while technical analysis represents professional interpretation.