Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. kanidm
  4. ›
  5. GHSA-53hj-r94p-8c8f

GHSA-53hj-r94p-8c8f: Kanidm has non-constant-time comparison of OAuth2 client_secret

May 6, 2026

The kanidmd OAuth2 token-exchange (/oauth2/token) and token-introspection (/oauth2/token/introspect) endpoints compare the supplied client_secret against the stored secret using Rust’s PartialEq on String, which short-circuits on the first mismatching byte. This produces an observable timing discrepancy that varies with the length of the matching prefix.

References

  • github.com/advisories/GHSA-53hj-r94p-8c8f
  • github.com/kanidm/kanidm
  • github.com/kanidm/kanidm/security/advisories/GHSA-53hj-r94p-8c8f

Code Behaviors & Features

Detect and mitigate GHSA-53hj-r94p-8c8f with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.9.3

Fixed versions

  • 1.9.3

Solution

Upgrade to version 1.9.3 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-208: Observable Timing Discrepancy

Source file

cargo/kanidm/GHSA-53hj-r94p-8c8f.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:20:59 +0000.