CVE Catalog

CVE-2026-18508

MediumCVSS 4.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.14%

3th percentile - higher than 3% of all known CVEs

Summary

GNU tar has a vulnerability 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.

Risk Assessment

An attacker could exploit this vulnerability to write files outside the intended target directory, potentially leading to overwriting system files or privilege escalation.

Recommendation

Update GNU tar to a version where the vulnerability is fixed, and avoid extracting archives from untrusted sources with the --one-top-level option.

Other vulnerabilities in GNU tar

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS