Description
Weights & Biases wandb before 0.29.0 fails to validate the file name from server responses in the File.download function, allowing path traversal attacks. Attackers controlling the backend can supply file names with directory traversal sequences to write files outside the intended download directory, potentially enabling code execution through modification of shell startup files or Python import paths.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| wandb | wandb | < 0.29.0 | 0.29.0 |
References
- https://github.com/wandb/wandb/issues/12592 issue-tracking
- https://github.com/wandb/wandb/commit/e52558f3a6a94ea816af74969a13a35e5904cad6 patch
- wandb v0.29.0 Release Notes release-notes
- https://github.com/wandb/wandb/blob/v0.27.2/wandb/apis/public/files.py#L319-L347 technical-description
- https://github.com/wandb/wandb product
- VulnCheck Advisory: Weights & Biases wandb before 0.29.0 Path Traversal via File Download third-party-advisory