Skip to content

[Security] CVE-2026-39414: Denial of Service via Unbounded Memory Allocation in S3 Select CSV Parsing #25

Closed

Description

@Vonng

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

  1. The attacker uploads a CSV file that contains no newline (\n) characters.
  2. The attacker issues an S3 Select query (SelectObjectContent) against this file.
  3. 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.
  4. 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:GetObject permissions
  • 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

Priority

🟠 High — Easy to exploit, causes full server crash. However, requires authenticated access and only affects availability (no data leak or corruption).

Activity

  1. self-assigned this
    on Apr 14, 2026
  2. added
    cve
    on Apr 14, 2026
  3. changed the title [-]Issue 4: CVE-2026-39414[/-] [+][Security] CVE-2026-39414: Denial of Service via Unbounded Memory Allocation in S3 Select CSV Parsing[/+] on Apr 14, 2026
  4. added theissue type on Apr 14, 2026
  5. Vonng commented on Apr 17, 2026

    @Vonng
    MemberAuthor

    Resolved by c5765dcbb (fix: CVE-2026-39414 reject oversized S3 Select records).

    What changed:

    • Enforced the S3 Select maxCharsPerRecord limit during CSV splitting, so oversized newline-free records are rejected before they can be buffered into unbounded memory.
    • Applied the same record-size guard to the line-delimited JSON splitter for consistency.
    • Returned OverMaxRecordSize instead of collapsing these failures into InternalError.
    • Preserved splitter errors in the JSON worker so the oversized-record failure is not lost after partial decode.

    This removes the unbounded allocation path behind the reported S3 Select denial-of-service issue.

    The fix is on master and included in RELEASE.2026-04-17T00-00-00Z.

    Closing as completed.

  6. added
    bug
    on Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcve

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions