CVE-2011-1027: Medium severity cgit by lars hjemli vulnerability

Published Feb 28, 2011
·
Updated

Off-by-one error in the convertqueryhexchar function in html.c in cgit.cgi in cgit before 0.8.3.5 allows remote attackers to cause a denial of service (infinite loop) via a string composed of a % (percent) character followed by invalid hex characters, as demonstrated by a %gg sequence.

Other sources

User-Agent: Mozilla/5.0 (X11; U; Linux x8664; 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

Red Hat

Affected Software

26 affected components
Lars Hjemli Cgit<=0.8.3.4
Lars Hjemli Cgit=0.1
Lars Hjemli Cgit=0.2
Lars Hjemli Cgit=0.3
Lars Hjemli Cgit=0.4
Lars Hjemli Cgit=0.5
Lars Hjemli Cgit=0.6
Lars Hjemli Cgit=0.6.1
Lars Hjemli Cgit=0.6.2
Lars Hjemli Cgit=0.6.3
Lars Hjemli Cgit=0.7
Lars Hjemli Cgit=0.7.1
Lars Hjemli Cgit=0.7.2
Lars Hjemli Cgit=0.8
Lars Hjemli Cgit=0.8.1
Lars Hjemli Cgit=0.8.1.1
Lars Hjemli Cgit=0.8.2
Lars Hjemli Cgit=0.8.2.1
Lars Hjemli Cgit=0.8.2.2
Lars Hjemli Cgit=0.8.3
Lars Hjemli Cgit=0.8.3.1
Lars Hjemli Cgit=0.8.3.2
Lars Hjemli Cgit=0.8.3.3
Fedoraproject Fedora=13
Fedoraproject Fedora=14
Fedoraproject Fedora=15

Event History

Feb 28, 2011
Data Sourced
via Red Hat·12:35 PM
DescriptionSeverityAffected Software
Mar 20, 2011
CVE Published
via MITRE·01:00 AM
Data Sourced
via MITRE·01:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2011-1027?

CVE-2011-1027 has a severity level categorized as moderate due to its potential to cause denial of service.

2

How do I fix CVE-2011-1027?

To fix CVE-2011-1027, upgrade cgit to version 0.8.3.5 or later.

3

Which versions of cgit are affected by CVE-2011-1027?

CVE-2011-1027 affects all versions of cgit prior to 0.8.3.5.

4

What type of vulnerability is CVE-2011-1027?

CVE-2011-1027 is an off-by-one error vulnerability.

5

What is the impact of CVE-2011-1027 on systems?

The impact of CVE-2011-1027 on systems includes the potential to cause an infinite loop and disrupt service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203