CVE-2023-28433: Github.com/minio/minio Minio Vulnerable To Privilege Escalation Vulnerability

HIGH
Advisory Identifier: GHSA-w23q-4hw3-2pp6
CVSS 8.8
CWE-668
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2023-28433
GHSA Identifier GHSA-w23q-4hw3-2pp6
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-668: Exposure of Resource to Wrong Sphere
Affected Product Github.com/minio/minio
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

github.com/minio/minio fixed: 0.0.0-202303200735
Upgrade github.com/minio/minio to 0.0.0-202303200735
Verify Direct and Transitive Dependencies

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

### Impact All users on Windows are impacted. MinIO fails to filter the `\` character, which allows for arbitrary object placement across buckets. 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. ### Patches There are two patches that fix this problem comprehensively ``` commit b3c54ec81e0a06392abfb3a1ffcdc80c6fbf6ebc Author: Harshavardhana <harsha@minio.io> Date: Mon Mar 20 13:16:00 2023 -0700 reject object names with '\' on windows (#16856) ``` ``` commit 8d6558b23649f613414c8527b58973fbdfa4d1b8 Author: Harshavardhana <harsha@minio.io> Date: Mon Mar 20 00:35:25 2023 -0700 fix: convert '\' to '/' on windows (#16852) ``` ### Workarounds There are no known workarounds ### References The vulnerable code: ```go // minio/cmd/generic-handlers.go // Check if the incoming path has bad path components, // such as ".." and "." // SlashSeparator -> / // dotdotComponent -> .. // dotComponent -> . func hasBadPathComponent(path string) bool { path = strings.TrimSpace(path) for _, p := range strings.Split(path, SlashSeparator) { switch strings.TrimSpace(p) { case dotdotComponent: return true case dotComponent: return true } } return false } ```

CVE-2023-28433 Affected Github.com/minio/minio Versions

1 component(s)
Fixed Versions:
0.0.0-202303200735
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?
CVE-2023-28433 is a security vulnerability in Github.com/minio/minio involving Minio vulnerable to Privilege Escalation on Windows via Path separator manipulation under CWE-668: Exposure of Resource to Wrong Sphere.
Which Github.com/minio/minio versions are affected?
Affected versions include releases prior to 0.0.0-202303200735 across affected packages: github.com/minio/minio.
What version fixes CVE-2023-28433?
Upgrading to 0.0.0-202303200735 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/minio/minio affected?
Yes, github.com/minio/minio is affected in releases prior to 0.0.0-202303200735. Upgrade your dependency to 0.0.0-202303200735 or later.
What is the CVSS score of CVE-2023-28433?
CVE-2023-28433 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-28433?
CVE-2023-28433 is classified under CWE-668: Exposure of Resource to Wrong Sphere (The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.).
How can I check Go dependencies for CVE-2023-28433?
Run the dependency tree command: 'inspect dependencies for github.com/minio/minio'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}