CVE-2026-137418 in ModelZoo
Summary
by MITRE • 11/26/2026
A security vulnerability has been detected in Cerebras ModelZoo up to d76e028d6a5f784954b1329b3ae44721ca8da36a. Affected is the function StreamingShardedHFReader of the file src/cerebras/modelzoo/tools/checkpoint_converters/streaming_checkpoints.py of the component Checkpoint Converter. The manipulation of the argument weight_map leads to path traversal. Remote exploitation of the attack is possible. The exploit has been disclosed publicly and may be used. The project was informed of the problem early through an issue report but has not responded yet.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/28/2026
The Cerebras ModelZoo, a comprehensive library designed for training large-scale language models on Cerebras hardware systems, contains a critical security flaw within its checkpoint conversion utilities. Specifically, the vulnerability resides in the StreamingShardedHFReader function located in the src/cerebras/modelzoo/tools/checkpoint_converters/streaming_checkpoints.py file of the Checkpoint Converter component. This tool is essential for converting model checkpoints between different formats, such as from Hugging Face to Cerebras-specific sharded checkpoint structures, a process that frequently involves handling external or user-provided configuration files. The core issue arises from improper validation and sanitization of the weight_map argument passed into this function. When an attacker provides a maliciously crafted input for the weight map, they can manipulate file path resolution mechanisms to traverse outside the intended directory structure. This flaw allows for arbitrary file read operations on the underlying host system where the conversion tool is executed.
From a technical perspective, this vulnerability represents a classic Path Traversal or Directory Traversal weakness. The application fails to adequately restrict user-supplied input when constructing file paths based on the weight_map data. By injecting sequences such as dot-dot-slash (../) into specific fields of the map, an attacker can redirect file read operations to sensitive areas of the filesystem. This is particularly dangerous in environments where checkpoint conversion tools are run with elevated privileges or access to shared storage volumes containing other critical model artifacts and configuration files. The lack of strict path canonicalization allows the application to resolve paths that bypass security boundaries established by the intended working directory, leading to unauthorized disclosure of confidential data stored on the local machine.
The operational impact of this vulnerability is significant due to its remote exploitability potential. Although checkpoint conversion tools are often used in controlled internal environments, they may be exposed through automated pipelines, CI/CD systems, or cloud-based training platforms where inputs can be influenced by external actors. If an attacker successfully exploits this flaw, they could read sensitive files such as private keys, database credentials, other model weights containing proprietary intellectual property, or system configuration files that reveal infrastructure details. This capability effectively compromises the confidentiality and integrity of the entire machine learning workflow environment. The fact that the exploit has been disclosed publicly increases the risk landscape significantly, as malicious actors can readily develop automated tools to target systems running affected versions of Cerebras ModelZoo without needing specialized knowledge or custom development efforts.
Industry standards classify this type of vulnerability under CWE-22: Improper Limitation of a Pathname to a Restricted Directory. This classification highlights the failure to enforce strict boundaries on file system access based on user input. Furthermore, in the context of the MITRE ATT&CK framework, this behavior aligns with T1083: File and Directory Discovery, which describes techniques used by adversaries to explore target systems for sensitive information. The exploitation vector suggests a potential alignment with data exfiltration tactics if combined with other vulnerabilities that allow command execution or network transmission of stolen files. Given the public disclosure of the exploit and the lack of response from the project maintainers as noted in recent reports, immediate remediation is critical to prevent widespread compromise across organizations utilizing this software stack for large-scale AI model training.
Mitigation strategies must focus on both technical fixes and operational controls until an official patch is released by Cerebras Systems. Developers should implement strict input validation for all arguments related to file paths, ensuring that any provided path is canonicalized and verified against a whitelist of allowed directories before being used in file operations. Utilizing secure library functions that abstract away direct filesystem manipulation can also reduce the risk of traversal attacks. For organizations currently running affected versions up to commit d76e028d6a5f784954b1329b3ae44721ca8da36a, it is advisable to restrict access to checkpoint conversion tools to trusted users only and isolate these processes within sandboxed environments with minimal filesystem permissions. Monitoring logs for unusual file access patterns related to the StreamingShardedHFReader function can also help in detecting attempted exploitation activities while waiting for an official security update from the vendor.