PT-2026-31594

CVE-2026-39987

·

Published

2026-04-08

·

Updated

2026-10-22

Description by

CVSS 4.0
10
Critical
MetricsAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Marimo versions prior to 0.23.0
Description Marimo contains a pre-authentication remote code execution (RCE) flaw. The terminal WebSocket endpoint /terminal/ws fails to perform authentication validation, whereas other endpoints like /ws correctly utilize the validate auth() function. This omission allows an unauthenticated remote attacker to establish a connection and obtain a full PTY shell, enabling the execution of arbitrary system commands with the privileges of the notebook process. In default Docker deployments, these commands may run as root.
Real-world incidents have demonstrated the severity of this issue, including a case where an attacker used an LLM agent to autonomously conduct post-exploitation. The agent harvested cloud credentials, retrieved an SSH private key from AWS Secrets Manager, and exfiltrated an entire PostgreSQL database in under one hour. Other attacks have shown that a skilled human attacker can pivot from the initial RCE to a bastion host in as little as eight seconds using custom Python toolkits.
Recommendations Update Marimo to version 0.23.0 or later. As a temporary workaround, restrict network access to the /terminal/ws endpoint or disable the terminal feature entirely.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-2679-6MX9-H9XC
PYSEC-2026-407
Found an issue in the description? Have something to add? Feel free to write us 👾