Skip to content
Heist/ feed
Back to feed
MediumFix available

libscram-java — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2025-59432

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.

Products
libscram-java
Affected versions
2.1-1, 3.1-1, 3.2-1, 3.3-1, 3.4-1
Fixed versions
3.2-1
CVEs
CVE-2025-59432
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 06:31 UTC · Revision 1

Source evidence

DEBIAN-CVE-2025-59432

core-osv · Original source

Published 22 Sept 2025, 20:15 UTC

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.

osv:DEBIAN-CVE-2025-59432

libscram-java

Fixed versions: Not specified

libscram-java

Fixed versions: Not specified

libscram-java

Fixed versions: 3.2-1

Complete source record
{
  "id": "87916b03deb33b2ef62bb4c05ea3157d8b462013599df96e3422e1c08b2640db",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2025-59432",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2025-59432",
    "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 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.",
    "evidence": "osv:DEBIAN-CVE-2025-59432",
    "products": [
      {
        "name": {
          "value": "libscram-java",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.4-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libscram-java",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.3-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libscram-java",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.2-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.1-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2025-59432",
      "aliases": [
        "DEBIAN-CVE-2025-59432"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libscram-java",
            "purl": "pkg:deb/debian/libscram-java?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "2.1-1",
            "3.1-1",
            "3.2-1",
            "3.3-1",
            "3.4-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-59432.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libscram-java",
            "purl": "pkg:deb/debian/libscram-java?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "3.1-1",
            "3.2-1",
            "3.3-1",
            "3.4-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-59432.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.2-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libscram-java",
            "purl": "pkg:deb/debian/libscram-java?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "3.1-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-59432.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-12T09:47:43.577895118Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-59432"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2025-59432"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-59432",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 299682,
  "published_at": "2025-09-22T20:15:38.673+00:00"
}