Apache 2.4 < 2.4.2 'LD_LIBRARY_PATH' Insecure Library Loading

This script is Copyright (C) 2012-2013 Tenable Network Security, Inc.


Synopsis :

The remote web server may be affected by an insecure library loading
issue.

Description :

According to its banner, the version of Apache 2.4 installed on the
remote host is earlier than 2.4.2. It is, therefore, potentially
affected by an insecure library loading issue.

The utility 'apachectl' can receive a zero-length directory name in
the LD_LIBRARY_PATH via the 'envvars' file. A local attacker with
access to that utility could exploit this to load a malicious Dynamic
Shared Object (DSO), leading to arbitrary code execution.

Note that Nessus did not actually test for this flaw, but instead
has relied on the version in the server's banner.

See also :

http://www.nessus.org/u?4d383d53
http://httpd.apache.org/security/vulnerabilities_24.html
http://svn.apache.org/viewvc?view=revision&revision=1296428

Solution :

Upgrade to Apache version 2.4.2 or later.

Risk factor :

Medium / CVSS Base Score : 6.9
(CVSS2#AV:L/AC:M/Au:N/C:C/I:C/A:C)
CVSS Temporal Score : 5.7
(CVSS2#E:F/RL:OF/RC:C)
Public Exploit Available : true

Family: Web Servers

Nessus Plugin ID: 58795 ()

Bugtraq ID: 53046

CVE ID: CVE-2012-0883