CVE-2026-81097: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in maquina-app rails-mcp-server
Description
CVE-2026-81097 is a high-severity OS command injection vulnerability in the maquina-app rails-mcp-server affecting versions 1.4.0 through 1.6.0. The vulnerability arises because the execute_ruby tool, intended as a read-only Ruby sandbox, uses a denylist pattern and method replacements to restrict process spawning. However, the pseudo-terminal library's spawn entry points are not covered by this denylist or replacements, allowing an attacker to execute arbitrary commands as the server's user. Version 1.6.1 introduces restrictions on permitted requires and blocks dynamic dispatch to execution entry points, and version 2.0.0 removes the vulnerable tool entirely.
CVSS v4.0
Score 8.6high
Affected software
maquina-app
rails-mcp-server
pkg:github/rails-mcp-serverRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The execute_ruby tool in maquina-app rails-mcp-server versions 1.4.0 through 1.6.0 is designed as a read-only Ruby sandbox enforced by a denylist and method replacements to prevent process spawning. However, the pseudo-terminal library's spawn entry points are not included in the denylist or replaced, enabling normal tool calls to reach them and spawn a shell. This allows execution of arbitrary OS commands with the privileges of the server process. The denylist was introduced in version 1.4.0 but did not cover these entry points through 1.6.0. Version 1.6.1 restricts the sandbox's permitted requires to a data-only list and blocks dynamic dispatch to execution entry points, mitigating the issue. Version 2.0.0 removes the execute_ruby tool entirely, eliminating the vulnerability.
Potential Impact
An attacker able to invoke the execute_ruby tool in affected versions can execute arbitrary OS commands with the privileges of the rails-mcp-server process. This can lead to unauthorized command execution and potential full compromise of the server environment. The vulnerability has a CVSS 4.0 score of 8.6, indicating high severity with local attack vector, low attack complexity, no privileges or user interaction required, but high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
No official patch or remediation level is stated in the available data. However, versions 1.6.1 and later include mitigations by restricting the sandbox's permitted requires and blocking dynamic dispatch to execution entry points, and version 2.0.0 removes the vulnerable execute_ruby tool entirely. Users should upgrade to at least version 1.6.1 to benefit from these mitigations or to version 2.0.0 to remove the vulnerable component. Patch status is not yet confirmed by a vendor advisory; check the vendor's official guidance for current remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-26T16:00:32.686Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a906bafacd9273b4983a0f1
Added to database: 08/27/2026, 16:54:07 UTC
Last enriched: 09/08/2026, 12:23:10 UTC
Last updated: 10/11/2026, 06:48:19 UTC
Views: 51
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.