Menu
Outdated Git version in OS X puts developers at risk

Outdated Git version in OS X puts developers at risk

The Git version shipped with Apple's command line developer tools is vulnerable to remote code execution attacks

The OS X command line developer tools include an old version of the Git source code management system that exposes Mac users to remote code execution attacks.

The Git client allows developers to interact with source code repositories. It is not installed by default on Mac OS X, but it is included in the Command Line Tools package for Xcode, Apple's integrated development environment (IDE).

Software developers who create applications for OS X or iOS are likely to use Xcode and to have Apple's Command Line Tools package installed on their Macs. The latest version of this package includes Git version 2.6.4, released in December.

The problem is that Git 2.6.4 has two serious vulnerabilities that were publicly disclosed last month. The flaws, tracked as CVE-2016-2315 and CVE-2016-2324, affect both client and server deployments on Git. On the client side, they could lead to remote code execution when cloning a repository with a large filename or a large number of nested trees.

The vulnerabilities were fixed in Git 2.7.4, released on March 17, but one month later Apple still hasn't released an update to its Command Line Tools package.

Even worse, since the Git binary is installed as a system-level program, on OS X El Capitan (10.11) users can't easily replace or update it themselves, according to systems administration expert Rachel Kroll. That's because Apple's latest OS X version includes System Integrity Protection (SIP), a mechanism that prevents modifying programs in certain protected directories like /usr and /bin, even with root privileges.

"Maybe you want to be clever and protect your users by disabling it until you can figure something else out," Kroll said in a blog post. "Well, sorry. You also can't 'chmod -x' to at least keep it from being used. It will also fail."

Fortunately, there is a workaround, because /usr/bin/git is just a clever link to /Applications/Xcode.app/Contents/Developer/usr/bin, which can be modified. Running "chmod -x" on the latter binary will remove its execution privileges and ensure that no users or programs accidentally run it.

Then you have to wait until Apple releases a patched version as part of a future Command Line Tools package. However, Git is important for development tools and preventing its use could affect workflows.

Apple did not immediately respond to an inquiry about its plans of patching the Git binary that the company distributes.

"If you rely on machines like this, I am truly sorry," Kroll said. "I feel for you."

Follow Us

Join the New Zealand Reseller News newsletter!

Error: Please check your email address.

Slideshows

Top 50 defining moments of the New Zealand channel in 2016

Top 50 defining moments of the New Zealand channel in 2016

Reseller News looks back on a tumultuous 12 months for the New Zealand channel, assessing the fallout from a year of sizeable industry change. Whether it be local or global mergers and acquisitions, distribution deals or job changes, the channel that started the year differs somewhat to the one set to finish it - Reseller News assesses the key moments that made 2016.​

Top 50 defining moments of the New Zealand channel in 2016
​Hewlett Packard Enterprise honours high achieving NZ channel

​Hewlett Packard Enterprise honours high achieving NZ channel

Hewlett Packard Enterprise honoured its top performing Kiwi partners at the second running of its HPE Partner Awards in New Zealand, held at a glitzy ceremony in Auckland. Recognising excellence across eight categories - from distributors to resellers - the tech giant celebrated its first year as a standalone company, following its official split from HP in 2015.

​Hewlett Packard Enterprise honours high achieving NZ channel
Nutanix treats channel partners to Christmas cruise

Nutanix treats channel partners to Christmas cruise

Nutanix recently took to the seas for a Christmas Cruise around Sydney Harbour with its Australia and New Zealand staff, customers and partners to celebrate a stellar year for the vendor. With the sun out, they were all smiles and mingled over drinks and food.

Nutanix treats channel partners to Christmas cruise
Show Comments