Critical Marimo RCE Exploited Within 10 Hours of Disclosure

Summary
Sysdig reports that attackers exploited Marimo’s unauthenticated CVE-2026-39987 WebSocket flaw within 10 hours of disclosure, accessing credentials. Marimo released version 0.23.0 and recommends restricting access and rotating exposed secrets.
Key points
- CVE-2026-39987 affects Marimo versions 0.20.4 and earlier; the /terminal/ws endpoint exposed an interactive shell without authentication.
- Sysdig observed exploitation less than 10 hours after disclosure and reconnaissance from 125 IP addresses within 12 hours.
- Researchers reported attackers used the shell for manual reconnaissance and targeted .env variables, cloud credentials, application secrets, and SSH-related files.
- Sysdig says the credential-access phase took less than three minutes; attackers returned for a second session roughly an hour later.
- The observed operators did not attempt to install persistence, cryptominers, or backdoors.
- Marimo released version 0.23.0 to address the flaw; recommended measures include restricting external access, monitoring /terminal/ws, and rotating exposed secrets.
- If upgrading is not possible, the article recommends blocking or disabling access to /terminal/ws.
Article Details
- Vulnerability Types
- Unauthenticated remote code execution through an exposed WebSocket terminal endpoint
- Severity
- Critical (9.3/10, assessed by GitHub)
- Affected Versions
- Marimo 0.20.4 and earlier
- Exploitation Status
- active
- Exploit Availability
- unknown
- Patch Status
- available
- Workarounds
- Block or disable access to the /terminal/ws endpoint.
- Restrict external access via a firewall.
- Rotate exposed secrets.
MITRE ATT&CK
T1033 · System Owner/User DiscoveryAttackers ran whoami to identify the account under which the Marimo process was running.T1059.004 · Unix ShellAfter connecting to /terminal/ws, attackers executed commands through the interactive shell, including pwd, whoami, and ls.T1083 · File and Directory DiscoveryAttackers used ls and directory navigation while examining the environment and attempting to locate files.T1190 · Exploit Public-Facing ApplicationAttackers exploited Marimo's unauthenticated /terminal/ws endpoint to gain remote code execution.T1552.001 · Credentials In FilesAttackers targeted the .env file and extracted environment variables, including cloud credentials and application secrets.T1552.004 · Private KeysAttackers checked SSH-related locations and probed for SSH keys during credential harvesting.
