CVE-2026-108597
Cohere Python SDK 5.11.0 through 7.2.0 contains a path traversal …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/cohere-ai/cohere-python
- github.com/cohere-ai/cohere-python/blob/0eacfe77e1710322b355928574cfec18f6791c42/src/coher
- hackmd.io/@haind/cohere-python-sagemaker-s3-archive-path-traversal
- www.vulncheck.com/advisories/cohere-python-sdk-5.11.0-through-7.2.0-path-traversal-via-sag
- nvd.nist.gov/vuln/detail/CVE-2026-108597
- cve.org/CVERecord?id=CVE-2026-108597
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.