Apache 2.4.x < 2.4.2 'LD_LIBRARY_PATH' Insecure Library Loading

high Nessus Plugin ID 58795

Synopsis

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

Description

According to its banner, the version of Apache 2.4.x running on the remote host is prior to 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.

Solution

Upgrade to Apache version 2.4.2 or later.

See Also

https://archive.apache.org/dist/httpd/CHANGES_2.4.2

http://httpd.apache.org/security/vulnerabilities_24.html

http://svn.apache.org/viewvc?view=revision&revision=1296428

Plugin Details

Severity: High

ID: 58795

File Name: apache_2_4_2.nasl

Version: 1.12

Type: combined

Agent: windows, macosx, unix

Family: Web Servers

Published: 4/19/2012

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 6.9

Temporal Score: 5.1

Vector: CVSS2#AV:L/AC:M/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2012-0883

CVSS v3

Risk Factor: High

Base Score: 7

Temporal Score: 6.1

Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:apache:http_server

Required KB Items: installed_sw/Apache

Exploit Ease: No known exploits are available

Patch Publication Date: 4/17/2012

Vulnerability Publication Date: 3/2/2012

Reference Information

CVE: CVE-2012-0883

BID: 53046