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