Repository navigation
Description
Title
[Security] CVE-2026-39414: Denial of Service via Unbounded Memory Allocation in S3 Select CSV Parsing
Labels
security, high, CVE
Body
Summary
MinIO's S3 Select feature is vulnerable to memory exhaustion (OOM crash) when processing CSV files that contain no newline characters. A single crafted request can crash the entire MinIO server process.
CVE Details
| Field | Value |
|---|---|
| CVE ID | CVE-2026-39414 |
| GHSA | GHSA-h749-fxx7-pwpg |
| CVSS | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (High) |
| CWE | CWE-770: Allocation of Resources Without Limits or Throttling |
| Affected Range | 0.0.0-20180815103019-7c14cdb60e53 to 0.0.0-20251203081239-27742d469462 |
| Published | 2026-04-09 |
Attack Description
- The attacker uploads a CSV file that contains no newline (
\n) characters. - The attacker issues an S3 Select query (
SelectObjectContent) against this file. - The
nextSplit()function in the CSV reader attempts to read the entire file contents into a single memory allocation while searching for a line break that never comes. - The MinIO server process runs out of memory and crashes (OOM kill).
Amplification via compression: A ~2 MB gzip-compressed CSV can decompress to gigabytes of newline-free data on the server, making the attack extremely practical — a small upload triggers massive memory consumption.
Impact:
- Complete server crash (denial of service) for the entire MinIO deployment
- Exploitable by any authenticated user with
s3:PutObject+s3:GetObjectpermissions - Does not require compression (a sufficiently large uncompressed CSV without newlines also triggers the issue)
Precondition: Valid credentials with s3:PutObject and s3:GetObject permissions.
Affected Component
internal/s3select/csv/reader.go — function nextSplit().
Proposed Fix
Add a maximum single-line length limit in nextSplit():
- Introduce a configurable maximum line buffer size (e.g., 256 MB or a sensible default).
- When the accumulated line data exceeds this threshold without encountering a newline, return an error (e.g.,
CSVParsingError: line exceeds maximum allowed length) instead of continuing to allocate memory. - Consider also adding a decompressed-size limit for gzip/zstd-compressed inputs processed by S3 Select, to mitigate the compression amplification vector.
References
- GHSA-h749-fxx7-pwpg
- https://advisories.gitlab.com/pkg/golang/github.com/minio/minio/CVE-2026-39414/
- https://nvd.nist.gov/vuln/detail/CVE-2026-39414
- https://pkg.go.dev/vuln/GO-2026-4896
Priority
🟠 High — Easy to exploit, causes full server crash. However, requires authenticated access and only affects availability (no data leak or corruption).
Activity
[-]Issue 4: CVE-2026-39414[/-][+][Security] CVE-2026-39414: Denial of Service via Unbounded Memory Allocation in S3 Select CSV Parsing[/+]Vonng commentedon Apr 17, 2026
Resolved by c5765dcbb (
fix: CVE-2026-39414 reject oversized S3 Select records).What changed:
maxCharsPerRecordlimit during CSV splitting, so oversized newline-free records are rejected before they can be buffered into unbounded memory.OverMaxRecordSizeinstead of collapsing these failures intoInternalError.This removes the unbounded allocation path behind the reported S3 Select denial-of-service issue.
The fix is on
masterand included inRELEASE.2026-04-17T00-00-00Z.Closing as completed.