CVE-2011-2711: XSS

Published Jul 22, 2011
·
Updated

An cross-site scripting (XSS) flaw was found in the way cgit, a fast web interface for Git, processed the file name in the rename hint. A remote attacker, valid CGit user with push access to the repository, could use this flaw to execute arbitrary web script or HTML code via a push commit message, renaming some file to a file with specially-crafted file name.

References: [1] http://hjemli.net/pipermail/cgit/2011-July/000276.html

Other sources

Cross-site scripting (XSS) vulnerability in the printfileinfo function in ui-diff.c in cgit 0.9.0.2 and earlier allows remote authenticated users to inject arbitrary web script or HTML via the filename associated with the rename hint.

MITRE

Affected Software

27 affected components
Lars Hjemli Cgit<=0.9.0.2
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
Lars Hjemli Cgit=0.8.3.4
Lars Hjemli Cgit=0.8.3.5
Lars Hjemli Cgit=0.9
Lars Hjemli Cgit=0.9.0.1

Event History

Jul 22, 2011
Data Sourced
via Red Hat·04:42 PM
DescriptionSeverityAffected Software
Aug 3, 2011
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2011-2711?

CVE-2011-2711 has a medium severity level, allowing a remote attacker to exploit an XSS vulnerability.

2

How can I fix CVE-2011-2711?

To fix CVE-2011-2711, you should update to a version of cgit that is greater than 0.9.0.2, as this vulnerability has been addressed in later releases.

3

Who is affected by CVE-2011-2711?

CVE-2011-2711 affects valid users of cgit who have push access to the repository and are using vulnerable versions of the software.

4

What type of vulnerability is CVE-2011-2711?

CVE-2011-2711 is classified as a cross-site scripting (XSS) vulnerability.

5

What can an attacker achieve with CVE-2011-2711?

An attacker leveraging CVE-2011-2711 can execute arbitrary web scripts or HTML code in the context of a user accessing the affected cgit instance.

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