CVE-2014-0177 Hub Package Arbitrary File Overwrite
Local attackers can overwrite arbitrary files via symlink attacks on temporary patch files in the hub command-line tool.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2014-0177?
CVE-2014-0177 is a low-severity path traversal vulnerability in n/a, published on 27 May 2014. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-310
Which versions are affected by CVE-2014-0177?
4 open source packages ship an affected version, including github.com/github/hub and hub. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/github/hub Go | All versions | 1.12.1 |
github.com/github/hub Go | All versions | 1.12.1 |
hub RubyGems | All versions | 1.12.1 |
hub RubyGems | All versions | 1.12.1 |
Products include Github Hub.
How do I fix CVE-2014-0177?
Upgrade github.com/github/hub to 1.12.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2014-0177 being exploited?
There is no known exploitation of CVE-2014-0177 in the wild and no public exploit code.
Sources
Also known as GHSA-x5m6-jh4r-34mv, openSUSE-SU-2024:10501-1.