Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I scan a git repository for possible CVE-2014-9390 malicious commits?

Using stock git porcelain and plumbing, how does one search all reachable commits for instances of possibly malicious additions to .GiT, .gIt, and so on?

For context, see

  • [ANNOUNCE] Git v2.2.1 (and updates to older maintenance tracks)
  • Git 1.8.5.6, 1.9.5, 2.0.5, 2.1.4 and 2.2.1 and thanking friends in Mercurial land
  • Vulnerability announced: update your Git clients
  • https://security-tracker.debian.org/tracker/CVE-2014-9390
like image 397
Greg Bacon Avatar asked Dec 19 '14 19:12

Greg Bacon


1 Answers

From the first link you've given (Git v2.2.1 Release Notes / Fixes since v2.2):

"git fsck" notices a tree object that records such a path that can be confused with ".git"

So, just update to the latest git, run git fsck, and you are done.

like image 138
cmaster - reinstate monica Avatar answered Nov 02 '22 06:11

cmaster - reinstate monica