CVEfocus › CVE database › CVE-2026-18508

CVE-2026-18508Tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling…

CVSS 4.4 MediumEPSS 0.2% (higher than 4% of CVEs)Published 2026-08-03Updated 2026-11-05Assigner: redhat

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.

CWE-59

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

9Fixed
11Fix pending
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10tarFix pendingUBUNTU-CVE-2026-18508
Ubuntu 26.04tarFix pendingUBUNTU-CVE-2026-18508
Ubuntu 24.04tarFix pendingUBUNTU-CVE-2026-18508
Ubuntu 22.04tarFix pendingUBUNTU-CVE-2026-18508
Ubuntu 20.04tarFix pendingUBUNTU-CVE-2026-18508
Ubuntu 18.04tarFix pendingUBUNTU-CVE-2026-18508
Ubuntu 16.04tarFix pendingUBUNTU-CVE-2026-18508
Ubuntu 14.04tarFix pendingUBUNTU-CVE-2026-18508
Debian 14tarFix pendingDEBIAN-CVE-2026-18508
Debian 13tarFix pendingDEBIAN-CVE-2026-18508
Debian 12tarFix pendingDEBIAN-CVE-2026-18508
Red Hat Enterprise Linux 10tarFixed2:1.35-13.el10_2RHSA-2026:61586
Red Hat Enterprise Linux 9tarFixed2:1.34-13.el9_8RHSA-2026:61581
Red Hat Enterprise Linux 8tarFixed2:1.30-13.el8_10RHSA-2026:70390
Red Hat Enterprise Linux 7tarWill not fix
Out of support scope
Red Hat Enterprise Linux 6tarWill not fix
Out of support scope
AlmaLinux 10tarFixed2:1.35-13.el10_2ALSA-2026:61586
AlmaLinux 9tarFixed2:1.34-13.el9_8ALSA-2026:61581
AlmaLinux 8tarFixed2:1.30-13.el8_10ALSA-2026:70390
Rocky Linux 10tarFixed2:1.35-13.el10_2RLSA-2026:61586
Rocky Linux 9tarFixed2:1.34-13.el9_8RLSA-2026:61581
Rocky Linux 8tarFixed2:1.30-13.el8_10RLSA-2026:70390

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Do not use --one-top-level as the sole confinement mechanism when extracting untrusted archives. Prefer extracting as an unprivileged user into a freshly created empty directory after changing into that directory (mkdir and cd), avoid extracting as root from sensitive working directories such as /, and follow the GNU tar security guidance for untrusted archives.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.