Horizon Alert
Summary of the vulnerability and why it matters
A path traversal vulnerability exists in the `fastcore.xtras.untar_dir()` function, which can allow an attacker to write files to arbitrary locations on a system by providing a specially crafted tar archive. This could potentially lead to code execution, data modification, or denial of service if applications process untrusted archives using this function.
- Malicious archives can overwrite important files.
- Affects applications processing untrusted archives.
- Confirm relevance and check for exposure.
Attack Path
How an attacker could exploit the issue
An attacker could exploit this vulnerability by tricking an application into extracting a specially crafted tar archive. The application, using a vulnerable function, would then write files to arbitrary locations on the system instead of the intended directory. This could lead to the modification or replacement of critical application files or even allow arbitrary code execution.
- Requires processing untrusted archives.
- Exploits archive extraction function.
- Enables arbitrary file writes.
Live Threat
Current exploitation, exposure, and threat context
A path traversal vulnerability in the `fastcore.xtras.untar_dir()` function could allow an attacker to write files to arbitrary locations on the system if an application processes a crafted tar archive. This could affect application files, configuration, or importable code, potentially leading to code execution, data modification, or denial of service when running on Python versions before 3.14.
- Application files and code are at risk.
- A crafted tar archive can overwrite files.
- Arbitrary file writes could lead to code execution.
Operational Fix
Recommended remediation, mitigation, and detection steps
Applications utilizing the `fastcore.xtras.untar_dir()` function to extract untrusted archives are at risk from this path traversal vulnerability. The first practical step is to identify all instances of this function, determine which handle untrusted input, and assess their business criticality and exposure. Accountable teams, likely application owners or development teams, should then coordinate remediation efforts based on this risk assessment.
- Application owners should own this issue.
- Verify untrusted archive extraction points.
- Plan remediation based on assessed risk.