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.
{
"cwe_ids": [
"CWE-377"
],
"github_reviewed": true,
"severity": "MODERATE",
"github_reviewed_at": "2021-05-20T20:32:04Z",
"nvd_published_at": "2014-05-27T14:55:10Z"
}