CVE-2012-2687 Cross-site scripting in n/a

Low 2.6 Published Updated

Remote attackers can inject arbitrary web script via crafted filenames in Apache HTTP Server when MultiViews is enabled, requiring user interaction to exploit.

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-2687?

CVE-2012-2687 is a low-severity cross-site scripting vulnerability in Apache Http Server, published on 22 Aug 2012. 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

Multiple cross-site scripting (XSS) vulnerabilities in the make_variant_list function in mod_negotiation.c in the mod_negotiation module in the Apache HTTP Server 2.4.x before 2.4.3, when the MultiViews option is enabled, allow remote attackers to inject arbitrary web script or HTML via a crafted filename that is not properly handled during construction of a variant list.

Weakness: CWE-79

Which versions are affected by CVE-2012-2687?

It affects 1 product.

Products include Apache Http Server.

How do I fix CVE-2012-2687?

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-2012-2687 being exploited?

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

All Apache Http Server vulnerabilities

Sources

Also known as DEBIAN-CVE-2012-2687, GHSA-8v5x-5rvv-5j4v.

Is CVE-2012-2687 in your software?

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

Check your SBOMs for free