CVE-2017-7485: Medium severity PostgreSQL postgresql vulnerability

Published May 4, 2017
·
Updated

Documentation asserts that, given this variable, libpq will attempt SSL connections only. Instead, libpq ignores the variable and attempts a non-SSL connection after an SSL connection fails. (libpq is a prominent programming interface for PostgreSQL clients.) An attacker intercepting session startup could compel use of a non-SSL connection, then record or modify the remainder of the session. The long-preferred PGSSLMODE environment variable does not have this problem and provides strictly more control.

Affected versions: 9.3 - 9.6

Other sources

In PostgreSQL 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, it was found that the PGREQUIRESSL environment variable was no longer enforcing a SSL/TLS connection to a PostgreSQL server. An active Man-in-the-Middle attacker could use this flaw to strip the SSL/TLS protection from a connection between a client and a server.

Affected Software

44 affected componentsFixes available
redhat/postgresql<9.2.21
9.2.21
redhat/postgresql<9.3.17
9.3.17
redhat/postgresql<9.4.12
9.4.12
redhat/postgresql<9.5.7
9.5.7
redhat/postgresql<9.6.3
9.6.3
PostgreSQL postgresql=9.3
PostgreSQL postgresql=9.3.1
PostgreSQL postgresql=9.3.2
PostgreSQL postgresql=9.3.3
PostgreSQL postgresql=9.3.4
PostgreSQL postgresql=9.3.5
PostgreSQL postgresql=9.3.6
PostgreSQL postgresql=9.3.7
PostgreSQL postgresql=9.3.8
PostgreSQL postgresql=9.3.9
PostgreSQL postgresql=9.3.10
PostgreSQL postgresql=9.3.11
PostgreSQL postgresql=9.3.12
PostgreSQL postgresql=9.3.13
PostgreSQL postgresql=9.3.14
PostgreSQL postgresql=9.3.15
PostgreSQL postgresql=9.3.16
PostgreSQL postgresql=9.4
PostgreSQL postgresql=9.4.1
PostgreSQL postgresql=9.4.2
PostgreSQL postgresql=9.4.3
PostgreSQL postgresql=9.4.4
PostgreSQL postgresql=9.4.5
PostgreSQL postgresql=9.4.6
PostgreSQL postgresql=9.4.7
PostgreSQL postgresql=9.4.8
PostgreSQL postgresql=9.4.9
PostgreSQL postgresql=9.4.10
PostgreSQL postgresql=9.4.11
PostgreSQL postgresql=9.5
PostgreSQL postgresql=9.5.1
PostgreSQL postgresql=9.5.2
PostgreSQL postgresql=9.5.3
PostgreSQL postgresql=9.5.4
PostgreSQL postgresql=9.5.5
PostgreSQL postgresql=9.5.6
PostgreSQL postgresql=9.6
PostgreSQL postgresql=9.6.1
PostgreSQL postgresql=9.6.2

Event History

May 12, 2017
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
DescriptionWeakness

Frequently Asked Questions

1

What is the severity of CVE-2017-7485?

The severity of CVE-2017-7485 is considered medium due to the potential for a Man-in-the-Middle attack.

2

How do I fix CVE-2017-7485?

To fix CVE-2017-7485, update PostgreSQL to version 9.3.17, 9.4.12, 9.5.7, 9.6.3 or later.

3

What versions of PostgreSQL are affected by CVE-2017-7485?

PostgreSQL versions 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 are affected by CVE-2017-7485.

4

Is the PGREQUIRESSL environment variable related to CVE-2017-7485?

Yes, CVE-2017-7485 involves the PGREQUIRESSL environment variable not enforcing an SSL/TLS connection.

5

What attack vectors could exploit CVE-2017-7485?

An active Man-in-the-Middle attacker could exploit CVE-2017-7485 by stripping SSL/TLS connections.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203