CVE-2012-2687: XSS
A cross-site scripting (XSS) flaw was found in the way modnegotiation (MIME types tracking and arbitration module) of httpd, the Apache HTTP server, performed escaping of filenames arguments in to be created / provided HTML variant list (part of the choice response or HTTP 406 status body). When a site has modnegotiation module enabled and allowed untrusted file uploads to locations with MultiViews enabled, a remote attacker could use this flaw to execute arbitrary HTML or webscript via specially-crafted filename argument provided to the modnegotiation module.
Relevant upstream patch (against 2.2.x branch): http://svn.apache.org/viewvc?view=revision&revision=1374421
Upstream security page (covering also this issue): http://httpd.apache.org/security/vulnerabilities24.html
References: http://mail-archives.apache.org/modmbox/www-announce/201208.mbox/%3C0BFFEA9B-801B-4BAA-9534-56F640268E30@apache.org%3E http://www.apache.org/dist/httpd/CHANGES2.4.3
Other sources
Multiple cross-site scripting (XSS) vulnerabilities in the makevariantlist function in modnegotiation.c in the modnegotiation 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/apache2to a version that resolves this vulnerability.Fixed in 2.4.68-1~deb12u1Fixed in 2.4.71-1~deb12u1Fixed in 2.4.68-1~deb13u1Fixed in 2.4.71-1~deb13u1Fixed in 2.4.71-1 - Upgrade
Upgrade
debian/apache2to a version that resolves this vulnerability.Fixed in 2.2.22-8 - Upgrade
Upgrade
redhat/httpdto a version that resolves this vulnerability.Fixed in 2.2.23 - Upgrade
Upgrade
redhat/httpdto a version that resolves this vulnerability.Fixed in 2.4.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.4.3
Event History
Frequently Asked Questions
What versions of Apache HTTP Server are affected by CVE-2012-2687?
CVE-2012-2687 affects Apache HTTP Server versions 2.4.x before 2.4.3 and multiple versions in the 2.2.x series.
What is CVE-2012-2687?
CVE-2012-2687 is a vulnerability that allows remote attackers to inject arbitrary web scripts or HTML due to multiple cross-site scripting (XSS) vulnerabilities in the mod_negotiation module.
Is CVE-2012-2687 a high severity vulnerability?
Yes, CVE-2012-2687 is considered a significant security risk due to its potential for cross-site scripting attacks.
How do I fix CVE-2012-2687?
To resolve CVE-2012-2687, you should upgrade your Apache HTTP Server to version 2.4.3 or later, or to a secure 2.2.x version.
What specific functionality in Apache is exploited by CVE-2012-2687?
CVE-2012-2687 targets the make_variant_list function in the mod_negotiation module when the MultiViews option is enabled.