CVE Database›Document archive›CVE-2017-7485

CVE-2017-7485

postgresql: libpq ignores PGREQUIRESSL environment variable

Loading…

Severity

Moderate

Red Hat Product Security

7.4

CVSS 3.0

Review impact separately from score.

Published · May 11, 2017

Updated · June 28, 2026

Description

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.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Use PGSSLMODE=require instead of PGREQUIRESSL=1

CVSS / CWE

CVSS 3.0 · 7.4
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

CWE-390 · Detection of Error Condition Without Action