{"id":"CVE-2025-59432","published":"2025-09-22T19:22:37Z","modified":"2026-01-23T17:27:49Z","title":"Timing Attack Vulnerability in SCRAM Authentication","vendor":"ongres","product":"scram","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01213,"percentile":0.68408,"provenance":"source"},"cwes":[{"id":"CWE-208","name":"Observable Timing Discrepancy"},{"id":"CWE-385","name":"Covert Timing Channel"}],"references":[{"url":"https://github.com/ongres/scram/security/advisories/GHSA-3wfh-36rx-9537","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ongres/scram/commit/e0b0cf99f05406a0d26682c72fcb5728e95124b3","tags":["x_refsource_MISC"]},{"url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/security/MessageDigest.html#isEqual(byte%5B%5D,byte%5B%5D)","tags":["x_refsource_MISC"]}],"priority":{"score":18.3,"factors":[{"name":"EPSS percentile","points":13.68},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"ongres","affectedVersions":[{"vendor":"ongres","product":"scram","versions":["< 3.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-09-22T19:39:54.878581Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.ongres.scram:scram-common","vulnerableRanges":["<3.2"],"patched":["3.2"],"from":["GHSA-3wfh-36rx-9537"],"provenance":"source"}],"summary":{"text":"The SCRAM Java implementation from ongres, prior to version 3.2, compares secret values such as client proofs and server signatures using Arrays.equals, a short-circuit comparison whose execution time depends on how many leading bytes match. An attacker with network access, requiring no privileges or user interaction, could exploit this timing side-channel to potentially infer sensitive authentication material.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:35Z"},"euvd":{"id":"EUVD-2025-29670","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-59432","published":"2025-09-22","fixed":"3.2","kev":false},{"cve":"CVE-2026-53712","published":"2026-07-17","fixed":"3.3","kev":false,"link":{"from":"CVE-2025-59432","to":"CVE-2026-53712","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.ongres.scram:scram-common","fromFixed":"3.2","toFixed":"3.3","daysApart":298}]}}],"package":"Maven:com.ongres.scram:scram-common"}}