CVE-2026-44181 Jupyter Enterprise Gateway: Jinja2 Template Server Side Template Injection results in Remote Code Execution
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
- Technology
- DockerKubernetes
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| jupyter enterprise gateway | = 2.0.0; = 2.0.0-rc2; >= 2.1.0, < 3.3.0 | 3.3.0 | Fixed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.0.0; = 2.0.0rc2; = 2.1.0; = 2.1.1 +19 more | 3.3.0 | Fixed |
| jupyter-server enterprise_gateway | = >= 2.0.0rc2, < 3.3.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi jupyter-enterprise-gateway(PyPI) | >= 2.0.0rc2, < 3.3.0 | 3.3.0 |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.0.0 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.0.0rc2 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.1.0 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.1.1 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.2.0 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.2.0rc1 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.2.0rc2 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.3.0 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.4.0 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.5.0 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.5.1 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.5.2 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 2.6.0 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 3.0.0 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 3.0.0b0 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 3.0.0rc0 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 3.0.0rc1 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 3.1.0 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 3.2.0 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 3.2.1 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 3.2.2 | No fix listed |
| pypi jupyter-enterprise-gateway(PyPI) | = 3.2.3 | No fix listed |
| jupyter-server enterprise_gateway | = >= 2.0.0rc2, < 3.3.0 | No fix listed |
| jupyter enterprise gateway | >= 2.1.0, < 3.3.0 | 3.3.0 |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| jupyter enterprise gateway | = 2.0.0 | No fix listed |
| jupyter enterprise gateway | = 2.0.0-rc2 | No fix listed |
References
- https://github.com/jupyter-server/enterprise_gateway/security/advisories/GHSA-f49j-v924-fx9w exploit vendor-advisory
- github.com product
- pypi.org product
- github.com vendor-advisory
- nvd.nist.gov vendor-advisory
- https://github.com/jupyter-server/enterprise_gateway/releases/tag/v3.3.0 product release-notes