Bug 1573276 (CVE-2018-1115)

Summary: CVE-2018-1115 postgresql: Too-permissive access control list on function pg_logfile_rotate()
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abergmann, aileenc, bkearney, chazlett, cpelland, dajohnso, databases-maint, devrim, dffrench, drieden, drusso, gblomqui, gmccullo, gtanzill, gvarsami, hhorak, hhudgeon, jcoleman, jfrey, jhardy, jmadigan, jmlich83, jorton, jprause, jshepherd, jstanek, kconner, krathod, ldimaggi, lgriffin, loleary, meissner, mike, ngough, nwallace, obarenbo, pdrozd, pkubat, ppenicka, praiskup, pwright, roliveri, rrajasek, rwagner, security-response-team, simaishi, spinder, sthorger, tcunning, tgl, theute, tkirby, tlestach, trepel
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=low,public=20180510,reported=20180430,source=upstream,cvss3=4.2/CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L,cwe=CWE-284,epel-7/mingw-postgresql=affected,fedora-all/mingw-postgresql=affected,fedora-all/postgresql=affected,jon-3/postgresql=new,cfme-5/postgresql94=notaffected,cfme-5/rh-postgresql95-postgresql=notaffected,rhel-5/postgresql=notaffected,rhel-5/postgresql84=notaffected,rhel-6/postgresql=notaffected,rhel-7/postgresql=notaffected,rhel-8/postgresql=notaffected,fsw-6/postgresql=notaffected,rhmap-4/postgresql=notaffected,rhn_satellite_5/postgresql95-postgresql=notaffected,rhsso-7/postgresql=notaffected,rhscl-3/rh-postgresql94-postgresql=notaffected,rhscl-3/rh-postgresql95-postgresql=notaffected,rhscl-3/rh-postgresql96-postgresql=affected,rhscl-3/rh-postgresql10-postgresql=affected
Fixed In Version: postegresql 10.4, postegresql 9.6.9 Doc Type: If docs needed, set a value
Doc Text:
It was found that pg_catalog.pg_logfile_rotate(), from the adminpack extension, did not follow the same ACLs than pg_rorate_logfile. If the adminpack is added to a database, an attacker able to connect to it could use this flaw to force log rotation.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 1576771, 1576393, 1576394, 1576772, 1576773, 1576774, 1614337, 1614340    
Bug Blocks: 1573278    

Description Pedro Sampaio 2018-04-30 17:39:21 UTC
PostgreSQL contrib module "adminpack" installs function pg_logfile_rotate(), a
deprecated alias for built-in function pg_rotate_logfile(). By default, only
superusers can execute pg_rotate_logfile(), but anyone can execute
pg_logfile_rotate(). In certain configurations, an attacker could use this to
crash the server or distribute log messages across more log files than the
administrator wished.

Vulnerable Versions: 9.6, 10

Comment 1 Pedro Sampaio 2018-04-30 17:39:48 UTC
Acknowledgments:

Name: the PostgreSQL project
Upstream: Stephen Frost

Comment 3 Chess Hazlett 2018-05-04 20:16:16 UTC
Statement:

This issue does not appear to affect the versions of postgresql as shipped with Red Hat Satellite version 5, CloudForms version 4, Red Hat Single Sign-On 7, and Fuse Service Works 6.

Comment 6 Cedric Buissart 🐶 2018-05-10 11:32:49 UTC
Created mingw-postgresql tracking bugs for this issue:

Affects: epel-7 [bug 1576771]
Affects: fedora-all [bug 1576772]


Created postgresql tracking bugs for this issue:

Affects: fedora-all [bug 1576773]

Comment 8 Cedric Buissart 🐶 2018-05-10 11:36:35 UTC
Upstream fix:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=7b34740

Comment 10 errata-xmlrpc 2018-08-27 08:21:20 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS

Via RHSA-2018:2565 https://access.redhat.com/errata/RHSA-2018:2565

Comment 11 errata-xmlrpc 2018-08-27 08:35:03 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS

Via RHSA-2018:2566 https://access.redhat.com/errata/RHSA-2018:2566

Comment 12 Joshua Padman 2019-05-15 22:56:00 UTC
This vulnerability is out of security support scope for the following product:
 * Red Hat JBoss Operations Network 3

Please refer to https://access.redhat.com/support/policy/updates/jboss_notes for more details.