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.
Published: 2026-08-27
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: OS Command Execution
Action: Immediate Patch
AI Analysis

Impact

The execute_ruby tool is intended to run in a read‑only Ruby sandbox, enforcing a denylist of disallowed patterns and replacing process‑spawning methods in Kernel. However, the pseudo‑terminal library’s spawn functions are not included in the denylist or replaced, so a normal call can reach them and launch a shell. This permits an attacker to execute arbitrary commands with the privileges of the server process, compromising confidentiality, integrity, and availability of the entire system.

Affected Systems

The affected product is the Rails micro‑control‑protocol server (rails‑mcp‑server) from maquina‑app. Versions 1.4.0 through 1.6.0 are vulnerable. Version 1.6.1 adds a data‑only whitelist and blocks dynamic dispatch to execution entry points, and 2.0.0 removes the execute_ruby tool entirely.

Risk and Exploitability

The CVSS score of 8.6 classifies this as a high‑severity flaw. EPSS is not available and the vulnerability is not listed in the KEV catalog, so current exploitation probability is unclear. The flaw can be triggered by a normal call to execute_ruby, enabling an attacker to spawn a shell and run arbitrary commands. The attack requires no special privileges beyond those of the server process, making the risk significant until mitigation actions are taken.

Generated by OpenCVE AI on August 27, 2026 at 18:16 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor patch to upgrade to version 1.6.1 or newer, or to version 2.0.0 where the vulnerable tool is removed.
  • If an upgrade is not immediately possible, disable the execute_ruby functionality or proactively block access to PTY spawn methods in the application code.
  • Implement process‑execution monitoring and enforce least privilege on the server process to detect and prevent unauthorized command execution.

Generated by OpenCVE AI on August 27, 2026 at 18:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 28 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Maquina-app
Maquina-app rails-mcp-server
Vendors & Products Maquina-app
Maquina-app rails-mcp-server

Thu, 27 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
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.
Title rails-mcp-server 1.4.0 through 1.6.0 OS Command Execution via execute_ruby PTY Escape
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Maquina-app Rails-mcp-server
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-29T11:48:11.453Z

Reserved: 2026-08-26T16:00:32.686Z

Link: CVE-2026-81097

cve-icon Vulnrichment

Updated: 2026-08-27T19:00:40.771Z

cve-icon NVD

Status : Received

Published: 2026-08-27T17:20:52.110

Modified: 2026-08-28T20:20:09.293

Link: CVE-2026-81097

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T16:14:30Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')