Red Hat VEX
RHVEX-CVE-2025-59432
ongres-scram: Timing Attack Vulnerability in SCRAM Authentication
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | ongres-scram | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | ongres-scram-client | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | postgresql-jdbc | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | ongres-scram | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | ongres-scram-client | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | ongres-scram | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | ongres-scram-client | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2025-59432
- https://bugzilla.redhat.com/show_bug.cgi?id=2397490
- https://www.cve.org/CVERecord?id=CVE-2025-59432
- https://nvd.nist.gov/vuln/detail/CVE-2025-59432
- https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/security/MessageDigest.html#isEqual(byte%5B%5D,byte%5B%5D)
- https://github.com/ongres/scram/commit/f04975680d4a67bc84cc6c61bbffd5186223e2e2
- https://github.com/ongres/scram/security/advisories/GHSA-3wfh-36rx-9537