/

CVE-2026-44180

Severity:

CRITICAL RISK

(9.8)

Input Validation Bypass (CWE-20) in Jupyter Enterprise Gateway

CVE-2026-44180

Analyzed

Vulnerability type

Category:

Input Validation Vulnerability

CWE:

CWE-20

Impact:

Privilege Escalation to Root and Potential Cluster Compromise

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Jupyter Enterprise Gateway contains an input validation flaw in its prohibited UID/GID feature that can be bypassed using specially crafted KERNEL_UID or KERNEL_GID values.

Under certain configurations, this allows kernels to run as root inside containers, significantly increasing attack surface and enabling potential container escapes and cluster compromise.

Affected context

This vulnerability affects Jupyter Enterprise Gateway deployments that:

  • Use versions 2.0.0rc1 and above prior to 3.3.0
  • Rely on the "prohibited UID/GID" feature to prevent root execution (UID/GID 0)
  • Launch kernels on distributed backends such as Kubernetes, Apache Spark, or Docker-based clusters
  • Allow user-controlled or externally influenced KERNEL_UID or KERNEL_GID environment variables or configuration

The issue is most impactful where kernel containers can mount host volumes (for example, hostPath mounts in Kubernetes) or access sensitive cluster resources.

Exploit preconditions

  • Attack surface: Remote interaction with Jupyter Enterprise Gateway's kernel launch mechanism (e.g., via Jupyter clients or gateway APIs).
  • Required access: Ability to create or configure kernels such that KERNEL_UID and/or KERNEL_GID values can be influenced or directly set.
  • Trigger point: Submission of a specially crafted KERNEL_UID or KERNEL_GID value that bypasses the prohibited UID/GID check during kernel startup.
  • Why exploitation is possible: The input validation logic that enforces forbidden UIDs/GIDs (notably 0 for root) can be circumvented, allowing the underlying container runtime or orchestrator to run kernels with elevated privileges contrary to policy.

Why this happens

The root cause is insufficient input validation and enforcement around security-sensitive identifiers (user and group IDs) used during kernel launch.

The "prohibited UID/GID" feature is intended to block execution as root by rejecting UID/GID 0, but the validation logic fails to normalize, constrain, or robustly interpret the incoming KERNEL_UID and KERNEL_GID values.

This aligns with CWE-20: Improper Input Validation, where the system accepts malformed or specially crafted input that bypasses intended security checks, resulting in execution under a more privileged identity than intended.

Potential impact

  • Kernels may run as root within their containers instead of as non-privileged users.
  • Attackers could perform container escapes when combined with permissive volume mounts (for example, hostPath read/write mounts).
  • Code execution on the underlying worker node can be achieved by modifying files on the host filesystem (such as crontab entries).
  • Compromise of other workloads running on the same worker node through host-level persistence or lateral movement.
  • Repeated exploitation across nodes could lead to compromise of the entire Kubernetes or distributed compute cluster.

General mitigation guidance

Effective mitigation typically focuses on enforcing strict, defense-in-depth controls around identity, privilege, and configuration handling:

  • Normalize and strictly validate all user and group ID inputs, constraining them to approved numeric ranges and rejecting any ambiguous or transformed representations.
  • Enforce run-as-non-root policies at the container orchestration layer (e.g., Kubernetes securityContext, PodSecurity or similar policies) so that privileged execution cannot be enabled solely by application logic.
  • Minimize or avoid hostPath and other broad host-mounted volumes for kernels; where host mounts are unavoidable, apply read-only constraints and limit paths to non-sensitive directories.
  • Apply least-privilege principles for kernel containers, including dropping unnecessary Linux capabilities and disabling privilege escalation.
  • Treat UID/GID configuration as security-critical data and avoid exposing it directly to end-user control where possible, preferring centrally managed templates or profiles.

How teams detect issues like this

Detection can leverage both code-level and runtime-level approaches:

  • Static analysis and code review: Look for UID/GID handling that:
  • Accepts raw KERNEL_UID/KERNEL_GID values without normalization.
  • Compares or filters IDs in a way that can be bypassed via alternate formats or edge cases.
  • Implements security checks only at the application layer without orchestration-level enforcement.
  • Configuration review: Audit Kubernetes manifests, Spark cluster configurations, and Docker settings for:
  • Kernels allowed to run as root.
  • hostPath or other host-mounted volumes used with kernel containers.
  • Absence of PodSecurity, Pod Security Policy equivalents, or admission controls enforcing non-root execution.
  • Runtime monitoring: Use container security tools and audit logs to:
  • Flag containers started with UID/GID 0 where policies specify non-root.
  • Detect write operations from kernel containers to host-mounted system directories (e.g., /etc, /var/spool/cron).
  • Automated policy-as-code tools (such as admission controllers or CI/CD policy checks) can be configured to block workloads that violate non-root or host mount policies.

Sources

SourceLink
github.comgithub.com/jupyter-server/enterprise_gateway/releases/tag/v3.3.0
github.comgithub.com/jupyter-server/enterprise_gateway/security/advisories/GHSA-chq7-94j8-cj28

Frequently asked

questions

Yes, in many deployments it is effectively remotely exploitable because users interact with Jupyter Enterprise Gateway over the network and can influence kernel launch parameters. If those parameters include KERNEL_UID or KERNEL_GID, an attacker may be able to trigger the bypass without direct host access.

The attacker typically needs the ability to create or configure kernels through the gateway—such as a Jupyter user with permission to start kernels or an automated system integrating with the gateway APIs. They do not need direct access to the underlying nodes but can abuse the gateway's kernel launch mechanism.

The safest pattern is to combine robust input validation for UID/GID values with hard enforcement of non-root execution at the container orchestration layer. Kernels should not be able to run as UID/GID 0 regardless of how KERNEL_UID or KERNEL_GID are specified, and policies should be in place that reject root-based workloads outright.

Prevention generally involves treating all user-supplied configuration as untrusted, validating it rigorously, and enforcing critical security policies in more than one layer. Use strong schema validation, normalize identifiers before comparison, apply least-privilege defaults, and rely on platform-level controls (like Kubernetes admission policies and security contexts) to backstop application-level checks.

Find out what's already
exploitable in your codebase.