{"id":"CVE-2026-39414","aliases":["CVE-2026-39414","GHSA-h749-fxx7-pwpg","GO-2026-5415"],"related":[],"kind":"vulnerability","state":"published","title":"MinIO affected a DoS via Unbounded Memory Allocation in S3 Select CSV Parsing","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n_What kind of vulnerability is it? Who is impacted?_\n\nMinIO's S3 Select feature is vulnerable to memory exhaustion when processing CSV \nfiles containing lines longer than available memory. The CSV reader's `nextSplit()` \nfunction calls `bufio.Reader.ReadBytes('\\n')` with no size limit, buffering the entire \ninput in memory until a newline is found. A CSV file with no newline characters \ncauses the entire contents to be read into a single allocation, leading to an OOM\ncrash of the MinIO server process.\n\nThis is exploitable by any authenticated user with `s3:PutObject` and `s3:GetObject` \npermissions. The attack is especially practical when combined with compression: \na ~2 MB gzip-compressed CSV can decompress to gigabytes of data without \nnewlines, allowing a small upload to cause large memory consumption on \nthe server. However, compression is not required — a sufficiently large uncompressed \nCSV with no newlines triggers the same issue.\n\n**Affected component:** `internal/s3select/csv/reader.go`, function\n`nextSplit()`.\n\n**CWE:** CWE-770 (Allocation of Resources Without Limits or Throttling)\n\n### Affected Versions\n\nAll MinIO releases are through the final release of the minio/minio open-source project.\n\nThe vulnerability was introduced in commit https://github.com/minio/minio/commit/7c14cdb60e53dbfdad2be644dfb180cab19fffa7, which added S3 Select support for CSV. \nThe CSV reader has used unbounded line reads since this commit (originally via \nGo's stdlib `encoding/csv.Reader`, later via `bufio.Reader.ReadBytes` after a refactor \nin [PR #8200](https://github.com/minio/minio/pull/8200). \n\nThe first affected release is `RELEASE.2018-08-18T03-49-57Z`.\n\n### Patches\n\n**Fixed in**: MinIO AIStor RELEASE.2025-12-20T04-58-37Z\n\nThe fix replaces the unbounded `bufio.Reader.ReadBytes('\\n')` call with a\nbyte-at-a-time loop that caps line scanning at 128 KB (`csvSplitSize`). If no\nnewline is found within this limit, the reader returns an error instead of\ncontinuing to buffer.\n\n#### Binary Downloads\n\n| Platform | Architecture | Download                                                                    |\n| -------- | ------------ | --------------------------------------------------------------------------- |\n| Linux    | amd64        | [minio](https://dl.min.io/aistor/minio/release/linux-amd64/minio)           |\n| Linux    | arm64        | [minio](https://dl.min.io/aistor/minio/release/linux-arm64/minio)           |\n| macOS    | arm64        | [minio](https://dl.min.io/aistor/minio/release/darwin-arm64/minio)          |\n| macOS    | amd64        | [minio](https://dl.min.io/aistor/minio/release/darwin-amd64/minio)          |\n| Windows  | amd64        | [minio.exe](https://dl.min.io/aistor/minio/release/windows-amd64/minio.exe) |\n\n#### FIPS Binaries\n\n| Platform | Architecture | Download                                                                    |\n| -------- | ------------ | --------------------------------------------------------------------------- |\n| Linux    | amd64        | [minio.fips](https://dl.min.io/aistor/minio/release/linux-amd64/minio.fips) |\n| Linux    | arm64        | [minio.fips](https://dl.min.io/aistor/minio/release/linux-arm64/minio.fips) |\n\n#### Package Downloads\n\n| Format | Architecture | Download                                                                                                                            |\n| ------ | ------------ | ----------------------------------------------------------------------------------------------------------------------------------- |\n| DEB    | amd64        | [minio_20251220045837.0.0_amd64.deb](https://dl.min.io/aistor/minio/release/linux-amd64/minio_20251220045837.0.0_amd64.deb)         |\n| DEB    | arm64        | [minio_20251220045837.0.0_arm64.deb](https://dl.min.io/aistor/minio/release/linux-arm64/minio_20251220045837.0.0_arm64.deb)         |\n| RPM    | amd64        | [minio-20251220045837.0.0-1.x86_64.rpm](https://dl.min.io/aistor/minio/release/linux-amd64/minio-20251220045837.0.0-1.x86_64.rpm)   |\n| RPM    | arm64        | [minio-20251220045837.0.0-1.aarch64.rpm](https://dl.min.io/aistor/minio/release/linux-arm64/minio-20251220045837.0.0-1.aarch64.rpm) |\n\n#### Container Images\n\n```bash\n# Standard\ndocker pull quay.io/minio/aistor/minio:RELEASE.2025-12-20T04-58-37Z\npodman pull quay.io/minio/aistor/minio:RELEASE.2025-12-20T04-58-37Z\n\n# FIPS\ndocker pull quay.io/minio/aistor/minio:RELEASE.2025-12-20T04-58-37Z.fips\npodman pull quay.io/minio/aistor/minio:RELEASE.2025-12-20T04-58-37Z.fips\n```\n\n#### Homebrew (macOS)\n\n```bash\nbrew install minio/aistor/minio\n```\n\n### Workarounds\n\n- [Users of the open-source `minio/minio` project should upgrade to MinIO AIStor `RELEASE.2025-12-20T04-58-37Z` or later.](https://docs.min.io/enterprise/aistor-object-store/upgrade-aistor-server/community-edition/)\n\nIf upgrading is not immediately possible:\n\n- **Disable S3 Select access via IAM policy.** Deny the `s3:GetObject` action\n  with a condition restricting `s3:prefix` on sensitive buckets, or more\n  specifically, deny `SelectObjectContent` requests at a reverse proxy by\n  blocking `POST` requests with `?select&select-type=2` query parameters.\n\n- **Restrict PutObject permissions.** Limit `s3:PutObject` grants to trusted\n  principals to reduce the attack surface. Note: this reduces risk but does not\n  eliminate the vulnerability since any authorized user can exploit it.\n\n### References\n\n- Introducing commit: [`7c14cdb60`](https://github.com/minio/minio/commit/7c14cdb60e53dbfdad2be644dfb180cab19fffa7) ([PR #6127](https://github.com/minio/minio/pull/6127))\n- [MinIO AIStor](https://min.io/aistor)","format":"markdown","source":"ghsa"},{"lang":"en","text":"MinIO affected a DoS via Unbounded Memory Allocation in S3 Select CSV Parsing in github.com/minio/minio","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-04-08T20:05:11.377Z","modified":"2026-10-08T08:11:02.463Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":">= RELEASE.2018-08-18T03-49-57Z, < RELEASE.2025-12-20T04-58-37Z","status":"affected"}],"vendor":"minio","product":"minio","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.0.0-20180815103019-7c14cdb60e53","status":"affected"}],"ecosystem":"Go","package":"github.com/minio/minio","purl":"pkg:golang/github.com/minio/minio","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-20180815103019-7c14cdb60e53","status":"affected"}],"ecosystem":"Go","package":"github.com/minio/minio","purl":"pkg:golang/github.com/minio/minio","source":"go"},{"ranges":[{"status":"affected","introduced":"2018-08-18t03-49-57z","lastAffected":"2025-10-15t17-29-55z"}],"vendor":"minio","product":"minio","cpe":"cpe:2.3:a:minio:minio:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/minio/minio/security/advisories/GHSA-h749-fxx7-pwpg","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/minio/minio/pull/8200","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/minio/minio/commit/7c14cdb60e53dbfdad2be644dfb180cab19fffa7","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://docs.min.io/enterprise/aistor-object-store/upgrade-aistor-server/community-edition","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39414","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/minio/minio","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2026-5415?q","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-09T14:57:40.322Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39414","url":"https://www.cve.org/CVERecord?id=CVE-2026-39414","licence":"CVE Terms of Use","modified":"2026-04-09T16:17:17.322Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h749-fxx7-pwpg","url":"https://github.com/advisories/GHSA-h749-fxx7-pwpg","licence":"CC-BY-4.0","modified":"2026-10-08T08:11:02.463Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5415","url":"https://pkg.go.dev/vuln/GO-2026-5415","licence":"CC-BY-4.0","modified":"2026-10-08T08:11:02.463Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39414","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39414","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"}],"updatedAt":"2026-11-25T22:59:18.310Z","epss":{"score":0.00515,"percentile":0.45359,"date":"2026-12-01T12:00:22.000Z"}}