mislav/hub · Security
Hub Package Arbitrary File Overwrite
- GHSA ID
- GHSA-x5m6-jh4r-34mv
- CVE ID
- CVE-2014-0177
- Severity
- medium
- Published
- Updated
- CVSS
- 4.4 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
- CVSS v3
- 4.4 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
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.
CWEs
- CWE-377 · Insecure Temporary File
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/releases/tag/v1.12.1 ↗
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/hub/CVE-2014-0177.yml ↗
- https://github.com/advisories/GHSA-x5m6-jh4r-34mv ↗