Vulnerability Description
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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/cohere-ai/cohere-python
- https://github.com/cohere-ai/cohere-python/blob/0eacfe77e1710322b355928574cfec18
- https://hackmd.io/@haind/cohere-python-sagemaker-s3-archive-path-traversal
- https://www.vulncheck.com/advisories/cohere-python-sdk-5.11.0-through-7.2.0-path
FAQ
What is CVE-2026-108597?
CVE-2026-108597 is a vulnerability with a CVSS score of 4.8 (MEDIUM). 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. Attack...
How severe is CVE-2026-108597?
CVE-2026-108597 has been rated MEDIUM with a CVSS base score of 4.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-108597?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.