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.
Published: 2026-10-10
Score: 5.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary File Write
Action: Update SDK
AI Analysis

Impact

The cohere‑python SDK between versions 5.11.0 and 7.2.0 has a path traversal flaw when extracting tar archives from S3. The extraction routine calls tarfile.extractall without validating the archive paths, allowing an attacker who can write a model archive to the victim's S3 prefix to include absolute or upward path references. This can overwrite arbitrary files on the host running the SDK. The weakness is a classic directory traversal vulnerability (CWE‑22) and grants the victim the ability to modify or replace local files, potentially leading to data corruption or execution of arbitrary code if system binaries are overwritten.

Affected Systems

The affected product is Cohere AI's cohere‑python library, specifically versions 5.11.0 through 7.2.0. Systems that import this library to load or serve models from Amazon S3 are at risk unless they are using a newer, patched release.

Risk and Exploitability

The CVSS score of 5.9 indicates a medium severity, and the lack of an EPSS value means current exploit probability cannot be assessed. The vulnerability would only be exploitable if an attacker can write model archives to the configured S3 prefix, which may be feasible in environments where S3 write access is granted to untrusted workloads. Because the flaw allows overwriting files on the host, it could be used to compromise the system if critical configuration or system files are affected. The vulnerability is not listed in the CISA KEV catalog, but its medium CVSS and potential persistence through S3 write access warrant timely remediation.

Generated by OpenCVE AI on October 10, 2026 at 22:02 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the cohere‑python SDK to a version later than 7.2.0, where the tar extraction routine validates archive paths.
  • Restrict write permissions on the S3 prefix used for model archives so that only trusted services or users can upload archives; consider implementing a separate bucket or path for untrusted uploads that is scanned before extraction.
  • After updating, scan existing archives in the S3 prefix for path traversal components (e.g., entries containing ".." or leading slashes) and remove or cleanse them before extraction.

Generated by OpenCVE AI on October 10, 2026 at 22:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 14 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Wed, 14 Oct 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sun, 11 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Cohere-ai
Cohere-ai cohere-python
Vendors & Products Cohere-ai
Cohere-ai cohere-python

Sat, 10 Oct 2026 19:00:00 +0000

Type Values Removed Values Added
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.
Title Cohere Python SDK 5.11.0 through 7.2.0 Path Traversal via SageMaker Tar Extraction
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 5.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Cohere-ai Cohere-python
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-14T02:26:27.391Z

Reserved: 2026-10-10T18:25:14.161Z

Link: CVE-2026-108597

cve-icon Vulnrichment

Updated: 2026-10-14T02:26:23.685Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-10T19:16:58.210

Modified: 2026-10-16T17:25:57.940

Link: CVE-2026-108597

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-10T18:58:14Z

Links: CVE-2026-108597 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-11T12:23:37Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')