Skip to main content
EPSS 0.1%top 96%

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)

0
Medium
Published: 08/03/2026 (08/03/2026, 18:30:45 UTC)
Source: GCVE Database

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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/11/2026, 12:57:47 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses