{"id":"GHSA-x5m6-jh4r-34mv","summary":"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.","aliases":["CVE-2014-0177"],"modified":"2024-02-16T08:03:34.350985Z","published":"2022-02-15T01:07:53Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2021-05-20T20:32:04Z","nvd_published_at":"2014-05-27T14:55:10Z","cwe_ids":["CWE-377"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2014-0177"},{"type":"WEB","url":"https://github.com/github/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600"},{"type":"WEB","url":"https://github.com/mislav/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600"},{"type":"PACKAGE","url":"https://github.com/mislav/hub"},{"type":"WEB","url":"https://github.com/mislav/hub/releases/tag/v1.12.1"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/hub/CVE-2014-0177.yml"}],"affected":[{"package":{"name":"github.com/github/hub","ecosystem":"Go","purl":"pkg:golang/github.com/github/hub"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.12.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-x5m6-jh4r-34mv/GHSA-x5m6-jh4r-34mv.json"}},{"package":{"name":"hub","ecosystem":"RubyGems","purl":"pkg:gem/hub"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.1"}]}],"versions":["1.10.0","1.10.1","1.10.2","1.10.3","1.10.4","1.10.5","1.10.6","1.11.0","1.11.1","1.11.2","1.12.0","1.6.0","1.6.1","1.7.0","1.8.0","1.8.1","1.8.2","1.8.3","1.8.4","1.9.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-x5m6-jh4r-34mv/GHSA-x5m6-jh4r-34mv.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"}]}