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."
Fix
Patch, vendor advisory and mitigation references on NVD 4
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218 Exploit, Issue Tracking, Vendor Advisory
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218#issue-3343855120 Exploit, Issue Tracking, Vendor Advisory
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218 Exploit, Issue Tracking, Vendor Advisory
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218#issue-3343855120 Exploit, Issue Tracking, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 2.1 · wonderwhy-erNVD modified 2026-10-08 13:10
Affected (CPE criteria) 1
cpe:2.3:a:wonderwhy-er:desktopcommandermcp:*:*:*:*:*:*:*:*
References 9
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218 Exploit, Issue Tracking, Vendor Advisory
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218#issue-3343855120 Exploit, Issue Tracking, Vendor Advisory
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218#issuecomment-3214135034 Issue Tracking
- https://vuldb.com/?ctiid.327609 Permissions Required, VDB Entry
- https://vuldb.com/?id.327609 Third Party Advisory, VDB Entry
- https://vuldb.com/?submit.668005 Third Party Advisory, VDB Entry
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218 Exploit, Issue Tracking, Vendor Advisory
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218#issue-3343855120 Exploit, Issue Tracking, Vendor Advisory
- https://github.com/wonderwhy-er/DesktopCommanderMCP/issues/218#issuecomment-3214135034 Issue Tracking