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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"gnu:tar": [
"= 1.35"
]
},
"database_specific": {
"status": "Modified"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-18508",
"id": "CVE-2026-18508",
"imported": "2026-11-21T03:03:28.654Z",
"modified": "2026-11-05T20:17:52.950Z",
"published": "2026-08-03T16:16:28.387Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-18508"
}
]
}