CVE Database›CVE-2026-6478

CVE-2026-6478

postgresql: PostgreSQL: Credential recovery via covert timing channel in MD5 password comparison

Loading…

Severity

Important

Red Hat Product Security

8.2

CVSS 3.1

Review impact separately from score.

Published · May 14, 2026

Updated · August 25, 2026

Description

A flaw was found in PostgreSQL. This vulnerability, a covert timing channel, exists in the comparison of MD5-hashed passwords during authentication. A remote attacker could exploit this to recover user credentials, gaining unauthorized access to the database. This issue specifically impacts databases that retain MD5-hashed passwords from upgrades of PostgreSQL 13 or earlier.

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

To mitigate this vulnerability, ensure that all PostgreSQL user passwords are not hashed using MD5. Users should migrate to stronger hashing algorithms such as scram-sha-256. This can be achieved by altering user passwords, which will automatically update their hash to the currently configured default. For example, to change a user's password: ALTER USER username WITH PASSWORD 'new_password'; This action will require users to re-authenticate. If a service relies on these credentials, it may require a restart to pick up the new authentication details.

CVSS / CWE

CVSS 3.1 · 8.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

CWE-385 · Covert Timing Channel