| Название | Cerebras Systems ModelZoo commit d76e028d6a5f784954b1329b3ae44721ca8da36a (master branch, 2026-09-01) Path Traversal |
|---|
| Описание | A vulnerability was found in Cerebras ModelZoo commit d76e028d6a5f784954b1329b3ae44721ca8da36a and classified as high 7.1.
Affected is the StreamingShardedHFReader class of the checkpoint converter component
(src/cerebras/modelzoo/tools/checkpoint_converters/streaming_checkpoints.py). The manipulation of the weight_map
argument of the model.safetensors.index.json file leads to a path traversal. It is possible to launch the attack
remotely. User interaction is required because a victim must convert a crafted sharded model package with the
public cerebras-modelzoo checkpoint convert tool.
Technical Details
- Affected file/function: src/cerebras/modelzoo/tools/checkpoint_converters/streaming_checkpoints.py /
StreamingShardedHFReader.__init__ (unvalidated join at line 114) and __getitem__ (unvalidated join at lines
151-153), delegated to load_shard (lines 126-130); consumed by BaseCheckpointConverter_HF_CS.load
(tools/checkpoint_converters/base_converter.py:889-893)
- Vulnerable parameter: weight_map shard values in model.safetensors.index.json
- Attack vector: Network (crafted package distributed via a model hub or file sharing)
- Privileges required: None
- Trigger condition: os.path.join(self.index_dir, file) joins attacker-controlled shard names onto the checkpoint
directory with no basename or containment check; safetensors.torch.load_file then loads and returns tensor data
from a file outside the package. Relative ../ values escape the package and absolute values override the
directory entirely. The load_shard else-branch additionally routes non-.safetensors entries to torch.load.
Impact
- Confidentiality: Low (out-of-package tensor values are returned into the conversion process and would be embedded
into the converted artifact; exfiltration requires the additional step of the output being shared back)
- Integrity: High (silently consumed weights differ from the inspected package contents, defeating package-level
scanning and shard hash pinning)
- Availability: None
CVSS v3.1
Score: 7.1 (High)
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N
Timeline
- Discovered: 2026-10-21
- Vendor notified: [pending]
- Patch released: [pending]
- Public disclosure: [pending]
Countermeasure
Resolve each weight_map entry against the checkpoint directory and require the resolved path to stay inside it;
reject absolute paths and entries containing path separators (HuggingFace sharded checkpoints use bare shard file
names), and re-verify containment before the torch.load fallback in load_shard. |
|---|
| Источник | ⚠️ https://github.com/Cerebras/modelzoo/issues/99 |
|---|
| Пользователь | Dem000 (UID 98389) |
|---|
| Представление | 29.10.2026 09:12 (28 дни назад) |
|---|
| Модерация | 26.11.2026 10:20 (28 days later) |
|---|
| Статус | принято |
|---|
| Запись VulDB | 444246 [Cerebras ModelZoo до d76e028d6a5f784954b1329b3ae44721ca8da36a Checkpoint Converter streaming_checkpoints.py StreamingShardedHFReader weight_map обход каталога] |
|---|
| Баллы | 20 |
|---|