CVE-2026-18508: Tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite
Vulnerability summary
CVE-2026-18508 is a medium (CVSS 4.4) vulnerability in gnu tar. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7.6% of scored vulnerabilities.
Not severe (CVSS 4.4, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 5 · Related 1Timeline
- 03-08-2026PublishedVulnerability first disclosed.
- 05-11-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · Red hatEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- NVDNIST4.4MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
8%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 0.14% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard3 products
- gnutarAll versions (No fix recorded)
- gnutar-docAll versions (No fix recorded)
- gnutar-rmtAll versions (No fix recorded)
Redhat3 products
- enterprise_linux8.0 | 9.0 | 10.0
- openshift_container_platform4.0
- tar< 0:1.35-9.2.hum1 | < 2:1.35-9.2.hum1
Wolfi3 products
- gnutarAll versions (No fix recorded)
- gnutar-docAll versions (No fix recorded)
- gnutar-rmtAll versions (No fix recorded)
Debian1 product
- tarAll versions (No fix recorded)
Gnu1 product
- tar1.35
Ubuntu1 product
- tarAll versions (No fix recorded)
6 vendors · 12 products
References
15 links- images.redhat.comARTICLE