CVE-2017-7485

Related Vulnerabilities: CVE-2017-7485  

It was discovered that the PostgreSQL client library (libpq) did not enforce the use of TLS/SSL for a connection to a PostgreSQL server when the PGREQUIRESSL environment variable was set. An man-in-the-middle attacker could use this flaw to strip the SSL/TLS protection from a connection between a client and a server.

It was discovered that the PostgreSQL client library (libpq) did not enforce the use of TLS/SSL for a connection to a PostgreSQL server when the PGREQUIRESSL environment variable was set. An man-in-the-middle attacker could use this flaw to strip the SSL/TLS protection from a connection between a client and a server.

Find out more about CVE-2017-7485 from the MITRE CVE dictionary dictionary and NIST NVD.

CVSS v3 metrics

CVSS3 Base Score 7.4
CVSS3 Base Metrics CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack Vector Network
Attack Complexity High
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity Impact High
Availability Impact None

Red Hat Security Errata

Platform Errata Release Date
Red Hat Software Collections for Red Hat Enterprise Linux 7 (rh-postgresql95-postgresql) RHSA-2017:1677 2017-07-05
Red Hat Satellite Managed DB 5.7 (RHEL v.6) (rh-postgresql95-postgresql) RHSA-2017:2425 2017-08-07
Red Hat Satellite Managed DB 5.8 (RHEL v.6) (rh-postgresql95-postgresql) RHSA-2017:1838 2017-07-31
Red Hat Software Collections for Red Hat Enterprise Linux 7 (rh-postgresql94-postgresql) RHSA-2017:1678 2017-07-05
Red Hat Satellite 5.8 (RHEL v.6) (rh-postgresql95-postgresql) RHSA-2017:1838 2017-07-31
Red Hat Software Collections for Red Hat Enterprise Linux 6 (rh-postgresql95-postgresql) RHSA-2017:1677 2017-07-05
Red Hat Satellite 5.7 (RHEL v.6) (rh-postgresql95-postgresql) RHSA-2017:2425 2017-08-07
Red Hat Software Collections for Red Hat Enterprise Linux 6 (rh-postgresql94-postgresql) RHSA-2017:1678 2017-07-05

Affected Packages State

Platform Package State
Red Hat Satellite 5 postgresql92-postgresql Not affected
Red Hat Enterprise Linux 7 postgresql Not affected
Red Hat Enterprise Linux 6 postgresql Not affected
Red Hat Enterprise Linux 5 postgresql84 Not affected
Red Hat Enterprise Linux 5 postgresql Not affected

Acknowledgements

Red Hat would like to thank the PostgreSQL project for reporting this issue. Upstream acknowledges Daniel Gustafsson as the original reporter.

Mitigation

Use PGSSLMODE=require instead of PGREQUIRESSL=1

External References