ID CVE-2017-15097
Summary Privilege escalation flaws were found in the Red Hat initialization scripts of PostgreSQL. An attacker with access to the postgres user account could use these flaws to obtain root access on the server machine.
References
Vulnerable Configurations
  • cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
CVSS
Base: 7.2 (as of 09-10-2019 - 23:24)
Impact:
Exploitability:
CWE CWE-59
CAPEC
  • Manipulating Web Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
  • 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.
  • Using Malicious Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Symlink Attack
    An attacker positions a symbolic link in such a manner that the targeted user or application accesses the link's endpoint, assuming that it is accessing a file with the link's name. The endpoint file may be either output or input. If the file is output, the result is that the endpoint is modified, instead of a file at the intended location. Modifications to the endpoint file may include appending, overwriting, corrupting, changing permissions, or other modifications. In some variants of this attack the attacker may be able to control the change to a file while in other cases they cannot. The former is especially damaging since the attacker may be able to grant themselves increased privileges or insert false information, but the latter can also be damaging as it can expose sensitive information or corrupt or destroy vital system or application files. Alternatively, the endpoint file may serve as input to the targeted application. This can be used to feed malformed input into the target or to cause the target to process different information, possibly allowing the attacker to control the actions of the target or to cause the target to expose information to the attacker. Moreover, the actions taken on the endpoint file are undertaken with the permissions of the targeted user or application, which may exceed the permissions that the attacker would normally have.
Access
VectorComplexityAuthentication
LOCAL LOW NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
cvss-vector via4 AV:L/AC:L/Au:N/C:C/I:C/A:C
redhat via4
advisories
  • bugzilla
    id 1508985
    title CVE-2017-15097 postgresql: Start scripts permit database administrator to modify root-owned files
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 7 is installed
        oval oval:com.redhat.rhba:tst:20150364027
      • OR
        • AND
          • comment postgresql is earlier than 0:9.2.23-3.el7_4
            oval oval:com.redhat.rhsa:tst:20173402001
          • comment postgresql is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100908002
        • AND
          • comment postgresql-contrib is earlier than 0:9.2.23-3.el7_4
            oval oval:com.redhat.rhsa:tst:20173402003
          • comment postgresql-contrib is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100908004
        • AND
          • comment postgresql-devel is earlier than 0:9.2.23-3.el7_4
            oval oval:com.redhat.rhsa:tst:20173402005
          • comment postgresql-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100908006
        • AND
          • comment postgresql-docs is earlier than 0:9.2.23-3.el7_4
            oval oval:com.redhat.rhsa:tst:20173402007
          • comment postgresql-docs is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100908008
        • AND
          • comment postgresql-libs is earlier than 0:9.2.23-3.el7_4
            oval oval:com.redhat.rhsa:tst:20173402009
          • comment postgresql-libs is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100908010
        • AND
          • comment postgresql-plperl is earlier than 0:9.2.23-3.el7_4
            oval oval:com.redhat.rhsa:tst:20173402011
          • comment postgresql-plperl is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100908012
        • AND
          • comment postgresql-plpython is earlier than 0:9.2.23-3.el7_4
            oval oval:com.redhat.rhsa:tst:20173402013
          • comment postgresql-plpython is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100908014
        • AND
          • comment postgresql-pltcl is earlier than 0:9.2.23-3.el7_4
            oval oval:com.redhat.rhsa:tst:20173402015
          • comment postgresql-pltcl is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100908016
        • AND
          • comment postgresql-server is earlier than 0:9.2.23-3.el7_4
            oval oval:com.redhat.rhsa:tst:20173402017
          • comment postgresql-server is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100908018
        • AND
          • comment postgresql-static is earlier than 0:9.2.23-3.el7_4
            oval oval:com.redhat.rhsa:tst:20173402019
          • comment postgresql-static is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20171983020
        • AND
          • comment postgresql-test is earlier than 0:9.2.23-3.el7_4
            oval oval:com.redhat.rhsa:tst:20173402021
          • comment postgresql-test is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100908020
        • AND
          • comment postgresql-upgrade is earlier than 0:9.2.23-3.el7_4
            oval oval:com.redhat.rhsa:tst:20173402023
          • comment postgresql-upgrade is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20150750033
    rhsa
    id RHSA-2017:3402
    released 2017-12-08
    severity Moderate
    title RHSA-2017:3402: postgresql security update (Moderate)
  • rhsa
    id RHSA-2017:3403
  • rhsa
    id RHSA-2017:3404
  • rhsa
    id RHSA-2017:3405
rpms
  • postgresql-0:9.2.23-3.el7_4
  • postgresql-contrib-0:9.2.23-3.el7_4
  • postgresql-debuginfo-0:9.2.23-3.el7_4
  • postgresql-devel-0:9.2.23-3.el7_4
  • postgresql-docs-0:9.2.23-3.el7_4
  • postgresql-libs-0:9.2.23-3.el7_4
  • postgresql-plperl-0:9.2.23-3.el7_4
  • postgresql-plpython-0:9.2.23-3.el7_4
  • postgresql-pltcl-0:9.2.23-3.el7_4
  • postgresql-server-0:9.2.23-3.el7_4
  • postgresql-static-0:9.2.23-3.el7_4
  • postgresql-test-0:9.2.23-3.el7_4
  • postgresql-upgrade-0:9.2.23-3.el7_4
  • rh-postgresql94-postgresql-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-0:9.4.14-2.el7
  • rh-postgresql94-postgresql-contrib-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-contrib-0:9.4.14-2.el7
  • rh-postgresql94-postgresql-debuginfo-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-debuginfo-0:9.4.14-2.el7
  • rh-postgresql94-postgresql-devel-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-devel-0:9.4.14-2.el7
  • rh-postgresql94-postgresql-docs-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-docs-0:9.4.14-2.el7
  • rh-postgresql94-postgresql-libs-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-libs-0:9.4.14-2.el7
  • rh-postgresql94-postgresql-plperl-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-plperl-0:9.4.14-2.el7
  • rh-postgresql94-postgresql-plpython-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-plpython-0:9.4.14-2.el7
  • rh-postgresql94-postgresql-pltcl-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-pltcl-0:9.4.14-2.el7
  • rh-postgresql94-postgresql-server-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-server-0:9.4.14-2.el7
  • rh-postgresql94-postgresql-static-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-static-0:9.4.14-2.el7
  • rh-postgresql94-postgresql-test-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-test-0:9.4.14-2.el7
  • rh-postgresql94-postgresql-upgrade-0:9.4.14-2.el6
  • rh-postgresql94-postgresql-upgrade-0:9.4.14-2.el7
  • rh-postgresql95-postgresql-0:9.5.9-4.el6
  • rh-postgresql95-postgresql-0:9.5.9-4.el7
  • rh-postgresql95-postgresql-contrib-0:9.5.9-4.el6
  • rh-postgresql95-postgresql-contrib-0:9.5.9-4.el7
  • rh-postgresql95-postgresql-debuginfo-0:9.5.9-4.el6
  • rh-postgresql95-postgresql-debuginfo-0:9.5.9-4.el7
  • rh-postgresql95-postgresql-devel-0:9.5.9-4.el6
  • rh-postgresql95-postgresql-devel-0:9.5.9-4.el7
  • rh-postgresql95-postgresql-docs-0:9.5.9-4.el6
  • rh-postgresql95-postgresql-docs-0:9.5.9-4.el7
  • rh-postgresql95-postgresql-libs-0:9.5.9-4.el6
  • rh-postgresql95-postgresql-libs-0:9.5.9-4.el7
  • rh-postgresql95-postgresql-plperl-0:9.5.9-4.el6
  • rh-postgresql95-postgresql-plperl-0:9.5.9-4.el7
  • rh-postgresql95-postgresql-plpython-0:9.5.9-4.el6
  • rh-postgresql95-postgresql-plpython-0:9.5.9-4.el7
  • rh-postgresql95-postgresql-pltcl-0:9.5.9-4.el6
  • rh-postgresql95-postgresql-pltcl-0:9.5.9-4.el7
  • rh-postgresql95-postgresql-server-0:9.5.9-4.el6
  • rh-postgresql95-postgresql-server-0:9.5.9-4.el7
  • rh-postgresql95-postgresql-static-0:9.5.9-4.el6
  • rh-postgresql95-postgresql-static-0:9.5.9-4.el7
  • rh-postgresql95-postgresql-test-0:9.5.9-4.el6
  • rh-postgresql95-postgresql-test-0:9.5.9-4.el7
  • rh-postgresql96-postgresql-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-contrib-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-contrib-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-contrib-syspaths-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-contrib-syspaths-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-debuginfo-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-debuginfo-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-devel-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-devel-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-docs-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-docs-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-libs-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-libs-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-plperl-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-plperl-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-plpython-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-plpython-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-pltcl-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-pltcl-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-server-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-server-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-server-syspaths-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-server-syspaths-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-static-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-static-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-syspaths-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-syspaths-0:9.6.5-2.el7
  • rh-postgresql96-postgresql-test-0:9.6.5-2.el6
  • rh-postgresql96-postgresql-test-0:9.6.5-2.el7
refmap via4
confirm https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-15097
sectrack 1039983
Last major update 09-10-2019 - 23:24
Published 27-07-2018 - 20:29
Last modified 09-10-2019 - 23:24
Back to Top