{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "5.11.0"
                  },
                  {
                    "last_affected": "7.2.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "5.11.0"
                  },
                  {
                    "last_affected": "7.2.0"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          },
          "events": [
            {
              "introduced": "56d48b077bb01b209635fd87496b8c6af48c7f64"
            },
            {
              "last_affected": "e6595a6d8f43f858327ef2dd5ddcccd96db4749b"
            }
          ],
          "repo": "https://github.com/cohere-ai/cohere-python",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108597.json"
  },
  "details": "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.",
  "id": "CVE-2026-108597",
  "modified": "2026-10-28T02:30:59.693902429Z",
  "published": "2026-10-10T18:58:14.132Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://pypi.org"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108597.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://hackmd.io/@haind/cohere-python-sagemaker-s3-archive-path-traversal"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-108597"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/cohere-python-sdk-5.11.0-through-7.2.0-path-traversal-via-sagemaker-tar-extraction"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/cohere-ai/cohere-python"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/cohere-ai/cohere-python/blob/0eacfe77e1710322b355928574cfec18f6791c42/src/cohere/manually_maintained/cohere_aws/client.py#L101-L123"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Cohere Python SDK 5.11.0 through 7.2.0 Path Traversal via SageMaker Tar Extraction"
}