Skip to content
Heist/ feed
Medium

Cohere Python SDK 5.11.0 through 7.2.0 Path Traversal via SageMaker Tar Extraction

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2026-108597

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-108597

cohere-python

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://github.com/cohere-ai/cohere-python",
    "vendor": "cohere-ai",
    "product": "cohere-python",
    "versions": [
      {
        "status": "affected",
        "version": "5.11.0",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.0"
      }
    ],
    "packageURL": "pkg:pypi/cohere",
    "collectionURL": "https://pypi.org",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-108597

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#21377 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement