Apache HTTP Server environment variable configuration file buffer overflow

apache-env-configuration-bo (17384) The risk level is classified as HighHigh Risk

Description:

Apache HTTP Server is vulnerable to a buffer overflow when expanding environment variables in an .htaccess or httpd.conf configuration file. By creating a malicious configuration file, a local attacker with apache privileges could overflow a buffer and execute arbitrary code on the system, once the malicious file is parsed.

Platforms Affected:

  • Apache, HTTP Server 2.0
  • Apache, HTTP Server 2.0.28
  • Apache, HTTP Server 2.0.32
  • Apache, HTTP Server 2.0.35
  • Apache, HTTP Server 2.0.36
  • Apache, HTTP Server 2.0.37
  • Apache, HTTP Server 2.0.38
  • Apache, HTTP Server 2.0.39
  • Apache, HTTP Server 2.0.40
  • Apache, HTTP Server 2.0.41
  • Apache, HTTP Server 2.0.42
  • Apache, HTTP Server 2.0.43
  • Apache, HTTP Server 2.0.44
  • Apache, HTTP Server 2.0.45
  • Apache, HTTP Server 2.0.46
  • Apache, HTTP Server 2.0.47
  • Apache, HTTP Server 2.0.48
  • Apache, HTTP Server 2.0.49
  • Apache, HTTP Server 2.0.50
  • Apple, Mac OS X Server 10.2.8
  • Apple, Mac OS X Server 10.3.6
  • CA, ARCserve Backup 11.5 HP-UX
  • CA, ARCserve Backup 11.5 AIX
  • CA, ARCserve Backup 11.5 Tru64
  • CA, ARCserve Backup 11.5 Solaris
  • Compaq, Tru64 6.4
  • Conectiva, Linux 10
  • Conectiva, Linux 9.0
  • Gentoo, Linux
  • HP, HP-UX 11.00
  • HP, HP-UX 11.11
  • HP, HP-UX 11.22
  • HP, HP-UX 11.23
  • MandrakeSoft, Mandrake Linux 10.0
  • MandrakeSoft, Mandrake Linux 10.0 AMD64
  • MandrakeSoft, Mandrake Linux 9.2 AMD64
  • MandrakeSoft, Mandrake Linux 9.2
  • RedHat, Enterprise Linux 3 Desktop
  • RedHat, Enterprise Linux 3 AS
  • RedHat, Enterprise Linux 3 ES
  • RedHat, Enterprise Linux 3 WS
  • SuSE, Linux Enterprise Server 9
  • SuSE, SuSE Linux 8.1
  • SuSE, SuSE Linux 8.2
  • SuSE, SuSE Linux 9.0
  • SuSE, SuSE Linux 9.1
  • SuSE, SuSE SLES 9
  • Trustix, Enterprise Server 2
  • Trustix, Secure Linux 2.0
  • Trustix, Secure Linux 2.1
  • Turbolinux, Turbolinux 10 Desktop
  • Turbolinux, Turbolinux 10 F...

Remedy:

Upgrade to the latest version of Apache HTTP Server (2.0.51 or later), available from the Apache HTTP Server Web site. See References.

For Red Hat Desktop and Red Hat Enterprise Linux AS, ES and WS:
Upgrade to the latest httpd package (2.0.46-40 or later), available from RHSA-2004:463-09. See References.

For SuSE Linux:
Upgrade to the latest httpd package, as listed below. Refer to SuSE Security Announcement SUSE-SA:2004:032 for more information. See References.

SuSE Linux 9.1: 2.0.49-27.14 or later
SuSE Linux 9.0: 2.0.48-139 or later
SuSE Linux 8.2: 2.0.48-139 or later
SuSE Linux 8.1: 2.0.48-139 or later

For Mandrake Linux:
Upgrade to the latest apache2 package, as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2004:096 : apache2 for more information. See References.

Mandrake Linux 9.2: 2.0.47-6.9.92mdk or later
Mandrake Linux 10.0: 2.0.48-6.6.100mdk or later

For Turbolinux:
Upgrade to the latest httpd package, as listed below. Refer to Turbolinux Security Advisory TLSA-2004-28 for more information. See References.

Turbolinux 10 Desktop: 2.0.48-6 or later

For Trustix Secure Linux:
Upgrade to the latest apache package, as listed below. Refer to Trustix Secure Linux Security Advisory #2004-0047 for more information. See References.

Trustix Secure Linux 2.0: 2.0.51-0.1tr or later
Trustix Secure Linux 2.1 and Enterprise Server 2: 2.0.51-1tr or later

For Gentoo Linux:
Upgrade to the latest version of apache (2.0.51, < 2.0 or later) or mod_dav (1.0.3-r2 or later), as listed in GLSA 200409-21. See References.

For Conectiva Linux:
Upgrade to the latest apache package, as listed below. Refer to Conectiva Linux Security Announcement CLSA-2004:868 for more information. See References.

Conectiva Linux 10: 2.0.49-61251U10_1cl or later
Conectiva Linux 9: 2.0.45-28790U90_8cl or later

For HP 11.00, 11.11, 11.22, and 11.23:
Apply the appropriate patch for your system, as listed in Hewlett-Packard Company Security Bulletin HPSBUX01090 for more information. See References.

For HP Tru64UNIX 6.4:
Apply the appropriate patch for your system, as listed in Hewlett-Packard Company Security Bulletin HPSBUX01090 for more information. See References.

For Mac OS:
Apply Security Update 2004-12-02, as listed in AppleCare Knowledge Base Document 61798. See References.

For other distributions:
Apply the appropriate update for your system. See References.

Consequences:

Gain Privileges

References:

Reported:

Sep 15, 2004

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page