---
id: CVE-2026-43637
title: Cornac < 2.6.0 Path Traversal via _extract_archive() in download.py
summary: >-
  Cornac before 2.6.0 contains a path traversal (Tar Slip) vulnerability that
  allows attackers to write arbitrary files outside the intended cache directory
  by supplying a crafted TAR archive containing ../ sequences, absolute paths,
  or sy…
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-22
vendor: PreferredAI
product: cornac
affected:
  - cornac < 2.6.0
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-07-15T14:41:25.064320Z'
exploitAvailable: true
published: '2026-07-15'
updated: '2026-11-08'
sourceUpdated: '2026-11-08T14:03:29.478Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-43637'
references:
  - url: 'https://github.com/PreferredAI/cornac/releases/tag/v2.6.0'
    label: cornac 2.6.0 Release Notes
  - url: 'https://github.com/PreferredAI/cornac/pull/709'
    label: Pull Request
  - url: >-
      https://github.com/PreferredAI/cornac/commit/8a50be72c11569b6747c6b96d6e31a0a1962f1a8
    label: Patch Commit
  - url: >-
      https://www.vulncheck.com/advisories/cornac-path-traversal-via-extract-archive-in-download-py
tags:
  - cve.org
  - exploit-available
epss: 0.00662
epssPercentile: 0.51926
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/rahulreddykarne/CVE-2026-43637-cornac'
  checkedAt: '2026-11-08T14:51:57.344Z'
ingestedAt: '2026-11-08T14:51:22.428Z'
---

## Overview

Cornac before 2.6.0 contains a path traversal (Tar Slip) vulnerability that allows attackers to write arbitrary files outside the intended cache directory by supplying a crafted TAR archive containing ../ sequences, absolute paths, or symlink/hardlink entries to the _extract_archive() function in cornac/utils/download.py. Attackers can trigger this vulnerability through the built-in dataset loaders, which automatically download and extract archives, causing archive.extractall() to write files to arbitrary locations on the filesystem accessible to the running process.

## Affected

- `cornac < 2.6.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
