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.Referenceshttp://secunia.com/advisories/58273https://github.com/github/hub/commit/016ec99d25b1cb83cb4367e541177aa431beb600