CVE-2025-59432

NameCVE-2025-59432
DescriptionSCRAM (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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1116054

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libscram-java (PTS)bullseye1.0.0~beta.2-3vulnerable
bookworm2.1-1vulnerable
forky, trixie3.1-1vulnerable
sid3.2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libscram-javasource(unstable)3.2-11116054

Notes

[trixie] - libscram-java <no-dsa> (Minor issue)
[bookworm] - libscram-java <no-dsa> (Minor issue)
[bullseye] - libscram-java <postponed> (Minor issue)
https://github.com/ongres/scram/security/advisories/GHSA-3wfh-36rx-9537
Fixed by: https://github.com/ongres/scram/commit/e0b0cf99f05406a0d26682c72fcb5728e95124b3 (3.2)
libpgjava needs a sourcefull upload after patching libscram-java

Search for package or bug name: Reporting problems