CVE-2026-43637: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in PreferredAI cornac
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.
AI Analysis
Technical Summary
CVE-2026-43637 is a path traversal (Tar Slip) vulnerability in PreferredAI's cornac library before version 2.6.0. The issue arises in the _extract_archive() function located in cornac/utils/download.py, where TAR archives containing malicious path components (e.g., ../ sequences, absolute paths, symlinks, or hardlinks) are extracted without proper validation. This allows attackers to write files outside the intended cache directory. The vulnerability can be exploited through cornac's built-in dataset loaders that automatically download and extract TAR archives, causing archive.extractall() to write files to arbitrary filesystem locations accessible by the process.
Potential Impact
Successful exploitation allows an unauthenticated attacker to write arbitrary files to locations outside the intended cache directory on the filesystem accessible to the cornac process. This can lead to unauthorized file modification or creation, potentially enabling further attacks or system compromise depending on the environment and permissions of the running process.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid processing untrusted TAR archives with cornac's dataset loaders or modify the _extract_archive() function to validate and sanitize archive paths before extraction to prevent path traversal. Monitor the PreferredAI cornac project for updates and apply official patches once released.
CVE-2026-43637: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in PreferredAI cornac
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.
CVSS v4.0
Score 8.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-43637 is a path traversal (Tar Slip) vulnerability in PreferredAI's cornac library before version 2.6.0. The issue arises in the _extract_archive() function located in cornac/utils/download.py, where TAR archives containing malicious path components (e.g., ../ sequences, absolute paths, symlinks, or hardlinks) are extracted without proper validation. This allows attackers to write files outside the intended cache directory. The vulnerability can be exploited through cornac's built-in dataset loaders that automatically download and extract TAR archives, causing archive.extractall() to write files to arbitrary filesystem locations accessible by the process.
Potential Impact
Successful exploitation allows an unauthenticated attacker to write arbitrary files to locations outside the intended cache directory on the filesystem accessible to the cornac process. This can lead to unauthorized file modification or creation, potentially enabling further attacks or system compromise depending on the environment and permissions of the running process.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid processing untrusted TAR archives with cornac's dataset loaders or modify the _extract_archive() function to validate and sanitize archive paths before extraction to prevent path traversal. Monitor the PreferredAI cornac project for updates and apply official patches once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-01T18:22:45.642Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a57970468715ace43de4738
Added to database: 07/15/2026, 14:19:48 UTC
Last enriched: 07/15/2026, 14:33:01 UTC
Last updated: 07/15/2026, 14:48:46 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.