SkipNavigation
US-CERT
American Flag
  Vulnerability
Notes
Database

Search Vulnerability Notes

Vulnerability Notes Help Information


 
 View Notes By
  Name

ID Number

CVE Name

Date Public

Date Published

Date Updated

Severity Metric



 Other Documents
  Technical Alerts

Technical Bulletins

Alerts

Security Tips

 

Vulnerability Note VU#549142

Apache mod_alias vulnerable to buffer overflow via crafted regular expression

Overview

A vulnerability in a supplementary module to the Apache HTTP server could allow an attacker to execute arbitrary code on an affected web server under certain circumstances.

I. Description

The Apache HTTP server distribution includes a number of supplemental modules that provide additional functionality to the web server. One of these modules, mod_alias, provides for mapping different parts of the host filesystem into the document tree and for URL redirection. Several of the mod_alias directives can use regular expressions rather than simple prefix matches. A buffer overflow has been discovered in the way that mod_alias handles regular expressions containing more than 9 captures (stored strings matching a particular pattern). This flaw results in a remotely exploitable vulnerability on web servers that specify such a regular expression to the mod_alias module in their configuration files.

II. Impact

An attacker may be able to execute arbitrary code in the context of the web server user (e.g., "apache", "httpd", "nobody", etc.). The attacker would have to have the ability to supply a specially crafted configuration file (e.g., .htaccess or httpd.conf) to the Apache server in order to mount this attack.

III. Solution

Apply a patch from the vendor

Patches have been released to address this vulnerability. Please see the Systems Affected section of this document for more details.

Workarounds

Disable mod_alias if it is not required in your web server configuration. Instructions for doing this can be found in the Apache HTTP Server documentation. Sites, particularly those that are not able to apply the patches, are encouraged to consider implementing this workaround.

Systems Affected

VendorStatusDate NotifiedDate Updated
Apache Software FoundationVulnerable2-Feb-2004
ConectivaVulnerable2-Feb-2004
Gentoo LinuxVulnerable2-Feb-2004
Guardian Digital Inc. Vulnerable2-Feb-2004
Hewlett-Packard CompanyVulnerable8-Mar-2004
MandrakeSoftVulnerable2-Feb-2004
OpenPKGVulnerable2-Feb-2004
Red Hat Inc.Vulnerable2-Feb-2004
SCOVulnerable8-Mar-2004
SGIVulnerable2-Feb-2004
SlackwareVulnerable2-Feb-2004
Sun Microsystems Inc.Vulnerable8-Mar-2004
TrustixVulnerable2-Feb-2004

References


http://www.secunia.com/advisories/10153/
http://www.secunia.com/advisories/10114
http://www.secunia.com/advisories/10112/
http://www.secunia.com/advisories/10102/
http://www.secunia.com/advisories/10098/
http://www.secunia.com/advisories/10096/
http://www.secunia.com/advisories/10260/
http://www.secunia.com/advisories/10264/
http://www.secunia.com/advisories/10463/

Credit

The Apache Software Foundation credits André Malo with the discovery of this vulnerability.

This document was written by Chad R Dougherty.

Other Information

Date Public:2003-10-30
Date First Published:2004-02-03
Date Last Updated:2004-03-19
CERT Advisory: 
CVE-ID(s):CAN-2003-0542
NVD-ID(s):CAN-2003-0542
US-CERT Technical Alerts: 
Metric:0.61
Document Revision:25

If you have feedback, comments, or additional information about this vulnerability, please send us email.
 

 
Page Corner Image
Copyright 2004 Carnegie Mellon University
Disclaimers and copyright information
Get Adobe Reader Get Adobe Reader