Description
A vulnerability has been found in wonderwhy-er DesktopCommanderMCP up to 0.2.13. The affected element is the function extractBaseCommand of the file src/command-manager.ts of the component Absolute Path Handler. Such manipulation leads to os command injection. The attack may be performed from remote. The exploit has been disclosed to the public and may be used. The vendor explains: "The usual use case is that AI is asked to do something, picks commands itself, and typically uses simple command names without absolute paths. It's curious why a user would ask the model to bypass restrictions this way. (...) This could potentially be a problem, but we are yet to hear reports of this being an issue in actual workflows. We'll leave this issue open for situations where people may report this as a problem for the long term."
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| wonderwhy-er | DesktopCommanderMCP | 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9, 0.2.10, 0.2.11, 0.2.12, 0.2.13 | — |
References
- VDB-327609 | wonderwhy-er DesktopCommanderMCP Absolute Path command-manager.ts extractBaseCommand os command injection vdb-entry technical-description
- VDB-327609 | CTI Indicators (IOB, IOC, TTP, IOA) signature permissions-required
- Submit #668005 | wonderwhy-er DesktopCommanderMCP 0.2.13 OS Command Injection third-party-advisory
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218 issue-tracking
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218#issuecomment-3214135034 issue-tracking
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218#issue-3343855120 exploit issue-tracking