CVE-2025-59432

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-59432
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-59432.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-59432
Aliases
Downstream
Related
Published
2025-09-22T19:22:37.117Z
Modified
2025-11-17T04:06:00.615087Z
Severity
  • 6.6 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U CVSS Calculator
Summary
Timing Attack Vulnerability in SCRAM Authentication
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-208",
        "CWE-385"
    ]
}
References

Affected packages

Git / github.com/ongres/scram

Affected ranges

Type
GIT
Repo
https://github.com/ongres/scram
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.0.0-beta.2
1.9-beta1

2.*

2.0
2.0-beta1
2.0-beta2
2.0-beta3
2.1

3.*

3.0
3.1