CVE-2025-59432Timing Attack Vulnerability in SCRAM Authentication
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.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | scram | Under investigation | UBUNTU-CVE-2025-59432 | |
| Ubuntu 22.04 | scram | Under investigation | UBUNTU-CVE-2025-59432 | |
| Ubuntu 20.04 | scram | Fix pending | UBUNTU-CVE-2025-59432 | |
| Ubuntu 18.04 | scram | Fix pending | UBUNTU-CVE-2025-59432 | |
| Debian 14 | libscram-java | Fixed | 3.2-1 | DEBIAN-CVE-2025-59432 |
| Debian 13 | libscram-java | Fix pending | DEBIAN-CVE-2025-59432 | |
| Debian 12 | libscram-java | Fix pending | DEBIAN-CVE-2025-59432 | |
| Red Hat Enterprise Linux 10 | ongres-scram | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ongres-scram-client | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | postgresql-jdbc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | ongres-scram | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | ongres-scram-client | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ongres-scram | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ongres-scram-client | Fix pending Fix deferred | ||
| Maven library | com.ongres.scram:scram-common | Fixed | 3.2 | GHSA-3wfh-36rx-9537 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ongres scram: affected: < 3.2
References
- https://github.com/ongres/scram/security/advisories/GHSA-3wfh-36rx-9537
- https://github.com/ongres/scram/commit/e0b0cf99f05406a0d26682c72fcb5728e95124b3
- https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/security/MessageDigest.html#isEqual(byte%5B%5D,byte%5B%5D)
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.