CVE-2026-108597: Cohere Python SDK path traversal in tar extraction

CVE-2026-108597 · Severity: medium · CVSS 4.8 · Published 2026-10-10

The Cohere Python SDK is a library that developers use to integrate Cohere's AI models into Python applications. Versions 5.11.0 through 7.2.0 contain a flaw in how they extract model archives from S3 storage, allowing an attacker who can write to the S3 location to include malicious tar members with absolute paths or directory traversal sequences that overwrite arbitrary files on the host running the SDK. This could lead to code execution, configuration tampering, or denial of service.

Vendors: Cohere.

Quick answers

Is CVE-2026-108597 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-108597 being exploited in the wild.
How severe is CVE-2026-108597?
Medium severity, with a CVSS score of 4.8, published 10 October 2026.
Which products and versions are affected?
Cohere Python SDK 5.11.0 through 7.2.0.
Is there a fix for CVE-2026-108597?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-108597 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-108597?
Check whether you run Cohere Python SDK at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is a tar slip (path traversal) flaw in the _s3_models_dir_to_tarfile function that fails to validate tarfile members before calling extractall(). An attacker with write access to the victim's S3 prefix can craft a malicious tar archive containing entries with absolute paths (e.g., /etc/passwd) or relative traversal sequences (e.g., ../../sensitive_file) that bypass extraction safety checks. Upon SDK initialization or model loading from S3, the archive is extracted without sanitization, allowing overwrite of arbitrary files.

Affected products

  • Cohere Python SDK 5.11.0 through 7.2.0

Timeline

  • 2026-10-10: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.