# CVE-2026-27980: Next.js: Unbounded next/image disk cache growth can exhaust storage

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.87%, higher than 59% of CVEs (2026-12-01)
- Published: 2026-03-17T16:17:06.000Z
- Modified: 2026-09-10T03:50:36.950Z
- Also known as: GHSA-3x4c-7xq6-9pq8
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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`).

(As written by CVE List.)

## Affected

- vercel next.js: >= 10.0.0, < 16.1.7; from 10.0.0 before 16.1.7
- next (npm): from 16.0.0-beta.0 before 16.1.7; from 10.0.0 before 15.5.14

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/vercel/next.js/security/advisories/GHSA-3x4c-7xq6-9pq8> (mitigation, vendor-advisory, web)
- <https://github.com/vercel/next.js/commit/39eb8e0ac498b48855a0430fbf4c22276a73b4bd> (patch, web)
- <https://github.com/vercel/next.js/releases/tag/v16.1.7> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27980> (advisory)
- <https://github.com/vercel/next.js> (package)

## Sources

- CVE List: [CVE-2026-27980](https://www.cve.org/CVERecord?id=CVE-2026-27980), CVE Terms of Use, modified 2026-03-18
- GitHub Advisory Database: [GHSA-3x4c-7xq6-9pq8](https://github.com/advisories/GHSA-3x4c-7xq6-9pq8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-27980](https://nvd.nist.gov/vuln/detail/CVE-2026-27980), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27980 · Whole record: https://cve.day/CVE-2026-27980.json · Rebuilt by cve.day 2026-11-25T22:59:16.067Z
