Skip to content
OpenAdvisories
Medium · 6.6 CVE-2025-59432 EUVD-2025-29670GHSA-3wfh-36rx-9537

Timing Attack Vulnerability in SCRAM Authentication

Published Sep 22, 2025 · Updated Jan 23, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
ongres scram < 3.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libscram-java 3.2-1 —
Debian 13 libscram-java No fix yet —
Debian 12 libscram-java No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS scram No fix yet —
Ubuntu 22.04 LTS scram No fix yet —
Ubuntu 20.04 LTS scram No fix yet —
Ubuntu 18.04 LTS scram No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 ongres-scram 2.1-150400.8.5.1 SUSE-SU-2025:4054-1
SLES 15 SP6 ongres-scram 2.1-150400.8.5.1 SUSE-SU-2025:4054-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 ongres-scram 3.1-160000.3.1 SUSE-SU-2025:21016-1
SLES 16.0 ongres-scram 3.1-160000.3.1 SUSE-SU-2025:21016-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ongres-scram 3.2-7.1 openSUSE-SU-2025:15680-1
openSUSE Leap 16.0 ongres-scram 3.1-160000.3.1 openSUSE-SU-2025:20059-1
openSUSE Leap 15.6 ongres-scram 2.1-150400.8.5.1 SUSE-SU-2025:4054-1

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.ongres.scram:scram-common < 3.2 3.2 GHSA-3wfh-36rx-9537

Advisories 5

References