Skip to content

CVE-2026-44181 Jupyter Enterprise Gateway: Jinja2 Template Server Side Template Injection results in Remote Code Execution

CriticalCVSS 10.0 EPSS 0.77%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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
ProductAffected versionsFixed in
jupyter enterprise gateway = 2.0.0 No fix listed
jupyter enterprise gateway = 2.0.0-rc2 No fix listed

References