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

- Severity: Medium 5.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-10-10T18:58:14.132Z
- Modified: 2026-10-16T17:25:57.940Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- cohere-ai cohere-python: from 5.11.0 up to 7.2.0

## Every score

- VulnCheck: CVSS:4.0 5.9 Medium `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`
- VulnCheck: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://hackmd.io/@haind/cohere-python-sagemaker-s3-archive-path-traversal> (third-party-advisory)
- <https://github.com/cohere-ai/cohere-python/blob/0eacfe77e1710322b355928574cfec18f6791c42/src/cohere/manually_maintained/cohere_aws/client.py#L101-L123> (technical-description)
- <https://github.com/cohere-ai/cohere-python> (product)
- <https://www.vulncheck.com/advisories/cohere-python-sdk-5.11.0-through-7.2.0-path-traversal-via-sagemaker-tar-extraction> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-108597](https://www.cve.org/CVERecord?id=CVE-2026-108597), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2026-108597](https://nvd.nist.gov/vuln/detail/CVE-2026-108597), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-108597 · Whole record: https://cve.day/CVE-2026-108597.json · Rebuilt by cve.day 2026-11-25T22:59:43.427Z
