Back

HIGH

rails-mcp-server 1.4.0 through 1.6.0 OS Command Execution via execute_ruby PTY Escape

Published Aug 27, 2026

Description

The execute_ruby tool is documented as a read-only Ruby sandbox and is enforced by a pattern denylist together with replacements for the process-spawning methods on Kernel. The pseudo-terminal library's spawn entry points are neither in the denylist nor replaced, so a normal tool call could reach them and start a shell, executing commands as the account running the server and outside the guarded methods. The denylist was introduced with the tool in 1.4.0 and never covered those entry points through 1.6.0. Version 1.6.1 restricts the requires the sandbox permits to a data-only list and blocks dynamic dispatch to execution entry points; 2.0.0 removes the tool.

Affected products

Remediation

No remediation recorded yet.

Metrics

References (4)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner VulnCheck
Published Aug 27, 2026
Updated Aug 29, 2026
Reserved Aug 26, 2026
CISA Vulnrichment
Updated Aug 27, 2026
NVD
Status Received
Modified Aug 28, 2026
Red Hat
Severity n/a
Public date n/a