File overwrite Affecting hub package, versions <1.12.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.39% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about File overwrite vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-HUB-20427
  • published7 Dec 2017
  • disclosed12 Apr 2014
  • creditUnknown

Introduced: 12 Apr 2014

CVE-2014-0177  (opens in a new tab)
CWE-310  (opens in a new tab)

How to fix?

Upgrade hub to version 1.12.1 or higher.

Overview

hub is a command line utility which can used on its own or as a git wrapper.

Affected versions of the package are vulnerable to File overwrite. The am function in lib/hub/commands.rb in hub before 1.12.1 allows local users to overwrite arbitrary files via a symlink attack on a temporary patch file.

References

CVSS Base Scores

version 3.1