CGit Maintainer Disappears, Security Hole Found

Posted by Michael Larabel on November 15, 2012

The maintainer behind the open-source CGit project, the popular web front-end to viewing Git repositories, disappeared some months ago. Since then a new maintainer has taken over work on this widely-used software while also discovering a nasty security hole that allows arbitrary command execution. A new CGit release has now occurred under the new leadership to address this problem.

Jason Donenfeld, the developer that has taken over the role as the CGit maintainer at least until the original maintainer re-appears, wrote into Phoronix with these details. "Cgit is a wonderful project, and it's one of the nicest web applications written in C I've ever read. Unfortunately, a while ago, the previous maintainer, Lars Hjemil, disappeared, and nobody I've talked to has heard from him or knows anything about it. Months went by, and as I'd been spirited about cgit for quite some time, I decided to take over stewardship with the community's approval. Folks liked the idea, and for the last few months, I've been managing patches in my own repository. It's not a fork, though. If Lars does return from wherever he is, he'll take over where I've left off."

While picking up the slack on CGit development, Donenfeld discovered a nasty security problem with the code. "I found a pretty serious security bug -- command injection. You can check out the commit here, CVE-2012-4548. Simple error, but not a nice error. In fact, a pretty grave hole."

Due to this major security problem plus other work that's come about since the disappearance of Lars Hjemil, a new release has been issued. Jason announced the CGit 0.9.1 release on the project's mailing list.

Aside from addressing two security vulnerabilities (there was also a heap-buffer overflow aside from the command injection issue), there's other bug-fixes plus a few enhancements. The new stuff out of this release is path-selected sub-module links, intelligent default branch guessing, improved MIME types lookup, case insensitive sorting, other sorting improvements, and Makefile BSD support.

"This is a very highly deployed project, often built by hand with no automatic update mechanism in place, and this version is really one that everyone should upgrade to, due to the rather horrible security hole," Jason Donenfeld added.

Discuss this article in our forums, IRC channel, or email the author. You can also follow our content via RSS and on social networks like Facebook, Identi.ca, and Twitter (@Phoronix and @MichaelLarabel). Subscribe to Phoronix Premium to view our content without advertisements, view entire articles on a single page, and experience other benefits.
Latest Hardware Reviews
  1. Intel Haswell HD Graphics 4600 vs. AMD Radeon Graphics On Linux
  2. Intel Haswell HD Graphics 4600 Performance On Ubuntu Linux
  3. Intel Core i7 4770K "Haswell" Benchmarks On Ubuntu Linux
  4. The First Experience Of Intel Haswell On Linux
Latest Software Articles
  1. Optimized Binaries Provide Great Benefits For Intel Haswell
  2. 11-Way Linux, BSD Platform Comparison
  3. SNA Acceleration Works Great For Intel Core i7 Haswell
  4. The Linux Evolution For Intel Haswell's Performance
Latest Linux News
  1. KDE's KWin Made Lots Of Progress In 4.11
  2. Ubuntu Announces Carrier Advisory Group
  3. Qt 5.1 Release Candidate 1 Has Arrived
  4. In-Fighting Continues Over Mir On Non-Unity Ubuntu
  5. Subversion 1.8 Presents New Features
  6. LLVM 3.3 Officially Released
  7. LLVM/Clang Now Uses Loop Vectorizer At New Levels
  8. Intel GPU Driver Tries To Rip Out FBDEV Support
  9. Coreboot Doing AMD USB 3.0, Q35 QEMU Emulation
  10. VP9 Codec Now Enabled By Default In Chrome
  11. openSUSE 13.1 M2 Plays On PulseAudio 4.0
Latest Forum Talk
  1. Benchmarks Of NVIDIA's New Linux GPU Driver
  2. Intel GPU Driver Tries To Rip Out FBDEV Support
  3. Planetary Annihilation Plans To Come To Linux
  4. In-Fighting Continues Over Mir On Non-Unity Ubuntu
  5. Commodity Tips
  6. I got robbed at gunpoint today....
  1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Motherboards
  5. Peripherals
  6. Processors
  7. Software
  8. Operating Systems
  9. All Articles
  1. Linux Benchmarking
  2. OpenBenchmarking.org
  3. Phoronix Test Suite