GitHub Advisory Database
GHSA-x5m6-jh4r-34mv
Hub Package Arbitrary File Overwrite
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/github/hub | All versions before 1.12.1 (fixed in 1.12.1) |
| RubyGems | hub | All versions before 1.12.1 (fixed in 1.12.1) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-0177
- https://github.com/github/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600
- https://github.com/mislav/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600
- https://github.com/mislav/hub
- https://github.com/mislav/hub/releases/tag/v1.12.1
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/hub/CVE-2014-0177.yml