CVE-2025-62506: MinIO is Vulnerable to Privilege Escalation via Session Policy Bypass in Service Accounts and STS
Summary A privilege escalation vulnerability allows service accounts and STS (Security Token Service) accounts with restricted session policies to bypass their inline policy restrictions when performing "own" account operations, specifically when creating new service accounts for the same user. Details The vulnerability exists in the IAM policy validation logic in cmd/iam.go.
Published Oct 16, 2025 · Updated Oct 24, 2025
Affected packages
github.com/minio/minio
- Ecosystem
- Go
- Affected
- < 0.0.0-20251015170045-c1a49490c78e
- Fixed in
- 0.0.0-20251015170045-c1a49490c78e
- Check
go list -m github.com/minio/minio
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A privilege escalation vulnerability allows service accounts and STS (Security Token Service) accounts with restricted session policies to bypass their inline policy restrictions when performing "own" account operations, specifically when creating new service accounts for the same user.
Details
The vulnerability exists in the IAM policy validation logic in cmd/iam.go. When validating session policies for restricted accounts performing operations on their own account (such as creating service accounts), the code incorrectly relied on the DenyOnly argument.
The DenyOnly flag is used to allow accounts to perform actions related to their own account by only checking if the action is explicitly denied. However, when a session policy (sub-policy) is present, the system should validate that the action is actually allowed by the session policy, not just that it isn't denied.
Attack Scenario
- An administrator creates a service account or STS account with a restricted inline policy (e.g., access only to bucket1 and bucket2)
- The restricted account attempts to create a new service account for itself without specifying any policy restrictions
- Due to the bypass, the new service account is created with full parent privileges instead of being restricted by the inline policy
- The attacker now has escalated privileges beyond the intended restrictions
Impact
Attack Complexity: LOW - Exploitation requires only valid credentials for a restricted service/STS account
Confidentiality: HIGH - Attackers can access buckets and objects beyond their intended restrictions
Integrity: HIGH - Attackers can modify, delete, or create objects outside their authorized scope
Availability: NONE - Does not directly impact service availability
Patches
Fixed in PR https://github.com/minio/minio/pull/21642 Commit: c1a49490c78e9c3ebcad86ba0662319138ace190
Install the release
go install -v github.com/minio/[email protected]Workarounds
No workarounds available. You can upgrade to the latest version immediately.
Mitigation Steps
- Upgrade MinIO: Update to the latest version containing the fix
- Audit Service Accounts: Review all service accounts created by non-admin accounts
- Revoke Suspicious Accounts: Delete any service accounts that may have been created through exploitation
- Review Access Logs: Check for unauthorized access to sensitive buckets
Resources
- Fix PR: https://github.com/minio/minio/pull/21642
- Affected code: cmd/iam.go (functions: isAllowedBySessionPolicyForServiceAccount, isAllowedBySessionPolicy)
Credited to donatello, SimeonPoot.
References
- https://github.com/minio/minio/security/advisories/GHSA-jjjj-jwhf-8rgr
- https://github.com/minio/minio/pull/21642
- https://github.com/minio/minio/commit/c1a49490c78e9c3ebcad86ba0662319138ace190
- https://nvd.nist.gov/vuln/detail/CVE-2025-62506
- https://github.com/minio/minio/issues/21647
- https://github.com/minio/minio/discussions/21655
- https://news.ycombinator.com/item?id=45684035
- https://github.com/advisories/GHSA-jjjj-jwhf-8rgr
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-42600
MinIO vulnerable to Path Traversal via msgpack Body in `ReadMultiple` Storage-REST Endpoint
medium4.9May 5, 2026CVE-2026-40344
MinIO has an Unauthenticated Object Write via Missing Signature Verification in Unsigned-Trailer Uploads
high8.2No fixApr 14, 2026CVE-2026-41145
MinIO has an Unauthenticated Object Write via Query-String Credential Signature Bypass in Unsigned-Trailer Uploads
high8.2No fixApr 14, 2026CVE-2026-39414
MinIO affected a DoS via Unbounded Memory Allocation in S3 Select CSV Parsing
high7.1No fixApr 9, 2026CVE-2026-34204
MinIO is Vulnerable to SSE Metadata Injection via Replication Headers
high7.1No fixMar 27, 2026CVE-2026-33419
MinIO LDAP login brute-force via user enumeration and missing rate limit
critical9.1No fixMar 20, 2026
