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`. 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 1. An administrator creates a service account or STS account with a restricted inline policy (e.g., access only to bucket1 and bucket2) 2. The restricted account attempts to create a new service account for itself without specifying any policy restrictions 3. Due to the bypass, the new service account is created with full parent privileges instead of being restricted by the inline policy 4. The attacker now has escalated privileges beyond the intended restrictions ### Impact **Attack Complexity**: LOW - Exploitation requires only valid credentials for a restricted ser
- Products
- github.com/minio/minio
- Affected versions
- Not specified
- Fixed versions
- 0.0.0-20251015170045-c1a49490c78e
- CVEs
- CVE-2025-62506
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 28 Oct 2026, 09:01 UTC · Revision 2
Source evidence
MinIO is Vulnerable to Privilege Escalation via Session Policy Bypass in Service Accounts and STS
core-osv · Original sourcePublished 16 Oct 2025, 21:36 UTC
### 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 1. An administrator creates a service account or STS account with a restricted inline policy (e.g., access only to bucket1 and bucket2) 2. The restricted account attempts to create a new service account for itself without specifying any policy restrictions 3. Due to the bypass, the new service account is created with full parent privileges instead of being restricted by the inline policy 4. The attacker now has escalated privileges beyond the intended restrictions ### Impact **Attack Complexity**: LOW - Exploitation requires only valid credentials for a restricted ser
osv:GHSA-jjjj-jwhf-8rgr
github.com/minio/minio
Fixed versions: 0.0.0-20251015170045-c1a49490c78e
Complete source record
{
"id": "f22739b2f198c4cb4b266ec51f533e10044d4a6afa15ec97aaba55765cff01cb",
"url": "https://osv.dev/vulnerability/GHSA-jjjj-jwhf-8rgr",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "MinIO is Vulnerable to Privilege Escalation via Session Policy Bypass in Service Accounts and STS",
"summary": "### 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 1. An administrator creates a service account or STS account with a restricted inline policy (e.g., access only to bucket1 and bucket2) 2. The restricted account attempts to create a new service account for itself without specifying any policy restrictions 3. Due to the bypass, the new service account is created with full parent privileges instead of being restricted by the inline policy 4. The attacker now has escalated privileges beyond the intended restrictions ### Impact **Attack Complexity**: LOW - Exploitation requires only valid credentials for a restricted ser",
"evidence": "osv:GHSA-jjjj-jwhf-8rgr",
"products": [
{
"name": {
"value": "github.com/minio/minio",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.0.0-20251015170045-c1a49490c78e",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "GHSA-jjjj-jwhf-8rgr",
"aliases": [
"CVE-2025-62506",
"GHSA-jjjj-jwhf-8rgr",
"GO-2025-4034"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.0.0-20251015170045-c1a49490c78e"
}
]
}
],
"package": {
"name": "github.com/minio/minio",
"purl": "pkg:golang/github.com/minio/minio",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-jjjj-jwhf-8rgr/GHSA-jjjj-jwhf-8rgr.json"
}
}
],
"modified": "2026-10-08T08:11:02.678850834Z",
"provider": "osv",
"references": [
"https://github.com/minio/minio/security/advisories/GHSA-jjjj-jwhf-8rgr",
"https://nvd.nist.gov/vuln/detail/CVE-2025-62506",
"https://github.com/minio/minio/issues/21647",
"https://github.com/minio/minio/pull/21642",
"https://github.com/minio/minio/commit/c1a49490c78e9c3ebcad86ba0662319138ace190",
"https://github.com/minio/minio",
"https://github.com/minio/minio/discussions/21655",
"https://news.ycombinator.com/item?id=45684035"
],
"provider_metadata": {
"cwe_ids": [
"CWE-863"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2025-10-16T22:15:31Z",
"github_reviewed_at": "2025-10-16T21:36:06Z"
}
},
"related_cves": [
{
"value": "CVE-2025-62506",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 98769,
"published_at": "2025-10-16T21:36:06+00:00"
}MinIO is Vulnerable to Privilege Escalation via Session Policy Bypass in Service Accounts and STS in github.com/minio/minio
core-osv · Original sourcePublished 30 Oct 2025, 15:02 UTC
MinIO is Vulnerable to Privilege Escalation via Session Policy Bypass in Service Accounts and STS in github.com/minio/minio
osv:GO-2025-4034
github.com/minio/minio
Fixed versions: 0.0.0-20251015170045-c1a49490c78e
Complete source record
{
"id": "3e32ebce272f8943b44edba105966c19950d86ab141e32c61b04bdf30a9ad5ea",
"url": "https://osv.dev/vulnerability/GO-2025-4034",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "MinIO is Vulnerable to Privilege Escalation via Session Policy Bypass in Service Accounts and STS in github.com/minio/minio",
"summary": "MinIO is Vulnerable to Privilege Escalation via Session Policy Bypass in Service Accounts and STS in github.com/minio/minio",
"evidence": "osv:GO-2025-4034",
"products": [
{
"name": {
"value": "github.com/minio/minio",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.0.0-20251015170045-c1a49490c78e",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "GO-2025-4034",
"aliases": [
"CVE-2025-62506",
"GHSA-jjjj-jwhf-8rgr",
"GO-2025-4034"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.0.0-20251015170045-c1a49490c78e"
}
]
}
],
"package": {
"name": "github.com/minio/minio",
"purl": "pkg:golang/github.com/minio/minio",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2025-4034.json"
},
"ecosystem_specific": {}
}
],
"modified": "2026-10-08T08:11:02.678850834Z",
"provider": "osv",
"references": [
"https://github.com/minio/minio/security/advisories/GHSA-jjjj-jwhf-8rgr",
"https://nvd.nist.gov/vuln/detail/CVE-2025-62506",
"https://github.com/minio/minio/commit/c1a49490c78e9c3ebcad86ba0662319138ace190",
"https://github.com/minio/minio/pull/21642",
"https://github.com/minio/minio/issues/21647",
"https://github.com/minio/minio/discussions/21655",
"https://news.ycombinator.com/item?id=45684035"
],
"provider_metadata": {
"url": "https://pkg.go.dev/vuln/GO-2025-4034",
"review_status": "UNREVIEWED"
}
},
"related_cves": [
{
"value": "CVE-2025-62506",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 98770,
"published_at": "2025-10-30T15:02:33+00:00"
}