# CVE-2025-59432: Timing Attack Vulnerability in SCRAM Authentication

- Severity: Medium 6.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Published: 2025-09-16T22:20:08.000Z
- Modified: 2026-10-11T20:10:00.200Z
- Also known as: GHSA-3wfh-36rx-9537
- Weaknesses: CWE-208, CWE-385
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ongres scram: < 3.2
- com.ongres.scram:scram-common (Maven): before 3.2

## Every score

- GitHub_M: CVSS:4.0 6.6 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/ongres/scram/security/advisories/GHSA-3wfh-36rx-9537> (web)
- <https://github.com/ongres/scram/commit/e0b0cf99f05406a0d26682c72fcb5728e95124b3> (web)
- <https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/security/MessageDigest.html#isEqual(byte%5B%5D,byte%5B%5D)> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59432> (advisory)
- <https://github.com/ongres/scram> (package)

## Sources

- CVE List: [CVE-2025-59432](https://www.cve.org/CVERecord?id=CVE-2025-59432), CVE Terms of Use, modified 2026-01-23
- GitHub Advisory Database: [GHSA-3wfh-36rx-9537](https://github.com/advisories/GHSA-3wfh-36rx-9537), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2025-59432](https://nvd.nist.gov/vuln/detail/CVE-2025-59432), Public domain, modified 2026-10-11

---

Page: https://cve.day/CVE-2025-59432 · Whole record: https://cve.day/CVE-2025-59432.json · Rebuilt by cve.day 2026-11-25T22:59:05.005Z
