


Perceptive Security
SOC/SIEM Consultancy

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 method…
Published:
27 August 2026 at 00:00:00
Alert date:
27 August 2026 at 20:17:27
Source:
nvd.nist.gov
Web Technologies, Supply Chain & Dependencies
CVE-2026-81097 affects rails-mcp-server versions 1.4.0 through 1.6.0, where the execute_ruby tool's sandbox can be escaped via the pseudo-terminal (PTY) library's spawn entry points. The tool was documented as a read-only Ruby sandbox enforced by a pattern denylist and replacements for Kernel process-spawning methods. However, PTY spawn entry points were never included in the denylist, allowing an attacker to start a shell and execute arbitrary OS commands as the server's running account. The vulnerability was introduced when the denylist was added in version 1.4.0 and persisted through 1.6.0. Version 1.6.1 mitigates the issue by restricting allowed requires to a data-only list and blocking dynamic dispatch to execution entry points. Version 2.0.0 removes the vulnerable tool entirely.
Technical details
Mitigation steps:
Affected products:
rails-mcp-server 1.4.0
rails-mcp-server 1.5.0
rails-mcp-server 1.6.0
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-81097
https://github.com/maquina-app/rails-mcp-server
https://github.com/maquina-app/rails-mcp-server/pull/59
https://github.com/maquina-app/rails-mcp-server/releases
https://www.vulncheck.com/advisories/rails-mcp-server-1.4.0-through-1.6.0-os-command-execution-via-execute-ruby-pty-escape
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
