CVE-2026-18508: Improper Link Resolution Before File Access ('Link Following') in Red Hat Red Hat Enterprise Linux 10
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
This vulnerability in GNU tar arises from improper link resolution during archive extraction with the --one-top-level option. Hardlink targets are not confined to the specified top-level directory and may resolve relative to the extraction working directory. An attacker can craft an archive that creates hardlinks escaping the intended directory boundary. When combined with existing symbolic links under the working directory, this can lead to arbitrary file writes outside the extraction directory during a single extraction operation. The flaw is specific to the use of --one-top-level and does not affect default extraction behavior.
Potential Impact
An attacker who can supply a crafted archive and cause it to be extracted with the --one-top-level option may be able to write files outside the intended extraction directory. This could lead to modification of unexpected files, potentially bypassing security mechanisms relying on file integrity. The confidentiality and integrity impacts are rated low, with 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 freshly created empty directory after changing into that directory. Avoid extracting as root from sensitive directories such as /. Follow GNU tar security guidance for handling untrusted archives. Currently, no fixed packages are available; users should apply these mitigations until a fix is released. Patch status is not yet confirmed — check the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-18508 for updates.
CVE-2026-18508: Improper Link Resolution Before File Access ('Link Following') in Red Hat Red Hat Enterprise Linux 10
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
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in GNU tar arises from improper link resolution during archive extraction with the --one-top-level option. Hardlink targets are not confined to the specified top-level directory and may resolve relative to the extraction working directory. An attacker can craft an archive that creates hardlinks escaping the intended directory boundary. When combined with existing symbolic links under the working directory, this can lead to arbitrary file writes outside the extraction directory during a single extraction operation. The flaw is specific to the use of --one-top-level and does not affect default extraction behavior.
Potential Impact
An attacker who can supply a crafted archive and cause it to be extracted with the --one-top-level option may be able to write files outside the intended extraction directory. This could lead to modification of unexpected files, potentially bypassing security mechanisms relying on file integrity. The confidentiality and integrity impacts are rated low, with 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 freshly created empty directory after changing into that directory. Avoid extracting as root from sensitive directories such as /. Follow GNU tar security guidance for handling untrusted archives. Currently, no fixed packages are available; users should apply these mitigations until a fix is released. Patch status is not yet confirmed — check the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-18508 for updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-07-31T17:08:04.550Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-18508","vendor":"Red Hat"}]
Threat ID: 6a70b4e4bf32cb7a34cc8d1d
Added to database: 08/03/2026, 15:33:56 UTC
Last enriched: 08/03/2026, 16:10:23 UTC
Last updated: 08/03/2026, 16:27:25 UTC
Views: 5
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.