CVE-2011-2711 Cross-site scripting in n/a

Low 3.5 Published Updated

Authenticated users can inject arbitrary scripts via filenames in cgit, potentially compromising other users' sessions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2011-2711?

CVE-2011-2711 is a low-severity cross-site scripting vulnerability in n/a, published on 3 Aug 2011. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Cross-site scripting (XSS) vulnerability in the print_fileinfo 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.

Weakness: CWE-79

Which versions are affected by CVE-2011-2711?

It affects 1 product.

Products include Lars Hjemli Cgit.

How do I fix CVE-2011-2711?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2011-2711 being exploited?

There is no known exploitation of CVE-2011-2711 in the wild and no public exploit code.

Sources

Also known as GHSA-wc45-7552-hh9r.

Is CVE-2011-2711 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free