CVE-2026-81097 rails-mcp-server 1.4.0 through 1.6.0 OS Command Execution via execute_ruby PTY Escape
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| rubygems rails-mcp-server | >= 1.4.0, <= 1.6.0 | after 1.6.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems rails-mcp-server | >= 1.4.0, <= 1.6.0 | No fix listed |
References
- github.com product
- github.com issue-tracking patch
- github.com release-notes
- VulnCheck Advisory: rails-mcp-server 1.4.0 through 1.6.0 OS Command Execution via execute_ruby PTY Escape third-party-advisory
- ENISA EUVD EUVD-2026-67025 third-party-advisory