8.8highExploited
MinIO is vulnerable to privilege escalation on Linux/MacOS
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 7.92% (higher than 94% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-2pxw-r47w-4p8c
Description
Minio is a Multi-Cloud Object Storage framework. Prior to RELEASE.2023-03-20T20-16-18Z, an attacker can use crafted requests to bypass metadata bucket name checking and put an object into any bucket while processing `PostPolicyBucket`. To carry out this attack, the attacker requires credentials with `arn:aws:s3:::*` permission, as well as enabled Console API access. This issue has been patched in RELEASE.2023-03-20T20-16-18Z. As a workaround, enable browser API access and turn off `MINIO_BROWSER=off`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| minio minio | < RELEASE.2023-03-20T20-16-18Z, before 2023-03-20t20-16-18z | CVE List, NVD, CISA KEV |
| github.com/minio/minio (Go) | before 0.0.0-202303200415 | GitHub Advisory 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/E: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 active, automatable no, technical impact total.
What each source says
CVE List
Minio is a Multi-Cloud Object Storage framework. Prior to RELEASE.2023-03-20T20-16-18Z, an attacker can use crafted requests to bypass metadata bucket name checking and put an object into any bucket while processing `PostPolicyBucket`. To carry out this attack, the attacker requires credentials with `arn:aws:s3:::*` permission, as well as enabled Console API access. This issue has been patched in RELEASE.2023-03-20T20-16-18Z. As a workaround, enable browser API access and turn off `MINIO_BROWSER=off`.
GitHub Advisory Database
Impact
An attacker can use crafted requests to bypass metadata bucket name checking and put an object into any bucket while processing PostPolicyBucket. To carry out this attack, the attacker requires credentials with arn:aws:s3:::* permission, as well as enabled Console API access.
Patches
commit 67f4ba154a27a1b06e48bfabda38355a010dfca5
Author: Aditya Manthramurthy <donatello@users.noreply.github.com>
Date: Sun Mar 19 21:15:20 2023 -0700
fix: post policy request security bypass (#16849)
Workarounds
Browser API access must be enabled turning off MINIO_BROWSER=off allows for this workaround.
References
The vulnerable code:
// minio/cmd/generic-handlers.go
func setRequestValidityHandler(h http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
// ...
// For all other requests reject access to reserved buckets
bucketName, _ := request2BucketObjectName(r)
if isMinioReservedBucket(bucketName) || isMinioMetaBucket(bucketName) {
if !guessIsRPCReq(r) && !guessIsBrowserReq(r) && !guessIsHealthCheckReq(r) && !guessIsMetricsReq(r) && !isAdminReq(r) && !isKMSReq(r) {
if ok {
tc.FuncName = "handler.ValidRequest"
tc.ResponseRecorder.LogErrBody = true
}
writeErrorResponse(r.Context(), w, errorCodes.ToAPIErr(ErrAllAccessDisabled), r.URL)
return
}
}
// ...
CISA KEV
MinIO contains a security feature bypass vulnerability that allows an attacker to use crafted requests to bypass metadata bucket name checking and put an object into any bucket while processing `PostPolicyBucket` to conduct privilege escalation. To carry out this attack, the attacker requires credentials with `arn:aws:s3:::*` permission, as well as enabled Console API access.
References
| https://github.com/minio/minio/security/advisories/GHSA-2pxw-r47w-4p8c | kev, vendor-advisory, web | |
| https://github.com/minio/minio/pull/16849 | exploit, issue-tracking, web | |
| https://github.com/minio/minio/commit/67f4ba154a27a1b06e48bfabda38355a010dfca5 | patch, web | |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-28434 | government-resource, us-government-resource, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-28434 | advisory, kev | |
| https://github.com/minio/minio | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-28434 changed 2025-10-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2pxw-r47w-4p8c changed 2026-10-08 | CC-BY-4.0 |
| NVD | CVE-2023-28434 changed 2026-06-17 | Public domain |
| CISA KEV | CVE-2023-28434 changed 2023-09-19 | CC0-1.0 |