Skip to main content
Vulnerability Database/CVE-2026-109156

CVE-2026-109156: SeldonIO MLServer Path Traversal Flaw

CVE-2026-109156 is a path traversal vulnerability in SeldonIO MLServer that affects the environment tarball handler, allowing attackers to access unauthorized files. This article covers technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109156 Overview

CVE-2026-109156 is a path traversal vulnerability [CWE-22] in SeldonIO MLServer versions up to and including 1.6.1. The flaw resides in the _extract_env function within mlserver/env.py, which handles the environment_tarball component. An attacker can manipulate tarball entries to write files outside the intended extraction directory. The attack is executable remotely and requires user interaction. According to the disclosure, the vendor was contacted but did not respond.

Critical Impact

Remote attackers can leverage malicious tarball archives to write files to arbitrary filesystem locations, potentially leading to configuration tampering, model substitution, or code execution within the MLServer runtime.

Affected Products

  • SeldonIO MLServer versions up to 1.6.1
  • Component: environment_tarball Handler
  • Function: _extract_env in mlserver/env.py

Discovery Timeline

  • 2026-10-13 - CVE CVE-2026-109156 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-109156

Vulnerability Analysis

MLServer is an inference server used to serve machine learning models at scale. It supports packaging custom Python environments by extracting user-supplied tarball archives into a working directory. The _extract_env function in mlserver/env.py performs this extraction without sufficiently validating the archive member paths.

When a tarball contains entries with relative path components such as ../, the extraction routine follows them and writes files outside the intended directory. This classic "Zip Slip"-style flaw allows an attacker who can deliver a crafted archive to the server to place or overwrite files anywhere the MLServer process has write access.

Impact depends on the targeted path. Overwriting Python modules, inference handlers, or startup scripts can lead to code execution on subsequent model loads. The vulnerability is categorized under CWE-22: Improper Limitation of a Pathname to a Restricted Directory.

Root Cause

The _extract_env function trusts member paths inside the environment tarball and does not normalize or validate them against the destination directory before extraction. There is no check that the resolved target path remains within the intended extraction root.

Attack Vector

An attacker crafts a tarball archive containing entries whose names use directory traversal sequences. The archive is submitted through the environment tarball ingestion path of MLServer. When _extract_env processes the archive, the traversal payloads cause file writes outside of the sandboxed environment directory. The attack requires user interaction to trigger the extraction.

For technical details and reproduction information, see the GitHub Issue #2553 and the VulDB entry for CVE-2026-109156.

Detection Methods for CVE-2026-109156

Indicators of Compromise

  • Files created or modified outside the MLServer environment extraction directory with timestamps that correlate with tarball ingestion events.
  • Tarball archives containing member names with ../ sequences or absolute paths in MLServer upload or staging locations.
  • Unexpected Python modules, hooks, or startup scripts appearing in system paths or MLServer runtime directories.

Detection Strategies

  • Statically scan ingested tarballs for entries whose canonical paths escape the intended extraction root before passing them to _extract_env.
  • Monitor MLServer process file write syscalls for paths outside its working directory, using eBPF or Linux auditd rules.
  • Review MLServer logs for environment tarball extraction events and correlate against filesystem change audit trails.

Monitoring Recommendations

  • Enable filesystem integrity monitoring on directories hosting MLServer binaries, Python site-packages, and model artifacts.
  • Alert on new or modified files in parent directories of the configured environment extraction root.
  • Track network sources submitting environment tarballs and flag submissions from non-trusted origins.

How to Mitigate CVE-2026-109156

Immediate Actions Required

  • Restrict network access to MLServer management and model loading endpoints to trusted operators only.
  • Disable or gate the environment tarball upload functionality until a patched version is available.
  • Run MLServer as a non-privileged user with a restrictive filesystem policy to limit the blast radius of arbitrary writes.

Patch Information

As of the published date, the vendor has not responded to the disclosure and no fixed version is referenced in the advisory. Monitor the SeldonIO MLServer repository and GitHub Issue #2553 for updates. Until a patched release is available, apply the workarounds below.

Workarounds

  • Validate every tarball member path before extraction and reject archives containing .. traversal sequences or absolute paths.
  • Replace calls to the vulnerable extraction logic with a wrapper that resolves each entry against the extraction root and aborts on any escape.
  • Deploy MLServer inside a container or sandbox with read-only mounts for sensitive paths such as the Python runtime, system binaries, and configuration files.
  • Place MLServer behind an authenticated reverse proxy and reject requests that attempt to upload environment tarballs from unauthorized clients.
bash
# Example: pre-validate a tarball for traversal entries before handing it to MLServer
python3 - <<'EOF'
import sys, tarfile, os

archive = sys.argv[1]
root = os.path.abspath("/opt/mlserver/envs/incoming")

with tarfile.open(archive) as tf:
    for member in tf.getmembers():
        target = os.path.abspath(os.path.join(root, member.name))
        if not target.startswith(root + os.sep):
            print(f"REJECTED traversal entry: {member.name}")
            sys.exit(1)
print("OK")
EOF

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.