Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-3wfh-36rx-9537

Опубликовано: 16 сент. 2025
Источник: github
Github: Прошло ревью
CVSS4: 6.6

Описание

Timing Attack Vulnerability in SCRAM Authentication

Impact

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.

Patches

This vulnerability has been patched by replacing Arrays.equals with MessageDigest.isEqual, which ensures constant-time comparison.

Users should upgrade to version 3.2 or later to mitigate this issue.

Workarounds

Because the attack requires high precision and repeated attempts, the risk is limited, but the only reliable mitigation is to upgrade to a patched release (version 3.2 or later).

References

Пакеты

Наименование

com.ongres.scram:scram-common

maven
Затронутые версииВерсия исправления

< 3.2

3.2

EPSS

Процентиль: 41%
0.00191
Низкий

6.6 Medium

CVSS4

Дефекты

CWE-208
CWE-385

Связанные уязвимости

ubuntu
3 месяца назад

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.

CVSS3: 6.8
redhat
3 месяца назад

No description is available for this CVE.

nvd
3 месяца назад

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.

debian
3 месяца назад

SCRAM (Salted Challenge Response Authentication Mechanism) is part of ...

suse-cvrf
28 дней назад

Security update for ongres-scram

EPSS

Процентиль: 41%
0.00191
Низкий

6.6 Medium

CVSS4

Дефекты

CWE-208
CWE-385