CVE-2026-43637: Cornac: Path Traversal via _extract_archive() in download.py
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 extractarchive() function in cornac/utils/download.py.
Published Jul 15, 2026 · Updated Nov 9, 2026
Affected packages
cornac
- Ecosystem
- PyPI
- Affected
- < 2.6.0
- Fixed in
- 2.6.0
- Check
pip show cornac
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to rahulreddykarne, PercevalFox.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-43637
- https://github.com/PreferredAI/cornac/pull/709
- https://github.com/PreferredAI/cornac/commit/8a50be72c11569b6747c6b96d6e31a0a1962f1a8
- https://github.com/PreferredAI/cornac/releases/tag/v2.6.0
- https://www.vulncheck.com/advisories/cornac-path-traversal-via-extract-archive-in-download-py
- https://github.com/advisories/GHSA-rrh3-cwwj-g5mg
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
