CVE-2009-1195: Medium severity apache http server vulnerability

Published Mar 10, 2009
·
Updated

Description of problem:

In an httpd.conf fragment like:

<Directory ...somepath...> AllowOverride ... Options=IncludesNoEXEC </Directory>

that appears to limit what Options can be set in .htaccess to just IncludeNoexec, but in fact Options Includes is also allowed. I assume that this is an upstream bug but I've not checked if any RH patches touch this part of the code.

Version-Release number of selected component (if applicable):

httpd-2.2.3-22.el5

How reproducible:

100%

Steps to Reproduce: 1. Add a <directory> which permits AllowOverride Options=IncludesNoEXEC 2. create a .htaccess in there and use Options Includes 3. access a file using ssi with #exec Actual results:

the #exec is executed

Expected results:

includesnoexec only should be allowed ie no exec or cgi.

Additional info:

In the httpd source (as patched by the srpm etc), in server/core.c at about line 1288 we have the definition of setallowopts() which contains:

... else if (!strcasecmp(w, "Includes")) { opt = OPTINCLUDES; } else if (!strcasecmp(w, "IncludesNOEXEC")) { opt = (OPTINCLUDES | OPTINCNOEXEC); } ...

I think that should probably be:

... else if (!strcasecmp(w, "Includes")) { opt = (OPTINCLUDES | OPTINCNOEXEC); } else if (!strcasecmp(w, "IncludesNOEXEC")) { opt = OPTINCNOEXEC; } ...

since there is (as far as I can see) no harm allowing the user to specify IncludesNoExec if you allow them to use Includes but not the other way round.

Of course my understanding of the logic in setoptions() might well be flawed but it seems that at least one of the bits set in overrideopts must be set in opt to allow it so the change above looks to do what I would expect - though this might not be what others expect it to mean - ie I might well be misunderstanding what AllowOverride ... Options=IncludesNoEXEC should mean.

Other sources

The Apache HTTP Server 2.2.11 and earlier 2.2 versions does not properly handle Options=IncludesNOEXEC in the AllowOverride directive, which allows local users to gain privileges by configuring (1) Options Includes, (2) Options +Includes, or (3) Options +IncludesNOEXEC in a .htaccess file, and then inserting an exec element in a .shtml file.

Red Hat

Affected Software

18 affected componentsFixes available
redhat/httpd22<0:2.2.10-23.1.ep5.el4
0:2.2.10-23.1.ep5.el4
redhat/httpd<0:2.2.3-22.el5_3.1
0:2.2.3-22.el5_3.1
redhat/httpd<0:2.2.10-10.ep5.el5
0:2.2.10-10.ep5.el5
Apache HTTP Server=2.2.0
Apache HTTP Server=2.2.1
Apache HTTP Server=2.2.2
Apache HTTP Server=2.2.3
Apache HTTP Server=2.2.4
Apache HTTP Server=2.2.7
Apache HTTP Server=2.2.8
Apache HTTP Server=2.2.9
Apache HTTP Server=2.2.10
Apache HTTP Server=2.2
Apache HTTP Server=2.2.2
Apache HTTP Server<=2.2.11
Apache HTTP Server=2.2.6
Apache HTTP Server=2.2.3
Apache HTTP Server

Event History

Mar 10, 2009
Data Sourced
via Red Hat·02:00 AM
DescriptionSeverityAffected Software
Apr 22, 2009
CVE Published
via Red Hat·12:00 AM
May 28, 2009
CVE Published
via MITRE·08:14 PM
Data Sourced
via MITRE·08:14 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2009-1195?

CVE-2009-1195 has a moderate severity as it allows local users to gain elevated privileges.

2

How do I fix CVE-2009-1195?

To fix CVE-2009-1195, ensure you upgrade your Apache HTTP Server to version 2.2.10 or later.

3

Which versions of Apache HTTP Server are affected by CVE-2009-1195?

CVE-2009-1195 affects versions of Apache HTTP Server up to 2.2.11.

4

What configurations are vulnerable in CVE-2009-1195?

CVE-2009-1195 is vulnerable when the Options directive includes Includes, +Includes, or +IncludesNOEXEC in a .htaccess file.

5

Who is impacted by CVE-2009-1195?

CVE-2009-1195 impacts local users who can modify .htaccess files on the server.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203