CVE-2026-27980 Next.js: Unbounded next/image disk cache growth can exhaust storage
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- Red Hat
Description
Next.js is a React framework for building full-stack web applications. Starting in version 10.0.0 and prior to version 16.1.7, the default Next.js image optimization disk cache (/_next/image) did not have a configurable upper bound, allowing unbounded cache growth. An attacker could generate many unique image-optimization variants and exhaust disk space, causing denial of service. This is fixed in version 16.1.7 by adding an LRU-backed disk cache with images.maximumDiskCacheSize, including eviction of least-recently-used entries when the limit is exceeded. Setting maximumDiskCacheSize: 0 disables disk caching. If upgrading is not immediately possible, periodically clean .next/cache/images and/or reduce variant cardinality (e.g., tighten values for images.localPatterns, images.remotePatterns, and images.qualities).
Upgrade path
7 packages: 2 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/com.github.streamshub-console(Red Hat amq_streams 2.9 el9) | All versions | No fix listed | No fix yet |
| redhat/com.github.streamshub-console(Red Hat amq_streams 3.2 el9) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| npm next(npm) | >= 10.0.0, < 15.5.14; >= 16.0.0-beta.0, < 16.1.7 | 15.5.14, 16.1.7 | Fixed |
| vercel next.js | = >= 10.0.0, < 16.1.7; >= 10.0.0, < 16.1.7 | 16.1.7 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| vercel next.js | = >= 10.0.0, < 16.1.7 | No fix listed |
| npm next(npm) | >= 16.0.0-beta.0, < 16.1.7 | 16.1.7 |
| npm next(npm) | >= 10.0.0, < 15.5.14 | 15.5.14 |
| redhat/com.github.streamshub-console(Red Hat:amq_streams:2.9::el9) | All versions | No fix listed |
| redhat/com.github.streamshub-console(Red Hat:amq_streams:3.2::el9) | All versions | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| vercel next.js | >= 10.0.0, < 16.1.7 | 16.1.7 |
References
- https://github.com/vercel/next.js/security/advisories/GHSA-3x4c-7xq6-9pq8 mitigation vendor-advisory
- https://github.com/vercel/next.js/commit/39eb8e0ac498b48855a0430fbf4c22276a73b4bd patch
- https://github.com/vercel/next.js/releases/tag/v16.1.7 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:34608 patch vendor-advisory
- RHSA-2026:13571 patch vendor-advisory
- Red Hat Bugzilla 2448509 issue-tracking
- www.cve.org
- github.com product