Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHost or MITM malicious dataset archive
-
DeliveryVictim invokes built-in dataset loader
-
ExploitCornac auto-downloads crafted TAR
-
Executionextractall() follows ../ and symlink entries
-
PersistArbitrary files written outside cache dir
-
ImpactOverwrite cron/SSH/module for code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to control the contents of a TAR archive that Cornac fetches through its built-in dataset loaders (which call _extract_archive() → archive.extractall() in cornac/utils/download.py), and the malicious archive must contain ../ traversal sequences, absolute paths, or symlink/hardlink entries. The affected code runs on any version before 2.6.0. The practical limiting factor is that the attacker must be positioned to supply that archive - by hosting a malicious dataset the victim chooses to load, compromising the dataset host/mirror, or performing a MITM on a non-integrity-verified download - rather than reaching the victim purely unsolicited; the CVSS PR:N/UI:N metrics do not capture this required control over the download source. Impact is bounded to files writable by the running process user. |
| Impact | The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, VI:H/VA:H, score 8.8) models unauthenticated network exploitation with high integrity and availability impact and no confidentiality loss - consistent with arbitrary file write rather than direct data theft. That vector is optimistic in one respect: exploitation is not truly 'no conditions' because the attacker must control the content of the archive Cornac downloads, which in practice means compromising or MITM'ing a dataset source or convincing a user to load a malicious dataset - a real limiting factor the base metrics understate. There is no EPSS score, no KEV listing, and no published POC in the provided data, so this is a credible integrity/RCE-class bug in a research library rather than a mass-exploited threat. Priority is moderate: high technical impact, but the affected software is a niche ML library and successful attacks require influence over the dataset supply chain, so it is more relevant to ML/research pipelines than to broad enterprise fleets. |
| Exploit ScenarioDerived | An attacker who can influence a dataset archive Cornac downloads - by hosting a malicious 'benchmark' dataset, compromising a mirror, or intercepting an unauthenticated download - serves a crafted TAR whose members use ../ sequences or a symlink pointing outside the cache directory. When a researcher's script calls a built-in dataset loader, Cornac auto-downloads and extractall()s the archive, silently writing attacker-controlled files (e.g., a cron job, SSH key, or Python module on the import path) to arbitrary locations, enabling persistence or code execution as the running user. No public POC is identified, but the technique is well-known and low-complexity. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 15, 2026
Arbitrary file write in Cornac's dataset-download utility (all versions before 2.6.0) lets an attacker who controls a downloaded TAR archive place files anywhere the Python process can write, because the _extract_archive() helper in cornac/utils/download.py calls archive.extractall() without validating member paths. Since Cornac's built-in dataset loaders automatically fetch and unpack archives, a poisoned or MITM'd dataset archive containing ../ traversal, absolute paths, or symlink/hardlink entries can overwrite sensitive files and potentially achieve code execution. VulnCheck reported the issue; no public exploit identified at time of analysis and it is not in CISA KEV.
RemediationAI
Vendor-released patch: upgrade Cornac to 2.6.0 or later (pip install --upgrade cornac), which the 2.6.0 release notes describe as 'Fix CWE-22 path traversal (Tar Slip) in dataset archive extraction' (PR #709, commit 8a50be72). Until you can upgrade, avoid loading datasets from untrusted or third-party archive URLs and only fetch from sources you control over TLS to prevent tampering; if you must extract untrusted archives, do it in a disposable sandbox/container with a low-privilege user and no write access outside a scratch directory so a traversal write cannot reach sensitive paths, accepting the trade-off of added pipeline complexity. You can also pin and integrity-check (hash-verify) downloaded dataset archives before extraction to detect substituted payloads. See the VulnCheck advisory (https://www.vulncheck.com/advisories/cornac-path-traversal-via-extract-archive-in-download-py) and the GitHub release for authoritative details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Cornac is an open-source Python framework from Preferred.AI for comparative and multimodal recommender-systems research (CPE cpe:2.3:a:preferredai:cornac). The flaw is a classic 'Tar Slip' - a CWE-22 path traversal specific to archive extraction. Python's tarfile/zipfile extractall() blindly honors the path stored in each archive member, so entries like ../../etc/cron.d/x, /root/.ssh/authorized_keys, or a symlink pointing outside the target directory are written to their declared destination rather than being confined to the intended cache directory. Cornac's download.py used extractall() with no per-member path canonicalization or symlink filtering, and its dataset loaders invoke this path automatically as part of fetching benchmark datasets, so the unsafe extraction runs without an explicit user 'extract this untrusted file' action.
Know when Cornac gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Attacker must interpose on or supply the downloaded archive (AC:H) and the victim must invoke a dataset loader (UI:R); arbitrary file write gives I:H/A:H with no direct confidentiality loss (C:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
Cornac, a widely-used Python machine learning library, contains an arbitrary file write vulnerability in its dataset-download utility that allows attackers controlling a malicious dataset archive to overwrite critical system files and potentially execute code. Organizations using Cornac for automated dataset ingestion face immediate risk of system compromise if datasets are sourced from untrusted or unvalidated origins.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-44669
GHSA-rrh3-cwwj-g5mg
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB