GHSA-3wfh-36rx-9537

Suggest an improvement
Source
https://github.com/advisories/GHSA-3wfh-36rx-9537
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-3wfh-36rx-9537/GHSA-3wfh-36rx-9537.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3wfh-36rx-9537
Aliases
Published
2025-09-16T22:20:08Z
Modified
2025-09-22T22:39:42.731036Z
Severity
  • 6.6 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Timing Attack Vulnerability in SCRAM Authentication
Details

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

Database specific
{
    "github_reviewed": true,
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-208",
        "CWE-385"
    ],
    "nvd_published_at": "2025-09-22T20:15:38Z",
    "github_reviewed_at": "2025-09-16T22:20:08Z"
}
References

Affected packages

Maven / com.ongres.scram:scram-common

Package

Name
com.ongres.scram:scram-common
View open source insights on deps.dev
Purl
pkg:maven/com.ongres.scram/scram-common

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.2

Affected versions

3.*

3.0
3.1