CVE-2018-10936
PostgreSQL: Postgres JDBC driver does not perform host name validation by default
Severity
LowRed Hat Product Security
CVSS 3.0
Review impact separately from score.
Published · August 27, 2018
Updated · June 30, 2026
Description
A weakness was found in postgresql-jdbc. It was possible to provide an SSL Factory and not check the host name if a host name verifier was not provided to the driver. This could lead to a condition where a man-in-the-middle attacker could masquerade as a trusted server by providing a certificate for the wrong host, as long as it was signed by a trusted CA.
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
Applications using postgresql-jdbc should have their SSL configuration reviewed to ensure that host name verification is not disabled and only trusted CAs are accepted.
This vulnerability only impacts usage of postgresql-jdbc with a non-default SSL Factory, provided by the sslfactory parameter. If this parameter is not given, the default LibPQFactory is used, which is not vulnerable.
CVSS / CWE
CVSS 3.0 · 8.1CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE-297 · Improper Validation of Certificate with Host Mismatch