CVE-2012-2687: XSS

Published Aug 22, 2012
·
Updated

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

31 affected componentsFixes available
Apache HTTP Server=2.2.0
Apache HTTP Server=2.2.1
Apache HTTP Server=2.2.2
Apache HTTP Server=2.2.3
Apache HTTP Server=2.2.4
Apache HTTP Server=2.2.6
Apache HTTP Server=2.2.8
Apache HTTP Server=2.2.9
Apache HTTP Server=2.2.10
Apache HTTP Server=2.2.11
Apache HTTP Server=2.2.12
Apache HTTP Server=2.2.13
Apache HTTP Server=2.2.14
Apache HTTP Server=2.2.15
Apache HTTP Server=2.2.16
Apache HTTP Server=2.2.17
Apache HTTP Server=2.2.18
Apache HTTP Server=2.2.19
Apache HTTP Server=2.2.20
Apache HTTP Server=2.2.21
Apache HTTP Server=2.2.22
Apache HTTP Server=2.2.23
Apache HTTP Server=2.4.0
Apache HTTP Server=2.4.1
Apache HTTP Server=2.4.2
debian/apache2
2.4.68-1~deb12u12.4.71-1~deb12u12.4.68-1~deb13u12.4.71-1~deb13u12.4.71-1
debian/apache2<2.2.22-8
2.2.22-8
debian/apache2<2.2.22-8
2.2.22-8
debian/apache2<2.2.22-8
2.2.22-8
redhat/httpd<2.2.23
2.2.23
redhat/httpd<2.4.3
2.4.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/apache2 to 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
  2. Upgrade

    Upgrade debian/apache2 to a version that resolves this vulnerability.

    Fixed in 2.2.22-8
  3. Upgrade

    Upgrade redhat/httpd to a version that resolves this vulnerability.

    Fixed in 2.2.23
  4. Upgrade

    Upgrade redhat/httpd to a version that resolves this vulnerability.

    Fixed in 2.4.3
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.4.3

Event History

Aug 22, 2012
Data Sourced
via Red Hat·12:41 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description
Data Sourced
07:55 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·07:55 PM
DescriptionAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203