JLSEC-2026-1829: Privilege Escalation on Linux/MacOS
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 MINIOBROWSER=off allows for this workaround.
References
The vulnerable code:
go // 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 } } // ...
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/minio_jllto a version that resolves this vulnerability.Fixed in 2.0.0+0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 67f4ba154a27a1b06e48bfabda38355a010dfca5 - Configuration
Set MINIO_BROWSER=off to disable browser API access as a workaround.
MinIO MINIO_BROWSER = off
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
What conditions are required for exploitation?
The attacker needs credentials granting arn:aws:s3:::* permission and Console API access must be enabled. The issue is triggered through crafted requests processed by PostPolicyBucket.
What can be done if the fix cannot be deployed immediately?
Disable Browser API access by setting MINIO_BROWSER=off. This prevents the Console/Browser API condition required for the documented workaround.
How can I identify the upstream fix when assessing a build?
The upstream fix is commit 67f4ba154a27a1b06e48bfabda38355a010dfca5, titled “fix: post policy request security bypass” and dated March 19, 2023. The provided data does not identify a fixed release version.