Bug 813559 (CVE-2012-0883) - CVE-2012-0883 httpd: insecure handling of LD_LIBRARY_PATH in envvars
Summary: CVE-2012-0883 httpd: insecure handling of LD_LIBRARY_PATH in envvars
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2012-0883
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 813560 881519
TreeView+ depends on / blocked
 
Reported: 2012-04-17 21:19 UTC by Vincent Danen
Modified: 2021-02-24 12:40 UTC (History)
11 users (show)

Fixed In Version: httpd 2.2.23, httpd 2.4.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-19 01:25:28 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:1594 0 normal SHIPPED_LIVE Important: JBoss Enterprise Application Platform 6.0.1 update 2012-12-19 03:52:56 UTC

Description Vincent Danen 2012-04-17 21:19:14 UTC
A flaw was noted in the Apache 2.4.2 release announcement [1] as fixed [2], where insecure handling of LD_LIBRARY_PATH could lead to the current working directory being searched for DSOs.  This could lead to the arbitrary execution of code as the user running the httpd server (typically the unprivileged user, apache).

This flaw also affects older releases.  Red Hat Enterprise Linux and Fedora httpd packages are unaffected due to the httpd-*-apctl.patch being applied (which removes support for reading in the envvars file, where this flaw originates).

[1] http://thread.gmane.org/gmane.comp.apache.devel/48158
[2] http://svn.apache.org/viewvc?view=revision&revision=1296428

Comment 2 Tomas Hoger 2012-04-18 10:08:44 UTC
(In reply to comment #0)
> This could lead to the arbitrary execution of code as the user running the
> httpd server (typically the unprivileged user, apache).

Incorrect LD_LIBRARY_PATH setting is made in apachectl script, which is expected to be run by system administrator.  Hence this may allow code execution as root if administrator runs apachectl in an untrusted directory (e.g. /tmp).

Statement:

Not vulnerable. This issue did not affect the versions of httpd as shipped with Red Hat Enterprise Linux 3, 4, 5 and 6.

Comment 9 errata-xmlrpc 2012-12-18 22:53:12 UTC
This issue has been addressed in following products:

  JBoss Enterprise Application Platform 6.0.1

Via RHSA-2012:1594 https://rhn.redhat.com/errata/RHSA-2012-1594.html


Note You need to log in before you can comment on or make changes to this bug.