ID CVE-2011-2767
Summary mod_perl 2.0 through 2.0.10 allows attackers to execute arbitrary Perl code by placing it in a user-owned .htaccess file, because (contrary to the documentation) there is no configuration option that permits Perl code for the administrator's control of HTTP request processing without also permitting unprivileged users to run Perl code in the context of the user account that runs Apache HTTP Server processes.
References
Vulnerable Configurations
  • cpe:2.3:a:apache:mod_perl:2.0.0:*:*:*:*:*:*:*
    cpe:2.3:a:apache:mod_perl:2.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:apache:mod_perl:2.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:apache:mod_perl:2.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:apache:mod_perl:2.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:apache:mod_perl:2.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:apache:mod_perl:2.0.3:*:*:*:*:*:*:*
    cpe:2.3:a:apache:mod_perl:2.0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:apache:mod_perl:2.0.4:*:*:*:*:*:*:*
    cpe:2.3:a:apache:mod_perl:2.0.4:*:*:*:*:*:*:*
  • cpe:2.3:a:apache:mod_perl:2.0.5:*:*:*:*:*:*:*
    cpe:2.3:a:apache:mod_perl:2.0.5:*:*:*:*:*:*:*
  • cpe:2.3:a:apache:mod_perl:2.0.6:*:*:*:*:*:*:*
    cpe:2.3:a:apache:mod_perl:2.0.6:*:*:*:*:*:*:*
  • cpe:2.3:a:apache:mod_perl:2.0.7:*:*:*:*:*:*:*
    cpe:2.3:a:apache:mod_perl:2.0.7:*:*:*:*:*:*:*
  • cpe:2.3:a:apache:mod_perl:2.0.8:*:*:*:*:*:*:*
    cpe:2.3:a:apache:mod_perl:2.0.8:*:*:*:*:*:*:*
  • cpe:2.3:a:apache:mod_perl:2.0.9:*:*:*:*:*:*:*
    cpe:2.3:a:apache:mod_perl:2.0.9:*:*:*:*:*:*:*
  • cpe:2.3:a:apache:mod_perl:2.0.10:*:*:*:*:*:*:*
    cpe:2.3:a:apache:mod_perl:2.0.10:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
    cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:6.7:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:6.7:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.3:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.3:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.5:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.5:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.6:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.6:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*
CVSS
Base: 10.0 (as of 24-09-2019 - 18:15)
Impact:
Exploitability:
CWE CWE-94
CAPEC
  • Code Injection
    An adversary exploits a weakness in input validation on the target to inject new code into that which is currently executing. This differs from code inclusion in that code inclusion involves the addition or replacement of a reference to a code file, which is subsequently loaded by the target and used as part of the code of some application.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
cvss-vector via4 AV:N/AC:L/Au:N/C:C/I:C/A:C
redhat via4
advisories
  • bugzilla
    id 1623265
    title CVE-2011-2767 mod_perl: arbitrary Perl code execution in the context of the user account via a user-owned .htaccess
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 6 is installed
        oval oval:com.redhat.rhba:tst:20111656003
      • OR
        • AND
          • comment mod_perl is earlier than 0:2.0.4-12.el6_10
            oval oval:com.redhat.rhsa:tst:20182737001
          • comment mod_perl is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20182737002
        • AND
          • comment mod_perl-devel is earlier than 0:2.0.4-12.el6_10
            oval oval:com.redhat.rhsa:tst:20182737003
          • comment mod_perl-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20182737004
    rhsa
    id RHSA-2018:2737
    released 2018-09-24
    severity Important
    title RHSA-2018:2737: mod_perl security update (Important)
  • rhsa
    id RHSA-2018:2825
  • rhsa
    id RHSA-2018:2826
rpms
  • mod_perl-0:2.0.4-12.el6_10
  • mod_perl-debuginfo-0:2.0.4-12.el6_10
  • mod_perl-devel-0:2.0.4-12.el6_10
  • rh-perl526-mod_perl-0:2.0.10-10.el7
  • rh-perl526-mod_perl-debuginfo-0:2.0.10-10.el7
  • rh-perl526-mod_perl-devel-0:2.0.10-10.el7
  • rh-perl524-mod_perl-0:2.0.9-10.el6
  • rh-perl524-mod_perl-0:2.0.9-10.el7
  • rh-perl524-mod_perl-debuginfo-0:2.0.9-10.el6
  • rh-perl524-mod_perl-debuginfo-0:2.0.9-10.el7
  • rh-perl524-mod_perl-devel-0:2.0.9-10.el6
  • rh-perl524-mod_perl-devel-0:2.0.9-10.el7
refmap via4
bid 105195
misc
mlist
  • [debian-lts-announce] 20180918 [SECURITY] [DLA 1507-1] libapache2-mod-perl2 security update
  • [perl-modperl-cvs] 20190924 svn commit: r1867470 - /perl/modperl/trunk/src/modules/perl/mod_perl.c
suse
  • openSUSE-SU-2019:2549
  • openSUSE-SU-2019:2558
ubuntu
  • USN-3825-1
  • USN-3825-2
Last major update 24-09-2019 - 18:15
Published 26-08-2018 - 16:29
Last modified 24-09-2019 - 18:15
Back to Top