/

CVE-2026-100397

Severity:

CRITICAL RISK

(10.0)

Improper Authentication (CWE-287) in Rucio Auth API

CVE-2026-100397

Awaiting Analysis

Vulnerability type

Category:

Improper Authentication

CWE:

CWE-287

Impact:

Account Impersonation and Unauthorized Access

Severity:

CRITICAL RISK

(10.0)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Rucio can accept an SSH challenge nonce as an authentication token because the token validator does not distinguish the two token types. An unauthenticated attacker who can reach the relevant API endpoint may use this behavior to act as the requested account, potentially including an administrative account.

Affected context

The issue occurs in Rucio's authentication flow when SSH challenge nonces and authentication tokens are stored in the same token table, but validation does not distinguish their purposes. It affects deployments with the vulnerable authentication behavior where the SSH challenge endpoint is reachable; exploitation could permit access to other API endpoints as the account associated with the challenge.

Exploit preconditions

  • Attack surface: Rucio API, including the SSH challenge token endpoint
  • Required access: No prior authentication is required, but the API must be reachable
  • Trigger point: Authentication-token validation on an API request
  • Why exploitation is possible: The validator may treat a short-lived SSH challenge nonce as a valid authentication token without confirming its intended purpose

Why this happens

The underlying bug is a failure to distinguish credentials with different purposes. Because SSH challenge nonces and authentication tokens share a token table, validation that checks token presence or association without enforcing the token's type and intended use can accept a nonce as an authentication credential. This is an improper authentication weakness mapped to CWE-287.

Potential impact

  • An attacker could impersonate an arbitrary account
  • Unauthorized access to API endpoints could expose or alter protected data
  • An attacker could perform privileged actions if an administrative account is impersonated
  • Compromised access could affect scientific data management operations

General mitigation guidance

Defensive patterns focus on ensuring credentials are accepted only for their intended purpose:

  • Use distinct token types or namespaces for SSH challenges and authentication credentials
  • Validate token purpose, account binding, expiry, and other relevant claims before granting access
  • Make authentication fail closed when a credential's type or intended use is ambiguous
  • Limit the privileges available to accounts and services, and apply authorization checks to sensitive operations
  • Reduce unnecessary exposure of authentication endpoints and monitor access to them

How teams detect issues like this

  • Review authentication code for token lookups that do not validate credential type, purpose, or intended audience
  • Use static analysis and code review checks to flag shared credential stores without explicit type checks
  • Test that challenge credentials are rejected by ordinary authentication paths and that account binding is enforced
  • Monitor for unusual API activity, including unexpected access to sensitive endpoints or administrative actions
  • Apply policy checks that require explicit credential-purpose validation in authentication flows

Sources

SourceLink
github.comgithub.com/rucio/rucio/commit/4d4a58571ba853f3a55aef16ad9eb0944fce7483
github.comgithub.com/rucio/rucio/commit/4df924feb539ef789b3e78cbc00712ef8cdf606e
github.comgithub.com/rucio/rucio/commit/d7a3c2c2f933dce8edbcad07d8d076b9b782da35
github.comgithub.com/rucio/rucio/commit/f5db3546d9c0de4642dc9aa52e6a6e447911d680
github.comgithub.com/rucio/rucio/releases/tag/35.9.1
github.comgithub.com/rucio/rucio/releases/tag/38.6.1
github.comgithub.com/rucio/rucio/releases/tag/40.4.2
github.comgithub.com/rucio/rucio/releases/tag/41.1.1
github.comgithub.com/rucio/rucio/security/advisories/GHSA-x585-4vv8-2mh2

Frequently asked

questions

It may be exploitable by an unauthenticated attacker if the relevant Rucio API endpoint is reachable. The described issue does not require prior authentication.

No account is required, but the attacker needs network access to the challenge endpoint and the ability to make requests to the API.

Ensure challenge nonces cannot be accepted as authentication credentials by separating credential purposes and explicitly validating token type and intended use.

Enforce strict credential-purpose and account-binding checks, test that tokens are rejected outside their intended flows, and review authentication code for ambiguous shared-token handling.

Find out what's already
exploitable in your codebase.