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

CVE-2026-109153: MosaicML Composer Path Traversal Flaw

CVE-2026-109153 is a path traversal vulnerability in MosaicML Composer up to version 0.32.1 affecting checkpoint extraction. Attackers can exploit this flaw remotely 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-109153 Overview

CVE-2026-109153 is a path traversal vulnerability [CWE-22] in MosaicML Composer up to version 0.32.1. The flaw resides in the tarball.extractall function within composer/utils/checkpoint.py, part of the Checkpoint Extraction component. Attackers can craft malicious tarball archives containing entries with traversal sequences that write files outside the intended extraction directory. The attack is executable remotely and requires user interaction to process the malicious checkpoint. Successful exploitation can result in unauthorized file writes that may lead to configuration tampering or code execution in machine learning training workflows.

Critical Impact

Remote attackers can write arbitrary files outside the checkpoint extraction directory by supplying crafted tar archives, potentially compromising machine learning training environments.

Affected Products

  • MosaicML Composer versions up to and including 0.32.1
  • composer/utils/checkpoint.py module
  • Checkpoint Extraction component using tarball.extractall

Discovery Timeline

  • 2026-10-13 - CVE-2026-109153 published to the National Vulnerability Database (NVD)
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-109153

Vulnerability Analysis

The vulnerability stems from unsafe tar archive extraction in MosaicML Composer, an open-source deep learning training library. The tarball.extractall call in composer/utils/checkpoint.py processes tar archives without validating entry paths against the extraction root. Python's tarfile.extractall method is historically prone to path traversal when archive members contain ../ sequences or absolute paths.

Machine learning checkpoint files are commonly shared across teams and downloaded from external sources. An attacker who distributes a malicious checkpoint can place files at arbitrary filesystem locations when a victim loads it. Depending on process permissions, this may overwrite configuration files, SSH keys, or Python modules in site-packages, enabling follow-on code execution.

Root Cause

The root cause is missing path sanitization during tar member extraction. The code relies on extractall without filtering members or verifying that resolved paths remain under the target directory. Python 3.12 introduced extraction filters precisely to mitigate this class of flaw, but legacy call patterns remain vulnerable when no filter is specified.

Attack Vector

Exploitation requires the victim to extract a checkpoint supplied by the attacker. The attacker constructs a tar archive containing members with names such as ../../etc/cron.d/payload or absolute paths. When Composer loads the checkpoint, extraction writes these files outside the intended directory. The attack vector is network-based because checkpoints are frequently fetched from remote storage, model hubs, or shared artifact repositories.

For technical specifics, see the GitHub Issue #3942 Discussion and the VulDB CVE-2026-109153 entry.

Detection Methods for CVE-2026-109153

Indicators of Compromise

  • Files written outside the expected checkpoint extraction directory following a Composer training job
  • Tar archives containing members with ../ sequences or absolute paths in their name field
  • Unexpected modifications to user home directories, cron directories, or Python site-packages during ML workloads
  • Checkpoint files sourced from untrusted model hubs, forks, or shared storage buckets

Detection Strategies

  • Inspect tar archives prior to extraction using tar -tvf to enumerate member paths and flag traversal sequences
  • Monitor filesystem write events originating from Python processes running composer modules outside the designated workspace
  • Scan dependency manifests (requirements.txt, pyproject.toml) for mosaicml-composer<=0.32.1 and flag affected hosts
  • Correlate checkpoint download events with subsequent file writes to sensitive paths such as /etc, ~/.ssh, or site-packages

Monitoring Recommendations

  • Enable endpoint detection and response (EDR) telemetry on ML training hosts to capture process-level file write operations
  • Log and audit all checkpoint retrievals, including source URL, hash, and extracting user
  • Alert on Python processes writing executable files to directories outside the active working directory during training runs

How to Mitigate CVE-2026-109153

Immediate Actions Required

  • Inventory all systems running MosaicML Composer and identify versions at or below 0.32.1
  • Restrict checkpoint ingestion to trusted internal sources until a patched release is deployed
  • Validate the integrity of all third-party checkpoints using cryptographic hashes before extraction
  • Run Composer training jobs under least-privilege service accounts that cannot write to sensitive system paths

Patch Information

At the time of publication, no fixed version is listed in the available advisory data. Monitor the GitHub Composer Repository and GitHub Issue #3942 Discussion for upstream remediation. Apply the vendor patch as soon as it becomes available and upgrade past version 0.32.1.

Workarounds

  • Pre-validate tar archives by iterating members and rejecting any entry whose resolved path escapes the extraction root
  • Replace direct extractall calls with Python 3.12+ extraction filters such as filter='data' when customizing extraction logic
  • Execute checkpoint extraction inside a sandboxed container or chroot with no access to sensitive host paths
  • Enforce network egress controls on training hosts to limit retrieval of checkpoints to approved artifact stores
bash
# Configuration example: inspect a checkpoint tarball before use
tar -tvf suspicious_checkpoint.tar | grep -E '(\.\./|^/)'

# Run training in a restricted container with a read-only root filesystem
docker run --read-only --tmpfs /tmp \
  -v $(pwd)/checkpoints:/workspace/checkpoints:ro \
  composer-training:latest

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.