Cohere Python SDK 5.11.0 through 7.2.0 contains a path traversal (tar slip) vulnerability in _s3_models_dir_to_tarfile that allows arbitrary file write via unvalidated tarfile.extractall calls. Attackers who can write model archives to the victim's S3 prefix can include absolute paths or ../ members to overwrite files on the SDK host.
https://hackmd.io/@haind/cohere-python-sagemaker-s3-archive-path-traversal
Published: 2026-10-10
Updated: 2026-10-10
Base Score: 4.9
Vector: CVSS2#AV:N/AC:H/Au:S/C:N/I:C/A:N
Severity: Medium
Base Score: 4.8
Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
Severity: Medium
Base Score: 5.9
Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Severity: Medium