CVE-2026-108597 Cohere Python SDK 5.11.0 through 7.2.0 Path Traversal via SageMaker Tar Extraction

Medium 5.9 Published Updated

Attackers with S3 write access can overwrite arbitrary files on the host via path traversal in the Cohere Python SDK's tar extraction logic.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-108597?

CVE-2026-108597 is a medium-severity path traversal vulnerability in cohere-ai cohere-python, published on 10 Oct 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2026-108597?

How do I fix CVE-2026-108597?

No fix has been published for CVE-2026-108597 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-108597 being exploited?

There is no known exploitation of CVE-2026-108597 in the wild and no public exploit code.

Sources

Also known as GHSA-rg44-2cq2-qx25.

Is CVE-2026-108597 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free