---
id: CVE-2025-59432
title: >-
  SCRAM (Salted Challenge Response Authentication Mechanism) is part of the
  family of Simple Authentication and Security Layer (SASL, RFC 4422)
  authentication mechanisms
summary: >-
  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 SC…
severity: none
cwe:
  - CWE-208
  - CWE-385
published: '2025-09-22'
updated: '2026-10-11'
sourceUpdated: '2026-10-11T20:10:00.200'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-59432'
references:
  - url: >-
      https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/security/MessageDigest.html#isEqual(byte%5B%5D,byte%5B%5D)
    label: security-advisories@github.com
  - url: >-
      https://github.com/ongres/scram/commit/e0b0cf99f05406a0d26682c72fcb5728e95124b3
    label: security-advisories@github.com
  - url: 'https://github.com/ongres/scram/security/advisories/GHSA-3wfh-36rx-9537'
    label: security-advisories@github.com
tags:
  - nvd
epss: 0.00702
epssPercentile: 0.51921
ingestedAt: '2026-10-12T14:50:33.967Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
