Description
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.
Published: 2026-07-15
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Cornac prior to version 2.6.0 is vulnerable to a Tar Slip path traversal flaw (CWE‑22), allowing an attacker to create or overwrite arbitrary files outside the intended cache directory. By supplying a crafted TAR archive that contains sequences of "../", absolute paths, or symlink/hardlink entries, the internal _extract_archive() function can write files to unintended locations on the filesystem with the permissions of the running process. This can potentially compromise system integrity and allow execution of malicious code if writable paths include executable locations.

Affected Systems

The affected product is PreferredAI Cornac, all releases before 2.6.0. Users running these older versions are at risk when the tool accesses untrusted dataset archives through its built‑in loaders.

Risk and Exploitability

The CVSS score of 8.8 categorizes this vulnerability as high severity, yet the EPSS score of < 1% indicates a very low probability of exploitation in the wild. Cornac is not listed in the CISA KEV catalog. Exploitation requires control over the archive input supplied to the dataset loader; an attacker can trigger the flaw by delivering a maliciously crafted TAR archive during normal operation.

Generated by OpenCVE AI on July 31, 2026 at 03:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Cornac to version 2.6.0 or newer to apply the vendor patch that mitigates the path traversal flaw.
  • If an upgrade is not immediately possible, disable or remove the built‑in dataset loaders that automatically download and extract archives, or supply only trusted archives that have been validated for safe path contents.
  • Implement a monitoring rule to detect unexpected file creations outside the designated cache directory or in critical system paths, and investigate any such events promptly.

Generated by OpenCVE AI on July 31, 2026 at 03:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 27 Jul 2026 13:15:00 +0000

Type Values Removed Values Added
First Time appeared Preferredai
Preferredai cornac
Vendors & Products Preferredai
Preferredai cornac

Wed, 15 Jul 2026 14:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Cornac < 2.6.0 Path Traversal via _extract_archive() in download.py
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}

cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Preferredai Cornac
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-15T14:41:32.022Z

Reserved: 2026-05-01T18:22:45.642Z

Link: CVE-2026-43637

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T03:45:04Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')