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-09-22 18:38 UTC (History)
17 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2026:62582 0 None None None 2026-09-02 10:51:43 UTC
Red Hat Product Errata RHBA-2026:64821 0 None None None 2026-09-08 03:07:36 UTC
Red Hat Product Errata RHBA-2026:66386 0 None None None 2026-09-10 15:25:52 UTC
Red Hat Product Errata RHBA-2026:66477 0 None None None 2026-09-10 17:40:57 UTC
Red Hat Product Errata RHSA-2026:61581 0 None None None 2026-08-31 14:06:14 UTC
Red Hat Product Errata RHSA-2026:61586 0 None None None 2026-08-31 14:20:04 UTC
Red Hat Product Errata RHSA-2026:70390 0 None None None 2026-09-22 18:38:55 UTC

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.

Comment 4 errata-xmlrpc 2026-08-31 14:06:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:61581 https://access.redhat.com/errata/RHSA-2026:61581

Comment 5 errata-xmlrpc 2026-08-31 14:20:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:61586 https://access.redhat.com/errata/RHSA-2026:61586

Comment 6 Jon Orris 2026-09-22 18:38:53 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:70390 https://access.redhat.com/errata/RHSA-2026:70390


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