CVE-2012-3521 GeSHi vulnerable to Directory Traversal
Remote attackers can read arbitrary files via directory traversal in the cssgen module of the GeSHi library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2012-3521?
CVE-2012-3521 is a medium-severity path traversal vulnerability in n/a, published on 13 Jun 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Multiple directory traversal vulnerabilities in the cssgen contrib module in GeSHi before 1.0.8.11 allow remote attackers to read arbitrary files via a .. (dot dot) in the (1) geshi-path or (2) geshi-lang-path parameter.
Weakness: CWE-22
Which versions are affected by CVE-2012-3521?
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-3521?
Upgrade geshi/geshi to 1.0.8.11 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2012-3521 being exploited?
There is no known exploitation of CVE-2012-3521 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2012-3521, GHSA-fw3x-2pr2-5j64.