Vulnerability

CVE-2025-59432

mediumCVSS 4.0 6.6Published 22 Sep 2025

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

SCRAM (Salted Challenge Response Authentication Mechanism) is part of the family of Simple Authentication and Security Layer (SASL, RFC 4422) authentication mechanisms. Prior to version 3.2, a timing attack vulnerability exists in the SCRAM Java implementation. The issue arises because Arrays.equals was used to compare secret values such as client proofs and server signatures. Since Arrays.equals performs a short-circuit comparison, the execution time varies depending on how many leading bytes match. This behavior could allow an attacker to perform a timing side-channel attack and potentially infer sensitive authentication material. All users relying on SCRAM authentication are impacted. This vulnerability has been patched in version 3.1 by replacing Arrays.equals with MessageDigest.isEqual, which ensures constant-time comparison.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • docs.oracle.com /en/java/javase/25/docs/api/java.base/java/security/Message…
  • github.com /ongres/scram/commit/e0b0cf99f05406a0d26682c72fcb5728e95124…
  • github.com /ongres/scram/security/advisories/GHSA-3wfh-36rx-9537

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning