Jupyter Enterprise Gateway: Jinja2 Template Server Side Template Injection results in Remote Code Execution
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| jupyter-server | enterprise_gateway | affected |
|
Configuration 1 [-]
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Jupyter-server | Enterprise Gateway |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-f49j-v924-fx9w | Jupyter Enterprise Gateway: Jinja2 Template Server Side Template Injection resulting in Remote Code Execution |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.767% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Jupyter-server
Jupyter-server enterprise Gateway |
|
| Vendors & Products |
Jupyter-server
Jupyter-server enterprise Gateway |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Jupyter Enterprise Gateway: Jinja2 Template Server Side Template Injection results in Remote Code Execution | |
| Weaknesses | CWE-1336 | |
| References |
| |
| Metrics |
cvssV4_0
|