CyberRota Analysis
AI-GeneratedJupyter Enterprise Gateway versions 2.0.0rc2 through 3.2.x are vulnerable to Server Side Template Injection (SSTI) due to insecure handling of environment variables in Kubernetes manifests, allowing attackers to execute arbitrary Python code and OS commands. This vulnerability can lead to the theft of Kubernetes service account tokens, enabling full compromise of the Kubernetes cluster, including the ability to schedule privileged pods. Organizations using affected versions in their Apache, Docker, or Kubernetes environments should prioritize upgrading to version 3.3.0 or later to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Jupyter Enterprise Gateway launches remote Jupyter Notebook kernels across distributed clusters like Apache Spark, Kubernetes, and Docker Swarm. In versions 2.0.0rc2 and above, prior to 3.3.0, the environment variables (KERNEL_XXX) used during the rendering of the Kubernetes manifest are vulnerable to Server Side Template Injection (SSTI). By including Jinja2 template expressions it is possible to execution Python code and OS Commands in the Enterprise Gateway service. The code can use or steal the Kubernetes service account token, which can steal Kubernetes secrets and be used to fully compromise the Kubernetes cluster by scheduling a privileged pod or a pod with a hostPath volume mount. This issue has been fixed in version 3.3.0.
Related CVEs
Other vulnerabilities affecting the same vendor(s)