{"id":"CVE-2026-108597","summary":"Cohere Python SDK 5.11.0 through 7.2.0 Path Traversal via SageMaker Tar Extraction","details":"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.","modified":"2026-10-28T02:30:59.693902429Z","published":"2026-10-10T18:58:14.132Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108597.json"},"references":[{"type":"WEB","url":"https://pypi.org"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108597.json"},{"type":"ADVISORY","url":"https://hackmd.io/@haind/cohere-python-sagemaker-s3-archive-path-traversal"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-108597"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/cohere-python-sdk-5.11.0-through-7.2.0-path-traversal-via-sagemaker-tar-extraction"},{"type":"PACKAGE","url":"https://github.com/cohere-ai/cohere-python"},{"type":"ARTICLE","url":"https://github.com/cohere-ai/cohere-python/blob/0eacfe77e1710322b355928574cfec18f6791c42/src/cohere/manually_maintained/cohere_aws/client.py#L101-L123"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cohere-ai/cohere-python","events":[{"introduced":"56d48b077bb01b209635fd87496b8c6af48c7f64"},{"last_affected":"e6595a6d8f43f858327ef2dd5ddcccd96db4749b"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"5.11.0"},{"last_affected":"7.2.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"DESCRIPTION","range":[{"introduced":"5.11.0"},{"last_affected":"7.2.0"}]}]}}],"versions":["7.3.0","7.2.0","7.1.0","7.0.9","7.0.8","7.07","7.0.5","7.0.4","7.0.3","7.0.2","7.0.1","7.0.0","6.1.0","6.0.0","5.21.2","5.21.1","5.21.0","5.20.7","5.20.6","5.20.5","5.20.4","5.20.3","5.20.2","5.20.1","5.20.0","5.19.0","5.18.0","5.17.0","5.16.3","5.16.2","5.16.1","5.16.0","5.15.0","5.14.2","5.14.1","5.14.0","5.13.12","5.13.11","5.13.10","5.13.9","5.13.8","5.13.7","5.13.6","5.13.5","5.13.4","5.13.3","5.13.2","5.13.1","5.13.0","5.12.0","5.11.4","5.11.3","5.11.2","5.11.1","5.11.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-108597.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}