Breaking: Cry2Wolf - Not Every Branded Bug Deserves a Fire Drill
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

GHSA-R6VF-943R-2WVW

minitar path traversal vulnerability on Windows with a maliciously crafted tarball

Overview

Published
No date
Modified
No date
Medium GitHub advisory
1 Registry packages
0 OS packages
0 Linux distributions
Yes Fix available
CVSS score Medium, no score

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

Packages affected by GHSA-R6VF-943R-2WVW
EcosystemPackageVulnerableFixed 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

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.