CVE-2025-59432 Timing Attack Vulnerability in SCRAM Authentication
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
7 packages: 2 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libscram-java(Debian 12) | = 2.1-1; = 3.1-1; = 3.2-1; = 3.3-1 +2 more | No fix listed | No fix yet |
| debian/libscram-java(Debian 13) | = 3.1-1; = 3.2-1; = 3.3-1; = 3.4-1 +1 more | No fix listed | No fix yet |
| ubuntu/scram(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/scram(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| com.ongres.scram/scram-common(Maven) | < 3.2; = 3.0; = 3.1 | 3.2 | Fixed |
| debian/libscram-java(Debian 14) | < 3.2-1; = 3.1-1 | 3.2-1 | Fixed |
| ongres scram | = < 3.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| com.ongres.scram/scram-common(Maven) | < 3.2 | 3.2 |
| com.ongres.scram/scram-common(Maven) | = 3.0 | No fix listed |
| com.ongres.scram/scram-common(Maven) | = 3.1 | No fix listed |
| debian/libscram-java(Debian:12) | All versions | No fix listed |
| debian/libscram-java(Debian:12) | = 2.1-1 | No fix listed |
| debian/libscram-java(Debian:12) | = 3.1-1 | No fix listed |
| debian/libscram-java(Debian:12) | = 3.2-1 | No fix listed |
| debian/libscram-java(Debian:12) | = 3.3-1 | No fix listed |
| debian/libscram-java(Debian:12) | = 3.4-1 | No fix listed |
| debian/libscram-java(Debian:13) | All versions | No fix listed |
| debian/libscram-java(Debian:13) | = 3.1-1 | No fix listed |
| debian/libscram-java(Debian:13) | = 3.2-1 | No fix listed |
| debian/libscram-java(Debian:13) | = 3.3-1 | No fix listed |
| debian/libscram-java(Debian:13) | = 3.4-1 | No fix listed |
| debian/libscram-java(Debian:14) | < 3.2-1 | 3.2-1 |
| debian/libscram-java(Debian:14) | = 3.1-1 | No fix listed |
| ongres scram | = < 3.2 | No fix listed |
| ubuntu/scram(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/scram(Ubuntu:24.04) | All versions | No fix listed |
References
- https://github.com/ongres/scram/security/advisories/GHSA-3wfh-36rx-9537 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/ongres/scram/commit/e0b0cf99f05406a0d26682c72fcb5728e95124b3 patch
- https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/security/MessageDigest.html#isEqual(byte%5B%5D,byte%5B%5D)
- github.com product
- Debian Security Tracker CVE-2025-59432 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking