# CVE-2024-55949: Privilege escalation in IAM import API in MinIO

> Attackers can escalate privileges via the IAM import API in MinIO, requiring an immediate upgrade to the latest release.

- **Severity:** Critical 9.3 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 16 Dec 2024
- **Updated:** 16 Dec 2024
- **Also known as:** GHSA-cwq8-g58r-32hg, GO-2024-3336

## What is CVE-2024-55949?

CVE-2024-55949 is a critical vulnerability in minio, published on 16 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

MinIO is a high-performance, S3 compatible object store, open sourced under GNU AGPLv3 license. Minio is subject to a privilege escalation in IAM import API, all users are impacted since MinIO commit `580d9db85e04f1b63cc2909af50f0ed08afa965f`. This issue has been addressed in commit `f246c9053f9603e610d98439799bdd2a6b293427` which is included in RELEASE.2024-12-13T22-19-12Z. There are no workarounds possible, all users are advised to upgrade immediately.

Weakness: CWE-269 (Improper Privilege Management)

## Which versions are affected by CVE-2024-55949?

3 open source packages ship an affected version, including github.com/minio/minio.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/minio/minio` | Go | From 0.0.0-20220623162515-580d9db85e04 | 0.0.0-20241213221912-68b004a48f41 |
| `github.com/minio/minio` | Go | From 0.0.0-20220623162515-580d9db85e04 | 0.0.0-20241213221912-68b004a48f41 |
| `github.com/minio/minio` | Go | From 0.0.0-20220623162515-580d9db85e04 | 0.0.0-20241213221912-68b004a48f41 |

## How do I fix CVE-2024-55949?

Upgrade github.com/minio/minio to 0.0.0-20241213221912-68b004a48f41 or later.

## Is CVE-2024-55949 being exploited?

There is no known exploitation of CVE-2024-55949 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-55949 and fix it if it is affected.

What it is: CVE-2024-55949 is a critical vulnerability in minio, published on 16 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-55949 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/minio/minio (Go): affected from 0.0.0-20220623162515-580d9db85e04; fixed in 0.0.0-20241213221912-68b004a48f41
- github.com/minio/minio (Go): affected from 0.0.0-20220623162515-580d9db85e04; fixed in 0.0.0-20241213221912-68b004a48f41
- github.com/minio/minio (Go): affected from 0.0.0-20220623162515-580d9db85e04; fixed in 0.0.0-20241213221912-68b004a48f41

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-55949/ (Markdown: https://insights.sbomify.com/CVE-2024-55949/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-55949
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-55949
- OSV: https://osv.dev/vulnerability/CVE-2024-55949

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-55949/
Summaries are generated and may contain mistakes; the official description above is the record.
