{"id":"CVE-2025-59377","kind":"vulnerability","aliases":["CVE-2025-59377","GHSA-4hqq-7q79-932p"],"related":[],"title":"mcp-kubernetes-server has an OS Command Injection vulnerability","description":"`feiskyer/mcp-kubernetes-server` through **0.1.11** allows **OS command injection** via the `/mcp/kubectl` endpoint. The handler constructs a shell command with user-supplied arguments and executes it with `subprocess` using `shell=True`, enabling injection through shell metacharacters (e.g., `;`, `&&`, `$()`), even when the server is running in **read-only** mode.\n\nA remote, unauthenticated attacker can execute arbitrary OS commands on the host, resulting in full compromise of confidentiality, integrity, and availability.\n\nThis issue is **distinct from** `mcp-server-kubernetes` and from **CVE-2025-53355**.","summary":"mcp-kubernetes-server passes user-supplied arguments to a shell command on its /mcp/kubectl endpoint using shell=True. An unauthenticated remote attacker can inject shell metacharacters and run arbitrary commands on the host, even in read-only mode.","severity":"critical","cvss":9.8,"epss":0.01203,"exploited":false,"exploited_at":null,"products":[{"name":"mcp-kubernetes-server","fixed":[],"affected":"<= 0.1.11","ecosystem":"pypi"},{"name":"feisky mcp-kubernetes-server","fixed":[],"affected":"<= 0.1.11","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["ai-tooling","cwe-78","kubernetes","mcp","python"],"not_affected_if":["endpoint-not-exposed"],"how_to_check":"- Check the installed version with `pip show mcp-kubernetes-server`; versions through `0.1.11` are affected.\n- Check whether the server's /mcp/kubectl endpoint is reachable from untrusted networks.","fix":"- `mcp-kubernetes-server`: fixed version unknown from the sources; the affected range is through `0.1.11`.","status":"open","published_at":"2025-09-15T14:15:44+00:00","first_seen_at":"2026-11-16T15:42:57+00:00","triaged_at":"2026-11-16T15:44:00+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"ai-tooling","confidence":0.8,"triage":{"at":"2026-11-16T15:44:00Z","model":"claude-haiku-5-5","output":{"fix":"- `mcp-kubernetes-server`: fixed version unknown from the sources; the affected range is through `0.1.11`.","reach":"network","title":"mcp-kubernetes-server: unauthenticated OS command injection via kubectl endpoint","impact":"high","summary":"mcp-kubernetes-server passes user-supplied arguments to a shell command on its /mcp/kubectl endpoint using shell=True. An unauthenticated remote attacker can inject shell metacharacters and run arbitrary commands on the host, even in read-only mode.","audience":"developers","category":"ai-tooling","nicknames":[],"who_cares":["mcp","kubernetes","python"],"confidence":0.8,"fix_status":"unknown","needs_auth":"no","worst_case":"Attacker runs arbitrary OS commands on the host, full compromise","analyst_note":"Find the fixed version and confirm whether the HTTP transport is the default; check the GHSA page at https://github.com/advisories/GHSA-4hqq-7q79-932p.","how_to_check":"- Check the installed version with `pip show mcp-kubernetes-server`; versions through `0.1.11` are affected.\n- Check whether the server's /mcp/kubectl endpoint is reachable from untrusted networks.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["endpoint-not-exposed"],"who_is_affected":"Teams running feiskyer/mcp-kubernetes-server (the PyPI package mcp-kubernetes-server) as an MCP server, especially where its HTTP endpoint is exposed to a network. The sources say the flaw applies even when the server runs in read-only mode. Installations that do not expose the /mcp/kubectl endpoint to untrusted callers are less exposed. The sources do not name a fixed version.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000813,"input_tokens":4729,"output_tokens":680,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2025':12A,20A,160C '-53355':161C '-59377':13A,21A '-78':35B '/mcp/kubectl':54B,89C '0.1.11':82C '4hqq':16A '7q79':17A '932p':18A 'ai':32B 'ai-tool':31B 'allow':83C 'arbitrari':69B,133C 'argument':47B,101C 'attack':62B,130C 'avail':147C 'command':8A,51B,70B,85C,96C,135C 'compromis':142C 'confidenti':144C 'construct':93C 'cve':11A,19A,159C 'cwe':34B 'distinct':151C 'e.g':115C 'enabl':110C 'endpoint':55B,90C 'even':74B,116C 'execut':103C,132C 'feisky':26A 'feiskyer/mcp-kubernetes-server':80C 'full':141C 'ghsa':15A 'ghsa-4hqq-7q79-932p':14A 'handler':92C 'host':73B,138C 'inject':9A,64B,86C,111C 'integr':145C 'issu':149C 'kubernet':3A,36B,41B,156C 'kubernetes':24A,29A 'mcp':2A,23A,28A,37B,40B,154C 'mcp-kubernetes-serv':1A,39B 'mcp-kubernetes-server':22A,27A 'mcp-server-kubernet':153C 'metacharact':66B,114C 'mode':79B,126C 'os':7A,84C,134C 'pass':43B 'python':38B 'read':77B,124C 'read-on':76B,123C 'remot':61B,128C 'result':139C 'run':68B,121C 'server':4A,25A,30A,42B,119C,155C 'shell':50B,57B,65B,95C,108C,113C 'subprocess':106C 'suppli':46B,100C 'tool':33B 'true':58B,109C 'unauthent':60B,129C 'use':56B,107C 'user':45B,99C 'user-suppli':44B,98C 'via':87C 'vulner':10A","nicknames":[],"mitigations":[],"who_affected":"Teams running feiskyer/mcp-kubernetes-server (the PyPI package mcp-kubernetes-server) as an MCP server, especially where its HTTP endpoint is exposed to a network. The sources say the flaw applies even when the server runs in read-only mode. Installations that do not expose the /mcp/kubectl endpoint to untrusted callers are less exposed. The sources do not name a fixed version.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"developers","plain_action":null,"pkeys":["feiskymcpkubernetesserver","mcpkubernetesserver"],"ptokens":["feisky","kubernetes","mcp","server"],"labels":["aitooling","critical","cwe78","kubernetes","mcp","pypi","python","vendor"],"campaign_type":null,"search_a":"'-2025':12A,20A '-59377':13A,21A '4hqq':16A '7q79':17A '932p':18A 'command':8A 'cve':11A,19A 'feisky':26A 'ghsa':15A 'ghsa-4hqq-7q79-932p':14A 'inject':9A 'kubernet':3A 'kubernetes':24A,29A 'mcp':2A,23A,28A 'mcp-kubernetes-serv':1A 'mcp-kubernetes-server':22A,27A 'os':7A 'server':4A,25A,30A 'vulner':10A","search_b":"'-78':35B '/mcp/kubectl':54B 'ai':32B 'ai-tool':31B 'arbitrari':69B 'argument':47B 'attack':62B 'command':51B,70B 'cwe':34B 'endpoint':55B 'even':74B 'host':73B 'inject':64B 'kubernet':36B,41B 'mcp':37B,40B 'mcp-kubernetes-serv':39B 'metacharact':66B 'mode':79B 'pass':43B 'python':38B 'read':77B 'read-on':76B 'remot':61B 'run':68B 'server':42B 'shell':50B,57B,65B 'suppli':46B 'tool':33B 'true':58B 'unauthent':60B 'use':56B 'user':45B 'user-suppli':44B","search_c":"'-2025':160C '-53355':161C '/mcp/kubectl':89C '0.1.11':82C 'allow':83C 'arbitrari':133C 'argument':101C 'attack':130C 'avail':147C 'command':85C,96C,135C 'compromis':142C 'confidenti':144C 'construct':93C 'cve':159C 'distinct':151C 'e.g':115C 'enabl':110C 'endpoint':90C 'even':116C 'execut':103C,132C 'feiskyer/mcp-kubernetes-server':80C 'full':141C 'handler':92C 'host':138C 'inject':86C,111C 'integr':145C 'issu':149C 'kubernet':156C 'mcp':154C 'mcp-server-kubernet':153C 'metacharact':114C 'mode':126C 'os':84C,134C 'read':124C 'read-on':123C 'remot':128C 'result':139C 'run':121C 'server':119C,155C 'shell':95C,108C,113C 'subprocess':106C 'suppli':100C 'true':109C 'unauthent':129C 'use':107C 'user':99C 'user-suppli':98C 'via':87C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2025-09-15T14:15:44+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-4hqq-7q79-932p","url":"https://github.com/advisories/GHSA-4hqq-7q79-932p","severity":"critical","published_at":"2025-09-15T15:31:24+00:00","modified_at":"2026-11-16T15:41:09+00:00","first_seen_at":"2026-11-16T15:42:57+00:00","fetched_at":"2026-11-16T15:46:58+00:00","note":null},{"source":"nvd","external_id":"CVE-2025-59377","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59377","severity":null,"published_at":"2025-09-15T14:15:44+00:00","modified_at":"2026-06-17T09:46:02+00:00","first_seen_at":"2026-11-16T16:08:50+00:00","fetched_at":"2026-11-16T16:08:50+00:00","note":null}],"documents":[{"id":171135,"url":"https://github.com/william31212/CVE-Requests-1896609","title":"Third-party advisory: github.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.01203,"url":"https://api.first.org/data/v1/epss?cve=CVE-2025-59377"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}