8.1high
MinIO vulnerable to privilege escalation via session policy bypass in service accounts and STS
- Severity
- 8.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.59% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jjjj-jwhf-8rgrGO-2025-4034
Description
MinIO is a high-performance object storage system. In all versions prior to RELEASE.2025-10-15T17-29-55Z, 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 operations on their own account, specifically when creating new service accounts for the same user. The vulnerability exists in the IAM policy validation logic where the code incorrectly relied on the DenyOnly argument when validating session policies for restricted accounts. When a session policy is present, the system should validate that the action is allowed by the session policy, not just that it is not denied. An attacker with valid credentials for a restricted service or STS account can create a new service account for itself without policy restrictions, resulting in a new service account with full parent privileges instead of being restricted by the inline policy. This allows the attacker to access buckets and objects beyond their intended restrictions and modify, delete, or create objects outside their authorized scope. The vulnerability is fixed in version RELEASE.2025-10-15T17-29-55Z.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| minio minio | < RELEASE.2025-10-15T17-29-55Z | CVE List |
| github.com/minio/minio (Go) | before 0.0.0-20251015170045-c1a49490c78e | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
MinIO is a high-performance object storage system. In all versions prior to RELEASE.2025-10-15T17-29-55Z, 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 operations on their own account, specifically when creating new service accounts for the same user. The vulnerability exists in the IAM policy validation logic where the code incorrectly relied on the DenyOnly argument when validating session policies for restricted accounts. When a session policy is present, the system should validate that the action is allowed by the session policy, not just that it is not denied. An attacker with valid credentials for a restricted service or STS account can create a new service account for itself without policy restrictions, resulting in a new service account with full parent privileges instead of being restricted by the inline policy. This allows the attacker to access buckets and objects beyond their intended restrictions and modify, delete, or create objects outside their authorized scope. The vulnerability is fixed in version RELEASE.2025-10-15T17-29-55Z.
GitHub Advisory Database
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/minio@RELEASE.2025-10-15T17-29-55Z
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)
Go Vulnerability Database
MinIO is Vulnerable to Privilege Escalation via Session Policy Bypass in Service Accounts and STS in github.com/minio/minio
NVD (es)
MinIO es un sistema de almacenamiento de objetos de alto rendimiento. En todas las versiones anteriores a RELEASE.2025-10-15T17-29-55Z, una vulnerabilidad de escalada de privilegios permite a las cuentas de servicio y a las cuentas STS (Security Token Service) con políticas de sesión restringidas eludir sus restricciones de política en línea al realizar operaciones en su propia cuenta, específicamente al crear nuevas cuentas de servicio para el mismo usuario. La vulnerabilidad existe en la lógica de validación de políticas de IAM donde el código se basó incorrectamente en el argumento DenyOnly al validar políticas de sesión para cuentas restringidas. Cuando una política de sesión está presente, el sistema debería validar que la acción está permitida por la política de sesión, no solo que no está denegada. Un atacante con credenciales válidas para una cuenta de servicio o STS restringida puede crear una nueva cuenta de servicio para sí mismo sin restricciones de política, lo que resulta en una nueva cuenta de servicio con privilegios parentales completos en lugar de estar restringida por la política en línea. Esto permite al atacante acceder a buckets y objetos más allá de sus restricciones previstas y modificar, eliminar o crear objetos fuera de su ámbito autorizado. La vulnerabilidad está corregida en la versión RELEASE.2025-10-15T17-29-55Z.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-62506 changed 2025-10-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jjjj-jwhf-8rgr changed 2026-10-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-4034 changed 2026-10-08 | CC-BY-4.0 |
| NVD | CVE-2025-62506 changed 2026-10-19 | Public domain |