CVE-2023-28433: Github.com/minio/minio Minio Vulnerable To Privilege Escalation Vulnerability
HIGHCVE-2023-28433 is a HIGH (CVSS 8.8) minio vulnerable to privilege escalation vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Github.com/minio/minio libraries in the Go ecosystem. The issue involves minio vulnerable to privilege escalation on windows via path separator manipulation. Remediation is available by upgrading affected packages to version 0.0.0-202303200735.
CVE-2023-28433 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2023-28433
To remediate this vulnerability, upgrade all affected Github.com/minio/minio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/minio/minio to 0.0.0-202303200735
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/minio/minio
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-28433, inspect your project dependencies for Github.com/minio/minio:
inspect dependencies for github.com/minio/minio
Analyze the terminal output to locate any version of Github.com/minio/minio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-202303200735), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Github.com/minio/minio, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-28433 Affected Github.com/minio/minio Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/minio/minio
|
Go |
< 0.0.0-202303200735
|
0.0.0-202303200735
|
References
Frequently Asked Questions
What is CVE-2023-28433?
Which Github.com/minio/minio versions are affected?
What version fixes CVE-2023-28433?
Is github.com/minio/minio affected?
What is the CVSS score of CVE-2023-28433?
What CWE is associated with CVE-2023-28433?
How can I check Go dependencies for CVE-2023-28433?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w23q-4hw3-2pp6",
"modified" : "2023-09-06T18:43:13Z",
"published" : "2023-09-06T18:43:13Z",
"aliases" : [ "CVE-2023-28433" ],
"summary" : "Minio vulnerable to Privilege Escalation on Windows via Path separator manipulation",
"details" : "### Impact\nAll users on Windows are impacted. MinIO fails to filter the `\\` character, which allows for arbitrary object placement across\nbuckets. As a result, a user with low privileges, such as an access key, service account, or STS credential, which only has permission to `PutObject` in a specific bucket, can create an admin user.\n\n### Patches\nThere are two patches that fix this problem comprehensively\n\n```\ncommit b3c54ec81e0a06392abfb3a1ffcdc80c6fbf6ebc\nAuthor: Harshavardhana <harsha@minio.io>\nDate: Mon Mar 20 13:16:00 2023 -0700\n\n reject object names with '\\' on windows (#16856)\n```\n\n```\ncommit 8d6558b23649f613414c8527b58973fbdfa4d1b8\nAuthor: Harshavardhana <harsha@minio.io>\nDate: Mon Mar 20 00:35:25 2023 -0700\n\n fix: convert '\\' to '/' on windows (#16852)\n```\n\n### Workarounds\nThere are no known workarounds\n\n### References\nThe vulnerable code:\n```go\n// minio/cmd/generic-handlers.go\n// Check if the incoming path has bad path components,\n// such as \"..\" and \".\"\n// SlashSeparator -> /\n// dotdotComponent -> ..\n// dotComponent -> .\nfunc hasBadPathComponent(path string) bool {\n path = strings.TrimSpace(path)\n for _, p := range strings.Split(path, SlashSeparator) {\n switch strings.TrimSpace(p) {\n case dotdotComponent:\n return true\n case dotComponent:\n return true\n }\n }\n return false\n}\n```\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/minio/minio"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-202303200735"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/minio/minio/security/advisories/GHSA-w23q-4hw3-2pp6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-28433"
}, {
"type" : "WEB",
"url" : "https://github.com/minio/minio/commit/8d6558b23649f613414c8527b58973fbdfa4d1b8"
}, {
"type" : "WEB",
"url" : "https://github.com/minio/minio/commit/b3c54ec81e0a06392abfb3a1ffcdc80c6fbf6ebc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/minio/minio"
}, {
"type" : "WEB",
"url" : "https://github.com/minio/minio/releases/tag/RELEASE.2023-03-20T20-16-18Z"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-668" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-06T18:43:13Z",
"nvd_published_at" : "2023-03-22T21:15:00Z"
}
}