6 ms·
Server and Client RCE in Git version 2.7.1 and below
- 0x0 11y agoSounds like this could be a big deal for bitbucket.org and gitlab.com? Esp. considering private repositories there.
- sytse 11y agoFor sure a big deal, we're deploying GitLab.com as we speak https://twitter.com/gitlabstatus/status/709888872549847040 https://twitter.com/gitlabstatus/status/709888872549847040
- sytse 11y agoAnd GitLab.com us updated. If someone finds anything please contact us https://about.gitlab.com/disclosure/ https://about.gitlab.com/disclosure/
- Mojah 11y agoPublic mirror here if the official ones go down: https://marc.ttias.be/oss-security/2016-03/msg00180.php https://marc.ttias.be/oss-security/2016-03/msg00180.php
- swiley 11y agoGit kind of implies that you're going to execute something from the remote end anyway so it's not something like hartbleed....
- Mojah 11y agoA couple of thoughts on the potential impact: https://ma.ttias.be/remote-code-execution-git-versions-client-server-2-7-1-cve-2016-2324-cve-2016%E2%80%912315/ https://ma.ttias.be/remote-code-execution-git-versions-clien... Server-side: github & bitbucket will get patched quickly, if they're even still vulnerable. Self-hosted installations like Gitlab will be more difficult, as it requires sysadmins to patch themselves. History has thought us this takes too long. Client-side: possibly the biggest impact, as nearly every Linux distribution ships vulnerable versions. Any kind of local system user activity could trigger the RCE. Technically, that includes any PHP, Ruby or Python site that allows shell commands to be executed - which, by default, they nearly all do. It has all the potential to be huge.
- sytse 11y agoAt GitLab this was fixed with https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3240 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3240 which we plan to release tomorrow in 8.5.7 https://gitlab.com/gitlab-org/gitlab-ce/issues/14308 https://gitlab.com/gitlab-org/gitlab-ce/issues/14308
- sytse 11y agoYou can already download the fixed packages of 8.5.7 right now.
- sytse 11y agoAnd the blog post is out https://about.gitlab.com/2016/03/16/gitlab-8-dot-5-dot-7-released/ https://about.gitlab.com/2016/03/16/gitlab-8-dot-5-dot-7-rel...
- sofaofthedamned 11y agoNice, thanks for the fast response!
- sytse 11y ago
- krallin 11y agoNote: if you're using Ubuntu, there is a semi-official PPA that has a non-vulnerable version (2.7.3): https://launchpad.net/~git-core/+archive/ubuntu/ppa https://launchpad.net/~git-core/+archive/ubuntu/ppa
- wyldfire 11y agoBut a fix should come via the normal update channel soon? I'm on wily, should I expect to add this PPA or risk vulnerability?
- voltagex_ 11y agoUbuntu should announce the fix at https://www.ubuntu.com/usn/ https://www.ubuntu.com/usn/ but I can't load the page right now. (removed DSA link as per advice below)
- 0x0 11y agoThat Debian advisory is a different, older vulnerability. Looks like they know about it but haven't released anything yet: https://security-tracker.debian.org/tracker/source-package/git https://security-tracker.debian.org/tracker/source-package/g...
- voltagex_ 11y agoOops, thanks.
- reedloden 11y agohttps://bugs.launchpad.net/ubuntu/+source/git/+bug/1557787 https://bugs.launchpad.net/ubuntu/+source/git/+bug/1557787 is the tracking bug for this issue. Seems like it's fixed on xenial but not yet in older releases.
- krallin 11y agoUnfortunately it looks like the distros have not been particularly diligent about releasing a fix via the security channel (according to the article), so this PPA is a workaround
- mappu 11y agoTimes like this i'm glad i'm still on Mercurial (no `strcpy` overflows in Python). Is anyone planning on writing a DVCS in Rust?
- k1t 11y agoAlmost certainly. Which reminds me of a (partial) Haskell git implementation: http://stefan.saasen.me/articles/git-clone-in-haskell-from-the-bottom-up/ http://stefan.saasen.me/articles/git-clone-in-haskell-from-t... Previously posted to HN a number times, e.g. https://news.ycombinator.com/item?id=8713328 https://news.ycombinator.com/item?id=8713328
- gpm 11y agoYes, pijul: https://pijul.org/ https://pijul.org/
- tom9729 11y agoIt wouldn't have to be a new DVCS. It could be a Rust implementation of Git. e.g. Java Git implementation (JGit) used by Eclipse, Gerrit, etc.
- kibwen 11y agoPijul, linked in a sibling comment, appears to actually be a Rust implementation of Darcs (or at least inspired by it).
- pijul 11y agoPijul is not a reimplementation of darcs, it's based on a new theory, without the performance drawbacks of darcs. Btw, rewriting darcs would really feel like reinventing the wheel. Haskell is safe and great already.
- sergioocon 11y agohttps://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-2315 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-2315
- koleslaw 11y agoBitBucket Cloud is currently on Git 2.1.1.1.g1fb337f (Version Info link in the footer https://bitbucket.org/support https://bitbucket.org/support). Anyone know what about GitHub?