Bug 2509845 - CVE-2026-18508 tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite [fedora-all]
Summary: CVE-2026-18508 tar: tar: --one-top-level hardlink targets not confined to top...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tar
Version: 45
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Pavel Cahyna
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["a93a69d7-6cd5-4120-87e5-2...
Depends On:
Blocks: CVE-2026-18508
TreeView+ depends on / blocked
 
Reported: 2026-07-31 17:24 UTC by Ganesh
Modified: 2026-09-12 00:19 UTC (History)
5 users (show)

Fixed In Version: tar-1.35-10.fc45
Clone Of:
Environment:
Last Closed: 2026-09-12 00:19:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ganesh 2026-07-31 17:24:57 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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 1 Aoife Moloney 2026-08-17 15:44:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.

Comment 2 Fedora Update System 2026-09-09 14:16:26 UTC
FEDORA-2026-ee1eb89e7b (tar-1.35-10.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-ee1eb89e7b

Comment 3 Fedora Update System 2026-09-10 02:17:44 UTC
FEDORA-2026-ee1eb89e7b has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-ee1eb89e7b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-ee1eb89e7b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2026-09-12 00:19:12 UTC
FEDORA-2026-ee1eb89e7b (tar-1.35-10.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.


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