Bug 2509843 (CVE-2026-18508) - CVE-2026-18508 tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite
Summary: CVE-2026-18508 tar: tar: --one-top-level hardlink targets not confined to top...
Keywords:
Status: NEW
Alias: CVE-2026-18508
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2509845
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-31 17:05 UTC by OSIDB Bzimport
Modified: 2026-08-04 07:48 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-31 17:05:19 UTC
A flaw was found in GNU tar. The --one-top-level option is intended to confine extraction under a designated directory, but hardlink targets from the archive are not confined the same way and are resolved relative to the extraction working directory (or the directory given with -C). A crafted archive can create hardlinks inside the --one-top-level directory that point to files outside it. If a suitable symbolic link already exists under the extraction working directory, hardlinking to that symlink can bypass tar's usual symlink-based path protections and allow writing outside the intended top-level directory during a single extraction. Users who rely on --one-top-level as a security boundary when extracting untrusted archives may be affected.


Note You need to log in before you can comment on or make changes to this bug.