CVE details
CVE-2026-18508
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 ports (1)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| archivers/gtar | gtar | 1.35_1 | unaddressed | naddy@FreeBSD.org |
Template for a VuXML entry
Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>FIXME -- FIXME</topic>
<affects>
<package>
<name>gtar</name>
<range><lt>FIXME</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>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.</p>
</body>
</description>
<references>
<cvename>CVE-2026-18508</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2026-18508</url>
</references>
<dates>
<discovery>2026-08-03</discovery>
<entry>2026-10-25</entry>
</dates>
</vuln>