JLSEC-2026-1566: Medium severity julia/tar_jll vulnerability
A flaw was found in GNU tar. When extracting an archive with the --one-top-level option, hardlink targets are not confined to the designated top-level directory and may resolve relative to the extraction working directory. A crafted archive can create hardlinks that escape the intended boundary and, when combined with a preexisting symbolic link under the working directory, may allow writing outside that boundary during a single extraction.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users or automated processes that extract crafted archives with GNU tar using the --one-top-level option are exposed. Exploitation additionally depends on a preexisting symbolic link under the extraction working directory.
What does an attacker need to exploit the flaw?
An attacker needs to supply a crafted archive containing hardlink targets that resolve outside the designated top-level directory. The victim must extract it with --one-top-level, and a suitable symbolic link must already exist under the working directory.
Are default extractions affected?
The described behavior is specifically tied to extraction using the --one-top-level option. The available information does not establish impact for extractions that do not use that option.
What can be done if patching is not immediately possible?
Avoid extracting untrusted archives with --one-top-level, particularly in working directories containing symbolic links. Use a clean extraction working directory without preexisting symbolic links when processing archives that may be attacker-controlled.