Skip to content
OpenAdvisories
High · 7.5 CVE-2016-10173 EUVD-2017-0246GHSA-h5g2-38x9-4gv3

archive-tar-minitar and minitar vulnerable to Path Traversal

Published Feb 1, 2017 · Updated Aug 6, 2024 · Assigned by mitre

Description

Directory traversal vulnerability in the minitar before 0.6 and archive-tar-minitar 0.5.2 gems for Ruby allows remote attackers to write to arbitrary files via a .. (dot dot) in a TAR archive entry.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-minitar 0.5.4-3.1 —
Debian 13 ruby-minitar 0.5.4-3.1 —
Debian 12 ruby-minitar 0.5.4-3.1 —
Debian 8 ruby-archive-tar-minitar 0.5.2-2+deb8u1 DSA-3778-1
Debian 7 ruby-archive-tar-minitar 0.5.2-2+deb7u1 DLA-808-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS ruby-minitar 0.5.4-3.1build0.16.04.1 —
Ubuntu 14.04 LTS ruby-archive-tar-minitar 0.5.2-2+deb8u1build0.14.04.1 —
ReleasePackageFixed inAdvisory
SLES 12 rubygem-archive-tar-minitar 0.5.2-7.3.65 SUSE-SU-2021:0115-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ruby3.2-rubygem-minitar 0.9-1.13 openSUSE-SU-2024:13163-1
openSUSE Tumbleweed rubygem-minitar 0.9-1.17 openSUSE-SU-2026:10354-1, openSUSE-SU-2025:15121-1, openSUSE-SU-2024:14172-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems archive-tar-minitar < 0.5.2 0.5.2 GHSA-h5g2-38x9-4gv3
RubyGems minitar < 0.6 0.6 GHSA-h5g2-38x9-4gv3

Advisories 7

References