CVE-2026-108597
Received Received - Intake

Path Traversal in Cohere Python SDK via Tarfile Extraction

Vulnerability report for CVE-2026-108597, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-10

Last updated on: 2026-10-10

Assigner: VulnCheck

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-10
Last Modified
2026-10-10
Generated
2026-10-10
AI Q&A
2026-10-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
cohere-ai cohere-python 5.11.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-108597 is a path traversal vulnerability in the Cohere Python SDK versions 5.11.0 through 7.2.0. It occurs in the _s3_models_dir_to_tarfile function where tarfile.extractall calls are not properly validating member paths during extraction. Attackers with write access to a victim's S3 prefix can craft malicious model archives containing absolute paths or relative path traversal sequences (../) to overwrite files on the SDK host system.

Detection Guidance

Check for unauthorized file writes in directories where Cohere Python SDK extracts S3 model archives. Review tar extraction logs for absolute paths or ../ sequences in archive members. Use commands like 'find / -type f -newer /tmp 2>/dev/null' to detect recent file modifications outside expected paths.

Impact Analysis

This vulnerability allows attackers to overwrite arbitrary files on the host system running the SDK with the process's permissions. This could lead to unauthorized file modifications, system compromise, or disruption of services relying on those files. The impact depends on the SDK's permissions and the files it can access.

The attack requires specific conditions: SageMaker integration must be used, the S3 prefix must contain at least two archives, the attacker must control one archive, and the runtime must be CPython 3.10-3.13.

Mitigation Strategies

Upgrade to a patched version of cohere-python SDK beyond 7.2.0. If using SageMaker integration, add 'filter=data' to tarfile.extractall() calls. Restrict S3 write permissions to prevent attackers from uploading malicious archives. Monitor file system for unexpected changes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-108597. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart