Timing Attack Vulnerability in SCRAM Authentication Mechanism Affecting Ongres
CVE-2025-59432
6.6MEDIUM
What is CVE-2025-59432?
A timing vulnerability in the Java implementation of SCRAM arises from using Arrays.equals to compare secret values. This implementation allows variations in execution time based on the number of leading byte matches, potentially enabling attackers to infer sensitive authentication materials through timing side-channel attacks. This issue has been addressed in version 3.2 by replacing the vulnerable comparison method with MessageDigest.isEqual, ensuring constant-time operations for improved security.
Affected Version(s)
scram < 3.2