It was found that some selectivity estimation functions in PostgreSQL before 9.2.21, 9.3.x before 9.3.17, 9.4.x before 9.4.12, 9.5.x before 9.5.7, and 9.6.x before 9.6.3 did not check user privileges before providing information from pg_statistic, possibly leaking information. An unprivileged attacker could use this flaw to steal some information from tables they are otherwise not allowed to access.
https://www.postgresql.org/about/news/1746/
https://security.gentoo.org/glsa/201710-06
https://access.redhat.com/errata/RHSA-2017:2425
https://access.redhat.com/errata/RHSA-2017:1983
https://access.redhat.com/errata/RHSA-2017:1838
https://access.redhat.com/errata/RHSA-2017:1678
https://access.redhat.com/errata/RHSA-2017:1677
http://www.securitytracker.com/id/1038476