GHSA-R6VF-943R-2WVW
minitar path traversal vulnerability on Windows with a maliciously crafted tarball
Overview
Description
On Windows, a maliciously crafted tarball can write files outside of the extraction directory.
Impact
Path traversal (CWE-22). A crafted tar archive can cause files to be created or overwritten outside the extraction directory.
Applications and scripts running on Windows Ruby (platforms where File::ALT_SEPARATOR is "\", such as mswin and mingw) that extract tar archives from sources they don't fully control, using Minitar.unpack, Minitar::Input#extract_entry, or Minitar::Input#each. Platforms where File::ALT_SEPARATOR is nil, including Linux, macOS, and the BSDs, are not affected, because \ is not a separator there and is extracted as a literal filename character.
A crafted archive can cause files to be created or overwritten outside the destination directory, limited to locations the extracting process can write to. Exploitation requires a user or process to extract the attacker-supplied archive. Further impact depends on what is writable and what the overwritten files are used for.
Source: OX vulnerability database
Severity
MEDIUM
No CVSS vector in the source. Severity comes from the advisory.
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | minitar | — | ~> 1.1.11.2.0 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/halostatue/minitar/blob/main/CHANGELOG.md#111--2026-11-11
- github.com https://github.com/halostatue/minitar/blob/main/CHANGELOG.md#120--2026-11-11
- github.com https://github.com/halostatue/minitar/security/advisories/GHSA-r6vf-943r-2wvw
- rubygems.org https://rubygems.org/gems/minitar/versions/1.1.1
- rubygems.org https://rubygems.org/gems/minitar/versions/1.2.0
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.