|
| 1 | +--- |
| 2 | +layout: advisory |
| 3 | +title: 'CVE-2026-81097 (rails-mcp-server): The execute_ruby tool is documented as |
| 4 | + a read-only Ruby sandbox' |
| 5 | +comments: false |
| 6 | +categories: |
| 7 | +- rails-mcp-server |
| 8 | +advisory: |
| 9 | + gem: rails-mcp-server |
| 10 | + cve: 2026-81097 |
| 11 | + ghsa: 247c-497m-jx82 |
| 12 | + url: https://nvd.nist.gov/vuln/detail/CVE-2026-81097 |
| 13 | + title: The execute_ruby tool is documented as a read-only Ruby sandbox |
| 14 | + date: 2026-08-27 |
| 15 | + description: |- |
| 16 | + The execute_ruby tool is documented as a read-only Ruby sandbox |
| 17 | + and is enforced by a pattern denylist together with replacements |
| 18 | + for the process-spawning methods on Kernel. |
| 19 | +
|
| 20 | + The pseudo-terminal library's spawn entry points are neither in the |
| 21 | + denylist nor replaced, so a normal tool call could reach them and |
| 22 | + start a shell, executing commands as the account running the server |
| 23 | + and outside the guarded methods. |
| 24 | +
|
| 25 | + The denylist was introduced with the tool in 1.4.0 and |
| 26 | + never covered those entry points through 1.6.0. |
| 27 | +
|
| 28 | + Version 1.6.1 restricts the requires the sandbox permits to a |
| 29 | + data-only list and blocks dynamic dispatch to execution entry |
| 30 | + points. |
| 31 | +
|
| 32 | + 2.0.0 removes the tool. |
| 33 | + cvss_v3: 8.4 |
| 34 | + cvss_v4: 8.6 |
| 35 | + unaffected_versions: |
| 36 | + - "< 1.4.0" |
| 37 | + patched_versions: |
| 38 | + - ">= 1.6.1" |
| 39 | + related: |
| 40 | + url: |
| 41 | + - https://nvd.nist.gov/vuln/detail/CVE-2026-81097 |
| 42 | + - https://rubygems.org/gems/rails-mcp-server/versions/2.0.0 |
| 43 | + - https://github.com/maquina-app/rails-mcp-server/releases/tag/v2.0.0 |
| 44 | + - https://rubygems.org/gems/rails-mcp-server/versions/1.6.1 |
| 45 | + - https://github.com/maquina-app/rails-mcp-server/releases/tag/v1.6.1 |
| 46 | + - https://github.com/maquina-app/rails-mcp-server/pull/59 |
| 47 | + - https://www.vulncheck.com/advisories/rails-mcp-server-1.4.0-through-1.6.0-os-command-execution-via-execute-ruby-pty-escape |
| 48 | + - https://github.com/advisories/GHSA-247c-497m-jx82 |
| 49 | + notes: "- cvss_v3 and cvss_v4 from nvd.nist.gov URL.\n" |
| 50 | +--- |
0 commit comments