Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. rustfs
  4. ›
  5. GHSA-mm2q-qcmx-gw4w

GHSA-mm2q-qcmx-gw4w: RustFS: ListServiceAccount authorizes against wrong admin action, enabling cross-user enumeration and root service account takeover

May 5, 2026

ListServiceAccount (GET /rustfs/admin/v3/list-service-accounts?user=<other>) authorizes cross-user requests against UpdateServiceAccountAdminAction instead of ListServiceAccountsAdminAction at rustfs/src/admin/handlers/service_account.rs:936. The handler accepts the wrong admin action and rejects the correct one:

  • A user granted only admin:UpdateServiceAccount enumerates every service account in the cluster, including the root user’s (HTTP 200, full metadata).
  • A user granted only admin:ListServiceAccounts — the permission name every IAM document treats as “list service accounts” — receives HTTP 403 AccessDenied on the same request.

Because service account access keys act as the identifier a UpdateServiceAccount holder needs to rotate a secret, and the UpdateServiceAccount handler at rustfs/src/admin/handlers/service_account.rs:489 performs no ownership check on the target access key, leaking those access keys lets a delegated “service account updater” role overwrite root-sa-1’s secret, authenticate as the root user’s service account, and create a persistent backdoor admin with admin:* + s3:*. Proven live end-to-end against rustfs/rustfs:latest (1.0.0-alpha.91, revision d4ea14c2) — the same revision is byte-identical on current origin/main.

References

  • github.com/advisories/GHSA-mm2q-qcmx-gw4w
  • github.com/rustfs/rustfs/security/advisories/GHSA-mm2q-qcmx-gw4w

Code Behaviors & Features

Detect and mitigate GHSA-mm2q-qcmx-gw4w with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.0.0-alpha.98

Fixed versions

  • 1.0.0-alpha.98

Solution

Upgrade to version 1.0.0-alpha.98 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

cargo/rustfs/GHSA-mm2q-qcmx-gw4w.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:09 +0000.