CVE-2026-39414
JSON

7.1high

MinIO affected a DoS via Unbounded Memory Allocation in S3 Select CSV Parsing

Severity
7.1high CVSS:4.0 by GitHub_M
Exploit likelihood
0.52% (higher than 45% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-h749-fxx7-pwpgGO-2026-5415

Description

MinIO is a high-performance object storage system. From RELEASE.2018-08-18T03-49-57Z to before RELEASE.2025-12-20T04-58-37Z, MinIO's S3 Select feature is vulnerable to memory exhaustion when processing CSV files containing lines longer than available memory. The CSV reader's nextSplit() function calls bufio.Reader.ReadBytes('\n') with no size limit, buffering the entire input in memory until a newline is found. A CSV file with no newline characters causes the entire contents to be read into a single allocation, leading to an OOM crash of the MinIO server process. This is exploitable by any authenticated user with s3:PutObject and s3:GetObject permissions. The attack is especially practical when combined with compression: a ~2 MB gzip-compressed CSV can decompress to gigabytes of data without newlines, allowing a small upload to cause large memory consumption on the server. However, compression is not required — a sufficiently large uncompressed CSV with no newlines triggers the same issue.

Affected

Product or packageVersionsReported by
minio minio>= RELEASE.2018-08-18T03-49-57Z, < RELEASE.2025-12-20T04-58-37Z, from 2018-08-18t03-49-57z up to 2025-10-15t17-29-55zCVE List, NVD
github.com/minio/minio (Go)from 0.0.0-20180815103019-7c14cdb60e53GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-770

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

MinIO is a high-performance object storage system. From RELEASE.2018-08-18T03-49-57Z to before RELEASE.2025-12-20T04-58-37Z, MinIO's S3 Select feature is vulnerable to memory exhaustion when processing CSV files containing lines longer than available memory. The CSV reader's nextSplit() function calls bufio.Reader.ReadBytes('\n') with no size limit, buffering the entire input in memory until a newline is found. A CSV file with no newline characters causes the entire contents to be read into a single allocation, leading to an OOM crash of the MinIO server process. This is exploitable by any authenticated user with s3:PutObject and s3:GetObject permissions. The attack is especially practical when combined with compression: a ~2 MB gzip-compressed CSV can decompress to gigabytes of data without newlines, allowing a small upload to cause large memory consumption on the server. However, compression is not required — a sufficiently large uncompressed CSV with no newlines triggers the same issue.

GitHub Advisory Database
Impact

What kind of vulnerability is it? Who is impacted?

MinIO's S3 Select feature is vulnerable to memory exhaustion when processing CSV files containing lines longer than available memory. The CSV reader's nextSplit() function calls bufio.Reader.ReadBytes('\n') with no size limit, buffering the entire input in memory until a newline is found. A CSV file with no newline characters causes the entire contents to be read into a single allocation, leading to an OOM crash of the MinIO server process.

This is exploitable by any authenticated user with s3:PutObject and s3:GetObject permissions. The attack is especially practical when combined with compression: a ~2 MB gzip-compressed CSV can decompress to gigabytes of data without newlines, allowing a small upload to cause large memory consumption on the server. However, compression is not required — a sufficiently large uncompressed CSV with no newlines triggers the same issue.

Affected component: internal/s3select/csv/reader.go, function nextSplit().

CWE: CWE-770 (Allocation of Resources Without Limits or Throttling)

Affected Versions

All MinIO releases are through the final release of the minio/minio open-source project.

The vulnerability was introduced in commit https://github.com/minio/minio/commit/7c14cdb60e53dbfdad2be644dfb180cab19fffa7, which added S3 Select support for CSV. The CSV reader has used unbounded line reads since this commit (originally via Go's stdlib encoding/csv.Reader, later via bufio.Reader.ReadBytes after a refactor in PR #8200.

The first affected release is RELEASE.2018-08-18T03-49-57Z.

Patches

Fixed in: MinIO AIStor RELEASE.2025-12-20T04-58-37Z

The fix replaces the unbounded bufio.Reader.ReadBytes('\n') call with a byte-at-a-time loop that caps line scanning at 128 KB (csvSplitSize). If no newline is found within this limit, the reader returns an error instead of continuing to buffer.

Binary Downloads
PlatformArchitectureDownload
Linuxamd64minio
Linuxarm64minio
macOSarm64minio
macOSamd64minio
Windowsamd64minio.exe
FIPS Binaries
PlatformArchitectureDownload
Linuxamd64minio.fips
Linuxarm64minio.fips
Package Downloads
Container Images
# Standard
docker pull quay.io/minio/aistor/minio:RELEASE.2025-12-20T04-58-37Z
podman pull quay.io/minio/aistor/minio:RELEASE.2025-12-20T04-58-37Z

# FIPS
docker pull quay.io/minio/aistor/minio:RELEASE.2025-12-20T04-58-37Z.fips
podman pull quay.io/minio/aistor/minio:RELEASE.2025-12-20T04-58-37Z.fips
Homebrew (macOS)
brew install minio/aistor/minio
Workarounds

If upgrading is not immediately possible:

  • Disable S3 Select access via IAM policy. Deny the s3:GetObject action with a condition restricting s3:prefix on sensitive buckets, or more specifically, deny SelectObjectContent requests at a reverse proxy by blocking POST requests with ?select&select-type=2 query parameters.

  • Restrict PutObject permissions. Limit s3:PutObject grants to trusted principals to reduce the attack surface. Note: this reduces risk but does not eliminate the vulnerability since any authorized user can exploit it.

References
Go Vulnerability Database

MinIO affected a DoS via Unbounded Memory Allocation in S3 Select CSV Parsing in github.com/minio/minio

NVD (es)

MinIO es un sistema de almacenamiento de objetos de alto rendimiento. Desde RELEASE.2018-08-18T03-49-57Z hasta antes de RELEASE.2025-12-20T04-58-37Z, la característica S3 Select de MinIO es vulnerable al agotamiento de memoria al procesar archivos CSV que contienen líneas más largas que la memoria disponible. La función nextSplit() del lector de CSV llama a bufio.Reader.ReadBytes('\n') sin límite de tamaño, almacenando en búfer toda la entrada en memoria hasta que se encuentra un salto de línea. Un archivo CSV sin caracteres de salto de línea hace que todo el contenido se lea en una única asignación, lo que lleva a un fallo por OOM del proceso del servidor MinIO. Esto es explotable por cualquier usuario autenticado con permisos s3:PutObject y s3:GetObject. El ataque es especialmente práctico cuando se combina con compresión: un CSV comprimido con gzip de ~2 MB puede descomprimirse a gigabytes de datos sin saltos de línea, permitiendo que una pequeña carga cause un gran consumo de memoria en el servidor. Sin embargo, la compresión no es necesaria - un CSV sin comprimir suficientemente grande y sin saltos de línea desencadena el mismo problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-39414 changed 2026-04-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-h749-fxx7-pwpg changed 2026-10-08CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5415 changed 2026-10-08CC-BY-4.0
NVDCVE-2026-39414 changed 2026-07-24Public domain