{"id":"CVE-2026-27980","published":"2026-03-18T00:23:34Z","modified":"2026-03-18T19:50:12Z","title":"Next.js: Unbounded next/image disk cache growth can exhaust storage","vendor":"vercel","product":"next.js","tier":"tail","description":{"text":"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`).","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00867,"percentile":0.59617,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-3x4c-7xq6-9pq8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vercel/next.js/commit/39eb8e0ac498b48855a0430fbf4c22276a73b4bd","tags":["x_refsource_MISC"]},{"url":"https://github.com/vercel/next.js/releases/tag/v16.1.7","tags":["x_refsource_MISC"]}],"priority":{"score":21.8,"factors":[{"name":"EPSS percentile","points":11.92},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.83}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-11-20","earliestUrl":"https://github.com/aheybati/CVE-2026-27980","repos":[{"name":"aheybati/CVE-2026-27980","url":"https://github.com/aheybati/CVE-2026-27980","stars":1,"created":"2026-11-20"}]},"first":{"date":"2026-11-20","source":"PoC-in-GitHub","url":"https://github.com/aheybati/CVE-2026-27980"},"provenance":"source"},"vendorSlug":"vercel","affectedVersions":[{"vendor":"vercel","product":"next.js","versions":[">= 10.0.0, < 16.1.7"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-18T19:50:06.816613Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"next","vulnerableRanges":[">=16.0.0-beta.0, <16.1.7",">=10.0.0, <15.5.14"],"patched":["16.1.7","15.5.14"],"from":["GHSA-3x4c-7xq6-9pq8"],"provenance":"source"}],"summary":{"text":"Next.js builds from version 10.0.0 up to (but not including) 16.1.7 have an image optimization disk cache at /_next/image with no configurable upper bound on its size. An attacker who can reach the application over the network without authentication or user interaction can request many distinct image-optimization variants, causing the cache to grow until it exhausts disk space and denies service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:44Z"},"euvd":{"id":"EUVD-2026-12694","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vercel-next-js-cve-2024-47831","parents":[{"from":"CVE-2024-47831","to":"CVE-2026-27980","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/next/src/server/image-optimizer.ts"],"commits":["https://github.com/vercel/next.js/commit/d11cbc9ff0b1aaefabcba9afe1e562e0b1fde65a","https://github.com/vercel/next.js/commit/39eb8e0ac498b48855a0430fbf4c22276a73b4bd"],"basis":"shared function","functions":["ImageOptimizerCache"]}]},{"from":"CVE-2025-59471","to":"CVE-2026-27980","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/next/src/shared/lib/image-config.ts"],"commits":["https://github.com/vercel/next.js/commit/500ec83743639addceaede95e95913398975156c","https://github.com/vercel/next.js/commit/e5b834d208fe0edf64aa26b5d76dcf6a176500ec","https://github.com/vercel/next.js/commit/39eb8e0ac498b48855a0430fbf4c22276a73b4bd"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2026-27980","to":"CVE-2026-75604","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/next/errors.json"],"commits":["https://github.com/vercel/next.js/commit/39eb8e0ac498b48855a0430fbf4c22276a73b4bd","https://github.com/vercel/next.js/commit/968b9fcb26bdeb8e0a861a9df05361474666d51b","https://github.com/vercel/next.js/commit/b0f3460a92b955d3ca41fccff9a525a2b910fbf3"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-27977","published":"2026-03-17","fixed":"16.1.7","kev":false},{"cve":"CVE-2026-27978","published":"2026-03-17","fixed":"16.1.7","kev":false},{"cve":"CVE-2026-27979","published":"2026-03-18","fixed":"16.1.7","kev":false},{"cve":"CVE-2026-27980","published":"2026-03-18","fixed":"16.1.7","kev":false},{"cve":"CVE-2026-29057","published":"2026-03-18","fixed":"16.1.7","kev":false,"link":{"from":"CVE-2026-29057","to":"CVE-2026-27980","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:next","fromFixed":"15.5.13","toFixed":"15.5.14","daysApart":0}]}},{"cve":"CVE-2026-44572","published":"2026-05-13","fixed":"16.2.5","kev":false},{"cve":"CVE-2026-44573","published":"2026-05-13","fixed":"16.2.5","kev":false}],"package":"npm:next"}}