User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15pre) Gecko/20110227 Namoroka/3.6.15pre any cgit URL containing a hex escape like %GG, where GG is not a pair of hexadecimal digits, causes cgit.cgi to go into an infinite loop. Affects v0.8.3.4, upstream latest-from-git, as well as versions in Fedora. Reproducible: Always Steps to Reproduce: 1. find a cgit server and give it a request like http://git.gnome.org/browse/gdlmm/commit/?id=%gg Actual Results: infloop on server, client hangs indefinitely Expected Results: no server infloop, client returns error immediately patch below
Created attachment 481360 [details] infloop fix
I've assigned CVE-2011-1027 to this issue.
Please note that this is currently embargoed; Jim is trying to get in touch with upstream to alert them first. Please do NOT commit anything public regarding this; we will wait to see what upstream wants to do here first.
Thank to both of you. I started working on this in the morning after the report came in, and was glad to see an update with a CVE. Otherwise, I may have pushed an update. I'll keep my eye out for what happens here.
Jim, have you heard back from upstream regarding this yet?
Still no reply. I pinged him 8 hours ago, using his @gmail address, which is the only one I have.
Ok, thank you. Let's wait at least the weekend to see if there is a response and we can see on Monday or Tuesday whether or not to post this to oss-security and make it public.
Upstream replied. He plans to include the patch in a bugfix release to be published today.
The fix is now public, as part of today's v0.9 release: http://hjemli.net/git/cgit/commit/?id=fc384b16fb9787380746000d3cea2d53fccc548e
The fix was applied to upstream version v0.8.3.5 too, in addition to v0.9. I see Todd already built 0.9 for all Fedora and EPEL branches. Making this bug public.
v0.8.3.5 announce message mentions security impact: http://thread.gmane.org/gmane.comp.version-control.git/168493
0.9 has been pushed to all Fedora and EPEL branches.