CVE-2012-3522 GeSHi vulnerable to Cross-site Scripting
Remote attackers can inject arbitrary web script or HTML via the langwiz.php component in the GeSHi library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2012-3522?
CVE-2012-3522 is a medium-severity cross-site scripting vulnerability in n/a, published on 13 Jun 2014. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Cross-site scripting (XSS) vulnerability in contrib/langwiz.php in GeSHi before 1.0.8.11 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors.
Weakness: CWE-79
Which versions are affected by CVE-2012-3522?
2 open source packages ship an affected version, including geshi/geshi. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
geshi/geshi Packagist | All versions | 1.0.8.11 |
geshi/geshi Packagist | All versions | 1.0.8.11 |
Products include Qbnz Geshi.
How do I fix CVE-2012-3522?
Upgrade geshi/geshi to 1.0.8.11 or later.
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-2012-3522 being exploited?
There is no known exploitation of CVE-2012-3522 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-f3f3-5q5j-6v47.