Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1539619 - (CVE-2018-1053) CVE-2018-1053 postgresql: pg_upgrade creates file of sensitive metadata under prevailing umask
CVE-2018-1053 postgresql: pg_upgrade creates file of sensitive metadata under...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20180208,repor...
: Security
Depends On: 1543751 1543752 1546367 1546369 1539624 1543753 1544878 1544879 1544880 1544881 1544882 1544883 1544884 1544885 1546368
Blocks: 1539623
  Show dependency treegraph
 
Reported: 2018-01-29 05:40 EST by Adam Mariš
Modified: 2018-08-27 04:34 EDT (History)
57 users (show)

See Also:
Fixed In Version: postgresql 9.3.21, postgresql 9.4.16, postgresql 9.5.11, postgresql 9.6.7, postgresql 10.2
Doc Type: If docs needed, set a value
Doc Text:
pg_upgrade creates file in current working directory containing the output of `pg_dumpall -g` under umask which was in effect when the user invoked pg_upgrade, and not under 0077 which is normally used for other temporary files. This can allow an authenticated attacker to read or modify the file, which may contain encrypted or unencrypted database passwords. The attack is unfeasible if a directory mode blocks the attacker searching the current working directory or if the prevailing umask blocks the attacker opening the file.
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: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2511 None None None 2018-08-20 06:50 EDT
Red Hat Product Errata RHSA-2018:2566 None None None 2018-08-27 04:34 EDT

  None (edit)
Description Adam Mariš 2018-01-29 05:40:32 EST
pg_upgrade creates temporary files in the current working directory. It
creates most of them with umask 0077, so only the current user can open those.
However, for the file containing the output of "pg_dumpall -g", it uses the
umask in effect when the user invoked pg_upgrade. This can allow an attacker
to read or modify the one file, which may contain encrypted or unencrypted
database passwords. However, the attack is infeasible if a directory mode
blocks the attacker searching the current working directory or if the
prevailing umask blocks the attacker opening the file.

Vulnerable Versions: 9.3 - 10
Comment 2 Adam Mariš 2018-01-29 05:43:24 EST
Acknowledgments:

Name: the PostgreSQL project
Upstream: Tom Lane
Comment 4 Adam Mariš 2018-02-09 03:29:24 EST
External References:

https://www.postgresql.org/about/news/1829/
Comment 5 Adam Mariš 2018-02-09 03:30:29 EST
Created mingw-postgresql tracking bugs for this issue:

Affects: epel-7 [bug 1543752]
Affects: fedora-all [bug 1543751]


Created postgresql tracking bugs for this issue:

Affects: fedora-all [bug 1543753]
Comment 9 Andrej Nemec 2018-05-14 09:57:17 EDT
Statement:

This issue affects the versions of PostgreSQL 9.x as shipped with Red Hat Satellite 5.x and CloudForms 5.x. Red Hat Product Security has rated this issue as having security impact of Moderate. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Comment 11 errata-xmlrpc 2018-08-20 06:50:24 EDT
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:2511 https://access.redhat.com/errata/RHSA-2018:2511
Comment 12 errata-xmlrpc 2018-08-27 04:33:59 EDT
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

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