Incorrect Implementation of Authentication Algorithm Affecting org.postgresql:postgresql package, versions [42.7.4,42.7.7)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGPOSTGRESQL-10343494
  • published12 Jun 2025
  • disclosed11 Jun 2025
  • creditGeorge MacKerron

Introduced: 11 Jun 2025

NewCVE-2025-49146  (opens in a new tab)
CWE-303  (opens in a new tab)

How to fix?

Upgrade org.postgresql:postgresql to version 42.7.7 or higher.

Overview

org.postgresql:postgresql is a Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database.

Affected versions of this package are vulnerable to Incorrect Implementation of Authentication Algorithm allowing fallback to insecure authentication despite channelBinding being set to required. (The default value is prefer.) A man-in-the-middle attacker can intercept and manipulate connections by exploiting this vulnerability.

Workaround

This can be mitigated by configuring sslMode=verify-full to prevent MITM attacks.

References

CVSS Base Scores

version 4.0
version 3.1