Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-39987-Marimo-RCE-SOC-Detection — Security research and SOC investigation of CVE-2026-39987 using Docker, Nginx, Linux process monitoring, Splunk SIEM, and SPL detection rules. | Kitploit
Tools/GitHubGitHub/laremontada12/cve-2026-39987-marimo-rce-soc-detection
Container SecurityVulnerability AnalysisWeb SecurityLearning & EducationIncident ResponseLog AnalysisLabs & Practice
GitHub
Share
laremontada12/cve-2026-39987-marimo-rce-soc-detection

CVE-2026-39987-Marimo-RCE-SOC-Detection

Security research and SOC investigation of CVE-2026-39987 using Docker, Nginx, Linux process monitoring, Splunk SIEM, and SPL detection rules.

View Repository
119 days agoNot yet reviewed

CVE-2026-39987 – Marimo Pre-authentication RCE | Vulnerability Research & SOC Investigation

A research, reproduction, and analysis project for CVE-2026-39987 — a missing authentication vulnerability in Marimo's terminal WebSocket endpoint that can lead to pre-authentication remote code execution (RCE) in affected configurations.

The project combines vulnerability research with Blue Team/SOC-oriented monitoring and investigation, using Docker, Nginx, Linux process monitoring, and Splunk SIEM.

Main contents include: root cause analysis, PoC validation in a controlled environment, patch comparison, WebSocket and process log collection, SPL detection query development, and attack timeline reconstruction.

1. Vulnerability Overview

InformationDetails
CVE IDCVE-2026-39987
ProductMarimo
Vulnerability typeMissing authentication / Pre-authentication RCE
CWE classificationCWE-306
SeverityCritical
Tested affected version0.20.4
Tested patched version0.23.0
Affected endpoint/terminal/ws
Security advisoryGHSA-2679-6mx9-h9xc

The root cause lies in the Marimo terminal WebSocket endpoint lacking the necessary authentication step. In the affected deployment, the system checks the terminal usage condition and application mode but does not fully verify the identity of the connecting client.

In a vulnerable configuration, this can allow unauthenticated users to access server-side terminal functionality.

2. Project Objectives

The project consists of two complementary tracks.

2.1. Vulnerability Research

  • Understand the affected Marimo components.
  • Build separate Docker environments for the vulnerable and patched versions.
  • Analyze the root cause of the vulnerability.
  • Analyze the WebSocket connection flow and authentication process.
  • Reproduce the vulnerability in a controlled test environment.
  • Read and compare the official security patch.
  • Run security regression tests.
  • Provide risk mitigation recommendations.

2.2. SOC-oriented Detection and Investigation

  • Collect HTTP/WebSocket access logs from Nginx.
  • Monitor Linux processes inside the vulnerable Marimo container.
  • Ingest log data into Splunk SIEM.
  • Write detection rules/queries using Splunk Processing Language (SPL).
  • Correlate network events with executed processes.
  • Build an attack timeline from multiple log sources.
  • Test positive and negative detection cases.
  • Write an investigation report and clearly state the limitations of the detection method.

3. Lab Environment

ComponentConfiguration
Host operating systemWindows 11
Container platformDocker Desktop
Vulnerable Marimo0.20.4
Patched Marimo0.23.0
Python in containerPython 3.12
Regression testingPython 3.13, pytest
Reverse proxy serverNginx
SIEM platformSplunk Enterprise
Process monitoringCustom Python script reading /proc
Network scopeLocalhost only

The two Marimo versions run in separate Docker environments. The SOC extension is tested against the vulnerable Marimo through an internal Nginx reverse proxy.

All testing activities were performed on systems under the control of the author.

4. Vulnerability Reproduction Results

4.1. Vulnerable Version – Marimo 0.20.4

PoC connects to the terminal WebSocket endpoint without providing authentication credentials and recorded the results of server-side command execution inside the Docker container.

Execution privilege result:

uid=0(root) gid=0(root) groups=0(root)

The test also recorded the container's hostname and working directory.

The results are consistent with successfully reproducing the Pre-authentication RCE behavior in an isolated lab. The root privilege here is the privilege inside the container, and does not prove that the Windows host has been compromised or that privileges have been escalated beyond the existing privileges of the container process.

Evidence screenshot:

Command execution result on the vulnerable version

4.2. Patched version – Marimo 0.23.0

Attempt an unauthenticated WebSocket connection to the patched version.

Observed results:

WebSocketBadStatusException
Handshake status 403 Forbidden

The server refused the connection during the WebSocket connection setup phase.

Evidence screenshot:

Patched version rejects WebSocket connection

5. Security regression testing

Two official Marimo authentication validation tests were run against the source code of version 0.23.0.

TestResult
test_terminal_ws_unauthorizedPASSED
test_terminal_ws_wrong_tokenPASSED

pytest summary:

2 passed
34 deselected

The tests confirm the expected authentication rejection behavior in the test environment. They use Starlette's TestClient and are run separately from the manual verification with Docker.

Evidence screenshot:

Results of the two regression tests

6. Root cause analysis and patch

The WebSocket terminal endpoint in Marimo 0.20.4 lacked the authentication check mechanism added in the official patch. The patch adds an authentication check step before processing the WebSocket terminal when authentication mode is enabled.

The following contents were analyzed:

  • The source code implementing the WebSocket terminal endpoint.
  • The authentication check behavior.
  • The WebSocket flow in the vulnerable version and the protected version.
  • The patch changes in terminal.py.
  • The authentication tests in test_terminal.py.

Official patch: Marimo PR #9098

7. Technical analysis documentation

DocumentContent
Marimo overviewApplication and vulnerability overview
Root cause analysisMissing authentication check
WebSocket flow analysisConnection flow diagram
Patch change analysisComparison with the official patch
Patch verificationManual testing and regression
Security research reportSummary of research results
Mitigation measuresRecommendations for protecting systems

8. SOC detection and incident investigation

The Blue Team/SOC extension aims to detect and analyze traces when reproducing CVE-2026-39987 in the lab.

Data was aggregated from Nginx WebSocket access logs, Linux process observation, and Splunk SIEM to reconstruct the sequence of suspicious command execution behavior.

8.1. SOC lab architecture

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    957
  • 2

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    743
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    673
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    491
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    446
  • 6

    mcp-reverse

    1llu50ry/mcp-reverse

    MCP server exposing 180+ reverse-engineering tools that aggregate Ghidra, IDA, x64dbg, Frida and 56 other backends with native binary parsers and a 4,200-skill knowledge base.

    335

Explore all tools

Browse our collection of tools

View all tools →