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… (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.
AI Analysis
Technical Summary
CVE-2026-18508 describes a flaw in GNU tar where the --one-top-level option does not properly confine hardlink targets to the specified top-level directory during archive extraction. Crafted archives can create hardlinks that escape the intended directory boundary and, if a symbolic link exists in the extraction working directory, may allow writing outside the target directory in a single extraction operation. This vulnerability affects Red Hat Hardened Images RPMs and Red Hat Enterprise Linux when extracting untrusted archives with --one-top-level. The flaw is classified under CWE-59 (Improper Link Resolution Before File Access). Red Hat advises avoiding the use of --one-top-level as the sole confinement mechanism for untrusted archives until patched versions are released. The vulnerability has a CVSS v3.1 base score of 4.4 (moderate severity) according to Red Hat's assessment.
Potential Impact
An attacker can craft an archive that, when extracted with the --one-top-level option, may cause files to be written outside the intended extraction directory if a symbolic link exists in the working directory. This can lead to unauthorized file overwrite and potential bypass of security mechanisms relying on file integrity. The impact includes limited confidentiality and integrity loss but no availability impact. The vulnerability requires local access and user interaction (extracting the archive).
Mitigation Recommendations
Red Hat advises not to use the --one-top-level option as the sole confinement mechanism when extracting untrusted archives. Instead, extract archives as an unprivileged user into a newly created empty directory after changing into that directory. Avoid extracting as root from sensitive directories such as the root directory (/). Follow GNU tar security guidance for handling untrusted archives. Fixed packages are not yet available; monitor Red Hat advisories for updates.
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… (CVE-2026-18508)
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 v3.1
Score 4.4medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-18508 describes a flaw in GNU tar where the --one-top-level option does not properly confine hardlink targets to the specified top-level directory during archive extraction. Crafted archives can create hardlinks that escape the intended directory boundary and, if a symbolic link exists in the extraction working directory, may allow writing outside the target directory in a single extraction operation. This vulnerability affects Red Hat Hardened Images RPMs and Red Hat Enterprise Linux when extracting untrusted archives with --one-top-level. The flaw is classified under CWE-59 (Improper Link Resolution Before File Access). Red Hat advises avoiding the use of --one-top-level as the sole confinement mechanism for untrusted archives until patched versions are released. The vulnerability has a CVSS v3.1 base score of 4.4 (moderate severity) according to Red Hat's assessment.
Potential Impact
An attacker can craft an archive that, when extracted with the --one-top-level option, may cause files to be written outside the intended extraction directory if a symbolic link exists in the working directory. This can lead to unauthorized file overwrite and potential bypass of security mechanisms relying on file integrity. The impact includes limited confidentiality and integrity loss but no availability impact. The vulnerability requires local access and user interaction (extracting the archive).
Mitigation Recommendations
Red Hat advises not to use the --one-top-level option as the sole confinement mechanism when extracting untrusted archives. Instead, extract archives as an unprivileged user into a newly created empty directory after changing into that directory. Avoid extracting as root from sensitive directories such as the root directory (/). Follow GNU tar security guidance for handling untrusted archives. Fixed packages are not yet available; monitor Red Hat advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-4f5j-wqjr-hx49
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-18508"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a710659bf32cb7a3439375d
Added to database: 08/03/2026, 21:21:29 UTC
Last enriched: 08/11/2026, 12:57:47 UTC
Last updated: 09/17/2026, 22:01:33 UTC
Views: 124
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.