{"full_name":"Ne0nd0g/merlin","owner":"Ne0nd0g","name":"merlin","shard":"1","url":"https://github.com/Ne0nd0g/merlin","description":"Merlin is a cross-platform post-exploitation HTTP/2 Command & Control  server and agent written in golang.","homepage":"","topics":["http2","command-and-control","c2","golang","post-exploitation","agent"],"tag_pages":["agent","golang","http2","post-exploitation"],"language":"Go","license":"GPL-3.0","avatar":"https://avatars.githubusercontent.com/u/5638474?u=5065eb6a987774f0034ec1cd07d3578f2f44a9b0&v=4","created_at":"2017-01-06T11:18:20Z","pushed_at":"2026-10-15T02:23:59Z","metrics":{"stars":5635,"forks":833,"watchers":135,"issues":109,"prs":55,"releases":33,"issues_open":16,"issues_closed":93,"prs_open":4,"prs_closed":16,"prs_merged":35,"discussions":0},"growth":{"day":{"stars":1,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[5629,5629,5631,5631,5632,5634,5635],"forks":[833,833,833,833,833,833,833],"watchers":[null,135,135,135,135,135,135],"issues_open":[null,16,16,16,16,16,16],"prs_open":[null,4,4,4,4,4,4]},"boards":{},"same_owner":[],"issues":[{"number":163,"title":"Server unexpectedly crashed.","comments":15,"created_at":"2024-10-12T09:22:05Z"},{"number":105,"title":"Feature Request: Persistent Listener and Agent Information","comments":8,"created_at":"2021-05-07T08:08:55Z"},{"number":86,"title":"Feature Request: Module Upload","comments":5,"created_at":"2020-01-06T07:35:27Z"},{"number":114,"title":"MimiPenguin & BASH Path Error","comments":4,"created_at":"2021-08-09T10:22:03Z"},{"number":5,"title":"Feature Request: Create Agent Alias","comments":4,"created_at":"2017-12-22T04:09:28Z"},{"number":153,"title":"Feature Request: View Completed Agent Job Results On-Demand","comments":3,"created_at":"2024-02-12T18:55:14Z"},{"number":18,"title":"Feature Request: Merlin Server Daemon Mode","comments":2,"created_at":"2018-05-04T07:05:33Z"},{"number":22,"title":"Feature Request: Windows System proxy support","comments":1,"created_at":"2018-08-22T08:09:00Z"}],"discussions":[],"latest_release":{"name":"v2.2.2","tag":"v2.2.2","published_at":"2026-10-15T02:20:55Z","body":"# Merlin Server v2.2.2\r\n\r\n**Security release** — fixes an authenticated operator → teamserver remote code execution in the SharpGen module. Upgrading is recommended for anyone running a Merlin teamserver.\r\n\r\n## Security\r\n\r\n### GHSA-gmq6-43v4-9vrv — SharpGen operator-to-server RCE\r\nThe SharpGen module passed the operator-supplied `dotnetbin` and `sharpgenbin` options straight into `exec.Command()` after only checking that the files existed — not that they were the expected executables. An authenticated operator could set `dotnetbin=/bin/bash` and `sharpgenbin=<a file downloaded to the server>` and execute arbitrary commands on the teamserver, frequently as **root**.\r\n\r\n- **Severity:** Low (requires an authenticated operator)\r\n- **Affected:** Merlin Server &le; 2.2.1\r\n- **Fixed in:** 2.2.2\r\n- Reported by [@lesteratSOL](https://github.com/lesteratSOL) — thank you for the responsible disclosure.\r\n\r\n## Changes\r\n\r\n**Fixed**\r\n- Pin the `dotnet` executable and the SharpGen compiler DLL to fixed, server-side locations so an operator can no longer choose which binary the server runs. Compiling arbitrary C# still works — that input is compiler data, never executed on the server.\r\n\r\n**Changed**\r\n- Removed the now-inert `dotnetbin` and `sharpgenbin` options from the SharpGen module (both the module definition and the RPC handler).\r\n\r\n**Added**\r\n- New `-dotnetBin` server flag to configure the path to the `dotnet` executable (default `dotnet`, resolved from `PATH`). This is a **server-launch** setting — chosen by whoever runs the teamserver, not an operator-controllable option — so it restores install-location flexibility without reopening the vulnerability.\r\n\r\n## Upgrade notes\r\n- **Server-only release.** The Merlin Agent and Merlin CLI are unaffected and do not need updating for this fix.\r\n- If you previously pointed the SharpGen module at a `dotnet` outside your `PATH` (e.g. installed via `dotnet-install.sh` to `~/.dotnet`), set it at launch instead:\r\n  ```bash\r\n  ./merlinServer -dotnetBin /path/to/dotnet ...\r\n  ```\r\n- The SharpGen compiler DLL is now always loaded from `data/src/cobbr/SharpGen/bin/release/netcoreapp2.1/SharpGen.dll` under the Merlin root (the standard submodule build location).\r\n\r\n---\r\n\r\n**The `data/bin` directory contains compiled versions of the Merlin CLI and Merlin Agents**\r\n\r\nMerlin documentation and Wiki can be found [here](https://merlin-c2.readthedocs.io/en/latest/)\r\n\r\n> The compressed files have a password of `merlin`\r\n","is_prerelease":false},"readme":false,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}