{"id":"CVE-2026-108597","revision":"2920cea2ce6c4bdfa61caa458723ee1c","records":[{"revision":"2920cea2ce6c4bdfa61caa458723ee1c","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-108597","aliases":[],"title":"Cohere Python SDK 5.11.0 through 7.2.0 Path Traversal via SageMaker Tar Extraction","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.","state":0,"publishedAt":"2026-10-10T18:58:14.132+00:00","modifiedAt":"2026-10-14T02:26:27.391+00:00","affected":[{"ecosystem":"https://pypi.org","name":"cohere-python","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"cohere-ai\",\n                    \"product\": \"cohere-python\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"5.11.0\",\n                            \"lessThanOrEqual\": \"7.2.0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"packageURL\": \"pkg:pypi/cohere\",\n                    \"collectionURL\": \"https://pypi.org\",\n                    \"repo\": \"https://github.com/cohere-ai/cohere-python\"\n                }"}],"metrics":[{"system":"CVSS 4.0","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","score":5.9,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","score":4.8,"severity":"MEDIUM"}],"references":["https://hackmd.io/@haind/cohere-python-sagemaker-s3-archive-path-traversal","https://github.com/cohere-ai/cohere-python/blob/0eacfe77e1710322b355928574cfec18f6791c42/src/cohere/manually_maintained/cohere_aws/client.py#L101-L123","https://github.com/cohere-ai/cohere-python","https://www.vulncheck.com/advisories/cohere-python-sdk-5.11.0-through-7.2.0-path-traversal-via-sagemaker-tar-extraction"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-108597","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-108597","identifiers":["CVE-2026-108597"]},"retained":false,"historicalAffected":[]}],"coverage":[]}